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

Class path errors

Upul Gunasinghe

Joined: Nov 23, 2000
Posts: 2
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
Ajith Kallambella

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

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 .
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.

I agree. Here's the link:
subject: Class path errors
It's not a secret anymore!