R
Raga
Hi,
I have a jar file called DataProcess.jar.I ran it.Then, I made some
modifications to it, then formed the JAR file again & replaced the old
jar with the new one. I renamed the old jar to "DataProcess.jar.orig".
I also put it in a different folder outside the classpath. But JVM
still seems to take the code from the old jar file or, I shd say, it is
still executing the old code, & not at all considering the new jar
file. Is it taking from some cache or something like that? If yes, how
do I clear the cache?
To execute the jar, I do this:
1. Created a .bat file & inside it, wrote:
java -classpath DataProcess.jar;<other jar files>
package1.mainDataClass
2. Then, I executed this .bat file.
I removed the jar (to see if JVM is atleast taking it from that
location or if there is some other jar file which it is referring to).
Now, if I execute the .bat file, JVM says it cant find the class. So,
it seems to refer to the jar in the correct location only. But, the
code from that jar doesn't seem to be executed. Am saying this, bcos I
gave some println stmts in the code & it's not getting executed.
Whereas if I do this in a different machine, it works fine, meaning in
a different machine, JVM cleanly recognizes the new JAR.
Am using JDK 1.5.
Please suggest as to how to make the JVM execute the code in the new
jar file?
Thanks.
I have a jar file called DataProcess.jar.I ran it.Then, I made some
modifications to it, then formed the JAR file again & replaced the old
jar with the new one. I renamed the old jar to "DataProcess.jar.orig".
I also put it in a different folder outside the classpath. But JVM
still seems to take the code from the old jar file or, I shd say, it is
still executing the old code, & not at all considering the new jar
file. Is it taking from some cache or something like that? If yes, how
do I clear the cache?
To execute the jar, I do this:
1. Created a .bat file & inside it, wrote:
java -classpath DataProcess.jar;<other jar files>
package1.mainDataClass
2. Then, I executed this .bat file.
I removed the jar (to see if JVM is atleast taking it from that
location or if there is some other jar file which it is referring to).
Now, if I execute the .bat file, JVM says it cant find the class. So,
it seems to refer to the jar in the correct location only. But, the
code from that jar doesn't seem to be executed. Am saying this, bcos I
gave some println stmts in the code & it's not getting executed.
Whereas if I do this in a different machine, it works fine, meaning in
a different machine, JVM cleanly recognizes the new JAR.
Am using JDK 1.5.
Please suggest as to how to make the JVM execute the code in the new
jar file?
Thanks.