This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Yet another classpath problem

 
Jay X Brown
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sometimes, you've stared at it for so long, you stop seeing the problems
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic