aspose file tools*
The moose likes Beginning Java and the fly likes Yet another classpath problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Yet another classpath problem" Watch "Yet another classpath problem" New topic
Author

Yet another classpath problem

Jay X Brown
Ranch Hand

Joined: Jan 26, 2001
Posts: 51
Hi,

I'm sorry because I know I should not be having this problem. I am not a total beginner but I am just so stumped at this basic level.

I have two windows machines and a set of java applications to run on both. These are my development machines.

On one, I have Java 1.3.1_02-b02 and on the other I have Java 1.4.2_05-b04.

I can compile my code on the first and cannot compile my code on the second.

There are two jar files that are in the classpath but that are somehow not being loaded.

The classpath on the correctly functioning machine is as follows:
<code>
C:\Program Files\JavaSoft\JRE\1.3.1_02\Lib\rt.jar;
C:\oracle\ORANT\jdbc\lib\classes12.zip;
.;
C:\java\bin;
C:\java\lib;
C:\java\lib\jecf.jar;
C:\java\lib\servlet.jar;
C:\Lotus\Notes\JdbcSql\lib\JdbcDomino.jar;
C:\java\lib\soap.jar;
</code>

The classpath for the incorrectly functioning machine is like this:
<code>
C:\Program Files\lotus\notes\JdbcSql\lib\JdbcDomino.jar;
.;
C:\oracle\ora92\jdbc\lib\classes12.zip;
D:\jdk\bin;
C:\java;
D:\jdk\bin\jecf.jar;
D:\jdk\bin\servlet.jar;
D:\jdk\bin\soap.jar;
</code>

Obviously, for Machine 1, I have java jdk in c:\java and for Machine 2, I have it installed in d:\jdk.

Path variables are identical. Everything is identical and everything compiles except for the classes dependent on the classes within 'jecf.jar' and 'soap.jar'.

Pulling out my already sparse hair...

(Thanks in advance)

Jay
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
even though machine2 java is in jdk, wouldn't jecf.jar be in lib as on machine1?

D:\jdk\bin\jecf.jar;
Jay X Brown
Ranch Hand

Joined: Jan 26, 2001
Posts: 51
Oh my god! Of course! It had to be something stupid, simple and obvious like that...

Oh thank you, thank you, thank you...



I've made a fool of myself but at least I'm not crazy... Well...sort of...

Jay
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
sometimes, you've stared at it for so long, you stop seeing the problems
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Yet another classpath problem
 
Similar Threads
WAS AE 4.0.4 problem
Upgrading from 1.3 to 1.4 jdk (not working!)
Java call SOAP???
Running Tomcat as service; JDBC not working now
Windows 98 Oracle classpath