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

XP Professional and Class Paths

 
Dan Zan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that I never seem to get pass installing Java on a new operating system without a problem or two.
I followed the instructions provide by sun---going to Control Panel and setting the Enviromental Variables etc. But, no luck, I correctly named my file etc. So, it must be my classpaths. Here is what I have:
C:\j2sdk1.4.0\bin; C:\j2sdk1.4.0\jre\bin; C:\j2sdk1.4.0\lib
The error returned is that it can't find my file.
Even though it is in bin.
Any Ideas
ZanMan
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When can't it find the file? When you type it in the console?
Example: >javac
If javac isn't found then the problem is the path not the classpath.
 
Dan Zan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There:
Thanks for repling.
I should make a correction the error returned by the compiler is cannot read dan.java.
any further ideas?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is Dan.java? You should be running the compile from the directory that Dan.java is in. The classpath is used to find classes, not java source files.
 
Trent DiBacco
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add your current directory other wise know in java as the Defualt package to your classpath
CLASSPATH = %CLASSPATH%;. <- this dot indicates current direcoty, the %CLASSPATH% is just my shorthand to what ever you had before.
so basicaly im saying add a dot(. or ./) to your class path.
[ June 07, 2002: Message edited by: Trent DiBacco ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic