• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class Path setting  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I am new here. My problem is my Jdk location is
C:\Program files\Java\jdk1.5\bin
and I wish to put my source code files in
C:\Training

how should I set my class path variables so that I can run javac command in C:\Training

Thanks alot and regards
Peter
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go to installed folder bin. and in cmd prompt after javac write full path of u r java file
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should read this to understand what the CLASSPATH is.
You really need to understand how it works:
http://faq.javaranch.com/view?HowToSetTheClasspath

After reading this, if you still cannot compile your sources, ask again
 
Peter Mathew
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot guys I got it by reading the FAQs.I appreciate.
Peter
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!