• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it a broken JVM??

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers.
you know that we put the extra Jar files in the ext dir.
I put Jars like : jdom.org, liquidlnf.jar, junit.org
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:
----------
UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
----------
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
Rancher
Posts: 13044
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Bill
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I have :
D:\SDKSE which is the JAVA_HOME
and
Program Files\Java
my class path is (environment variable):
.;D:\SDKSE\lib\tools.jar;D:\SDKSE
and the Path:
D:\SDKSE\bin
I have tried the command:
java -Dswing.defaultlaf=com.birosoft.liquid.LiquidLookAndFeel MajorClass
and it dosen't work too....

what should I do???
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic