Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have website source code...in which there is a adito.jar file first i extract it ...then make again jar using "jar -cvf adito.jar . and the changed jar file work fine again with that website.

above process is only work when i use jdk1.6.0_14 only... BUT..... if i use jdk1.5 or letest jdk1.6.0_18 the same thing is not work..i mean that jar file will not run in my website...

So what is the possible reason of this..as i am new kid in java...

thanking you, sadiq.

share|improve this question
add comment

2 Answers

This question is probably best asked on Stack Overflow as more Java experts will see it there.

Without knowledge of the changes you are making (or why) it is difficult to provide a definitive answer. The first question would be does the unmodified jar run with different versions of the JDK?

Also what is the error you are receiving and what Java servlet/application server are you running it in (Tomcat, JBoss, Websphere, etc)?

If the unmodified jar runs on the different versions then the source of your problem probably lies in the changes you are making. In theory you should not have any issues running the jar with JDK1.6.0_14 and 1.6.0_18.

share|improve this answer
add comment

My simple question is why jar building with jdk1.6.0_14 is work and bulding jar with jdk1.5 or jdk1.6.0_18 is not work???

My soruce code contain.... + Struts: Adito's user interface is built using the Struts framework (1.2.8) (http://struts.apache.org/). + Jetty: Jetty (5.0) This provides the web server in the default server implementation. + HSQLDB: HSQLDB (1.8.0) Provides SQL based storage for Adito's configuration. + jcifs: JCIFS (1.2.13) is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java. CIFS is the standard file sharing protocol on the Microsoft Windows platform (e.g. Map Network Drive ...)

share|improve this answer
    
SOLVED: there is no restriction of jdk's version... it will work with all jdk version. –  sahil Mar 29 '10 at 6:40
    
@sahil, please note that none of the Stack Overflow sites are forums. For example: answers might not appear in the order they were posted. Also, your post is not an answer, so note the "delete" link underneath that "answer", and the "edit" link underneath your question if you want to add some information. Don't forget the FAQs! (And, no need for "Hi" and "Thanks" in your posts.) Thanks! ;-) –  Arjan Mar 29 '10 at 16:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.