• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

java path settings

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
What a show! What atmosphere! What fun! What a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic