• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.getProperty

 
Matt Dearden
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone tell me why this returns null under IE?

LibDir = System.getProperty("java.library.path");

It works for Firefox and Netscape
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried it in win xp with j2se 1.5 and it returned the path environment variable.
 
Matt Dearden
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting. Doesn't work with IE6 under Windows 2000 SP4. Anyone know why?
 
Joe Ess
Bartender
Posts: 9297
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are probably using the Sun Java VM in Firefox and Netscape and the Microsoft Java VM in IE.
 
Matt Dearden
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Joe Ess:
You are probably using the Sun Java VM in Firefox and Netscape and the Microsoft Java VM in IE.

I am indeed. However, I'm writing an applet that needs to store a dll in the libraries directory and hence needs to work with MJVM. Does it use a different call to get this information?
 
Joe Ess
Bartender
Posts: 9297
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The MS Java VM is problematic. It's frozen at the JDK 1.1.4 level so it does not have Swing, Collections, New IO and many other features. There are numerous incompatibilities with newer API's. The security model changed a great deal between Java 1.1 and Java 1.2. Have you checked the Java console? I'll bet you are getting a security exception.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic