Joanne Ho

Greenhorn
+ Follow
since Nov 15, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joanne Ho

Thanks but I tried that and I couldn't find the entry showing the locked jar file
18 years ago
Hi all,

I am developing a java program which has 2 threads, one to read the inbound MQ and the other to write message to the outbound Q.

Since it is still in the development stage and sometimes the program aborted with exceptions. Then I tried to change the code and rebuild the program but I couldn't delete the previous jar file due to it is locked by other processes. The strange thing was even after I rebooted my PC it is still locked.

Could anyone please teach how to kill processes which locked the jar file. Many thanks.
18 years ago
I test my program on NetBeans IDE4.1 by calling "Run"->"Run File"->"Run JEMQInterface.java". It runs perfectly ok.

Since NetBeans will automatically built a jar file for my program at the "./dist" directory under my project directory i.e. "c:\JEMQInterface", I tried to run the jar file without using NetBeans by executing the following at command prompt:
>java JEMQInterface

Then it failed to run and produce the exception.

Could anyone help. Thanks.


Exception in thread "main" java.lang.NoClassDefFoundError: JEMQInterface (wrong
name: JEMQInterface/JEMQInterface)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[ November 15, 2005: Message edited by: Joanne Ho ]
18 years ago