working_directory/app.jar
working_directory/modules/mod1.jar
working_directory/modules/mod2.jar
if i run the files contained in app.jar without jarring it works fine. but
if i run it from the jar i get the following error. any ideas? or do u need
more info?
thanx
riyaz
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: javax/media/jai/PlanarImage
at
rmanchu.thesis.modules.convolution.TB_Convolution.actionPerformed(TB_
Convolution.java:25)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
My guess is that you've got the JAI extension jar file in (say)
c:\JDK1.3.1\jre\lib\ext, but when you double click on a jar file it's
using c:\Program Files\JavaSoft\JRE\1.3.1\bin\java
Edit the file type in Windows Explorer and try again.
--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
> My guess is that you've got the JAI extension jar file in (say)
> c:\JDK1.3.1\jre\lib\ext, but when you double click on a jar file it's
> using c:\Program Files\JavaSoft\JRE\1.3.1\bin\java
thanx and you were right.
how you guessed that right on the first try....
riyaz
I've seen the problem many times before :)
>My guess is that you've got the JAI extension jar file in (say)
>c:\JDK1.3.1\jre\lib\ext, but when you double click on a jar file it's
>using c:\Program Files\JavaSoft\JRE\1.3.1\bin\java
>
>Edit the file type in Windows Explorer and try again.
There's one more thing - JRE's installer is "smart" and it installs
java.exe and javaw. exe in a location, where it it will always can be
found by PATH - it's the main directory of Windows. They're also using the
"wrong" classpath, and when you're running java.exe from a bach file, the
same problem appears. I always delete them to avoid that :)
--
Ecce Jezuch
http://free.polbox.pl/j/jezuch - Kronika paranoika
"I'm the scum of the Earth, I'm the scum of the Earth,
I am the cancer, I am humanity" - R. Patrick
Yes - that's effectively a link to the one in JavaSoft.
> They're also using the
> "wrong" classpath, and when you're running java.exe from a bach file, the
> same problem appears. I always delete them to avoid that :)
I prefer just to add a path entry to the JDK early on in the path,
myself...