Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jre path

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to run a java program from my dos prompt, I'm getting an error because the System.getProperty("java.ext.dirs") method returns a path that I don't expect (I use this path to look up a txt file). Where is it picking this file path information up from?
Thanks.
Paul
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the error I'm getting
Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'
I have no idea why the java execution is looking in this path.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what context are you getting this error? Is it part of an applet? What is the exact code example that causes the error? Does this example not work for you?
[ September 19, 2002: Message edited by: Dirk Schreckmann ]
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a System.out in my code. If I run it from JCreator (my usual IDE), getProperty("java.ext.dirs") gives me C:\Java\jdk1.3.1_04\jre\lib\ext. When I run the same class in the same directory from the dos prompt, this property returns C:\Program Files\Java\j2re1.4.0_01\lib.
It looks like I must have installed something once that decided this was my jre but how can I change it? I want the dos version to look at C:\Java\jdk1.3.1_04\jre\lib\ext too.
Thanks.
 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the problem. I had a java.exe file sitting in my C:\winnt\system32 directory which must have had this jre information built in. I don't know how it got there???
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill Gates put it there.
 
arun mahajan
Ranch Hand
Posts: 305
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems Bill Gates busy dong lot of nuisance in Windows. Good Dirk
Arun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic