File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes is it a broken JVM?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "is it a broken JVM??" Watch "is it a broken JVM??" New topic

is it a broken JVM??

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

Hi ranchers.
you know that we put the extra Jar files in the ext dir.
I put Jars like :, liquidlnf.jar,
the problem is the JVM is loading every jars in this dir except for the look and feel jars..
in my main class, I wrote:
the code is compiling fine, but when running it using the command:
java MajorClass
a ClassNotFoundException: com.birosoft.liquid.LiquidLookAndFeel
is thrown...
and if I wrote the command:
java -cp .;%JAVA_HOME%\jre\lib\ext\liquidlnf.jar MajorClass
the application works fine.
so what is the problem??
is there any problem with the JVM?
as I know, I should not point to the ext dir.
should I reinstall the sdk??
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
I have heard of problems like this caused by the fact that your Java installation may well have a separate jre with its own ext directory hidden under the "Program Files." Which one does your PATH point to?
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

yes, I have :
D:\SDKSE which is the JAVA_HOME
Program Files\Java
my class path is (environment variable):
and the Path:
I have tried the command:
java -Dswing.defaultlaf=com.birosoft.liquid.LiquidLookAndFeel MajorClass
and it dosen't work too....

what should I do???
I agree. Here's the link:
subject: is it a broken JVM??
Similar Threads
Unable to load lookAnd feel Jar for my java Swing Application Help Please
please please need configuration
about the ext dir
shoot me, but answer this
very strange problem