Re: Java GUI apps crash
- From: Tony Schlemmer <aschlemm@xxxxxxxxxxx>
- Date: Sun, 04 Feb 2007 10:21:15 -0800
Michael Goerz wrote:
Tony Schlemmer wrote:
Michael Goerz wrote:The jar-file for Liquid resides in /usr/share/java, so I tried
All of my GUI-Java apps started to not work recently. I'm getting this
error message in every case:
Exception in thread "main" java.lang.Error: can't load
I already tried to reinstall Java completely. The system is OpenSuse
10.2, the java version is 1.5.0_10.
Make sure your CLASSPATH includes the JAR or ZIP file that your
com.birosoft.* classes reside in. By default Java only knows how to find
its own classes and 3rd party supplied JAR or ZIP files need to be
manually added to your CLASSPATH.
java -cp /usr/share/java/ -jar program.jar
but it gives the very same error.
Besides, shouldn't the path be in an environment variable $CLASSPATH?
'echo $CLASSPATH' gives nothing.
Right and so you need to define an environment variable CLASSPATH unless
you're going to use the JVM "-cp" argument. You need to add the full
directory path and filename for each JAR or ZIP file in the CLASSPATH and
not just reference the directory where the JAR/ZIP files exist.
and so forth.
- Prev by Date: Re: New user
- Next by Date: Re: New user
- Previous by thread: Re: Java GUI apps crash
- Next by thread: Unable to boot live DVD