• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Yet another classpath problem

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sometimes, you've stared at it for so long, you stop seeing the problems
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic