Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class path errors

 
Upul Gunasinghe
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this thread to Java in General(beginner).
Ajith
 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic