Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java path settings

 
Hema Sujith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I am new to java.I am really confused with path settings.I am getting an error as ..."javac is not recognized as an external or internal command, operable program or batch file".
I am having windowsXP and I downloaded
J2SE v 1.4.1_03.I gave path as " c:\program files\java\j2re1.4.1_03\bin".And also created my simple java program in bin directory.But I am getting the above error.Actually I installed java in c:\java folder.When I check I found all bin,lib folders are in 'program files'.So I gave the path like that.I don't know all these...I really confused about this.I would appreciate it,if you guys help me in this regard.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chinni,
Welcome to JavaRanch, the absolute best site on the www for Java information. We don't have many rules around here, but we do have one. Please change your display name to a first and last name to comply with the JavaRanch Naming Policy. You can change it here. Thank you for your cooperation.
You need to set the PATH variable in XP. Take a look at this
thread and see if that helps.
 
bharat nagpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first open commnd window
write path=%path%;c:\java\bin
now try to execute javac....it will run.
This path will be set for the current dos window.
For permanently setting the path
go to
Start - Control Panel - System - Advanced Tab - Environment Variables
and add c:\java\bin; in in the start of PATH variable value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic