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
Joined: Mar 15, 2000
Posts: 411
posted
0
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.
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 ]
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
Joined: Mar 15, 2000
Posts: 411
posted
0
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???