• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

not able identify class files in one of the jars.  RSS feed

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

i am facing below error while running one of my application in windows.


MessageXmlBuilder.java:12: cannot access com.bch.blah.blah.message.batch.MessageBatchConstants
bad class file: F:\jars\message_batch.jar(com/bch/blah/blah/message/batch/MessageBatchConstants.class)
class file has wrong version 50.0, should be 49.0

Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.bch.blah.blah.message.batch.MessageBatchConstants;
^

and i am facing below error while running in Ubuntu

MessageXmlBuilder.java:335: error: batch cannot be resolved
private static Logger logger = Logger.getLogger(com/bch/blah/blah/message/batch/dao/MessageXmlBuilder);
^^^^^
MessageXmlBuilder.java:335: error: dao cannot be resolved
private static Logger logger = Logger.getLogger(com/bch/blah/blah/message/batch/dao/MessageXmlBuilder);
^^^
MessageXmlBuilder.java:335: error: MessageXmlBuilder cannot be resolved
private static Logger logger = Logger.getLogger(com/bch/blah/blah/message/batch/dao/MessageXmlBuilder);
^^^^^^^^^^^^^^^^^
32 problems (8 errors, 24 warnings)


please do suggest. ^
 
Sheriff
Posts: 21503
96
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java file has been compiled using a Java 6 compiler but you're using Java 5.0 to run it. Either use Java 6 to run, or compile for Java 5.0, using the -source and -target compiler flags.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!