File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XP Professional and Class Paths

 
Dan Zan
Greenhorn
Posts: 6
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic