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

Class path errors

Upul Gunasinghe
Greenhorn

Joined: Nov 23, 2000
Posts: 2
Hi,
This is how i have set my class path
set path=%path%;c:/jdk1.2.1/bin;
set classpath=%path%;c:/jdk1.2.1/lib;
It works pretty well, but some times it give me errors saying that " The classpath is having spaces and some tools will not be working ".
Pls some help me
upul
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I am moving this thread to Java in General(beginner).
Ajith

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
shree vijay
Ranch Hand

Joined: Sep 18, 2000
Posts: 208
Hi Upul,
I have had some classpath problems too but i find that the following method of compiling works best for me

c:\java>javac -classpath . MyProgram.java
to execute,
c:\java>java -classpath . MyProgram
Of course, as soon as i start working in Java
i set the path (i work in jdk1.3)
c:\java>set path=%path%;c:\jdk1.3\bin
Hope this helps.
Shree


Regards,<BR>Shree
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class path errors