• Post Reply Bookmark Topic Watch Topic
  • New Topic

jar file update  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am not sure if i should have posted this question in this forum or in the beginners forum :-)
I have been given a project to work on recently and its pretty complex.
It is a java application running on a webserver.
This application has a very structered build process.Now they made some changes to a certain jar file and asked me to update it on the server.After i copied in the new jar file to the server and restarted the application it gave me the following error in the log file
"Exception in thread "main" java.lang.NoClassDefFoundError: com.jarod.myclass
Exception in thread "main" java.lang.NoClassDefFoundError: com.jarod.someotherclass"
I unzipped the jar file to make sure that the new jar had the necessary classes in it and it DOES have the classes mentioned in the exception .Can you tell me what could be the other reason for this error.I checked the classpath and it does include this jar file too.
The only thing that has changed in the new jar is that
The old jar just had the classes for the application and the new jar has
"two jar files" in it.the first jar has the classes that the old jar file had and the second jar has some new classes added to it.Im not so sure if this would cause a problem but still can someone suggest something that can help me.THANKS A LOT


jarod
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jar files inside of jar files are not recognized, and the classes inside of them not used. You need to extract the two jar files, and place in them into the lib directory as separate files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!