Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Installation  RSS feed

 
Tom Matys
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just getting started and have installed the J2SE SDK.
Two questions, It is suggested that I add an entry to my PATH environment variable that points to the BIN directory so when I type % javac at the command line my terminal will know how to find the compiler. So where do I enter this PATH to my BIN directory? Second, Will I be able to code in notepad on my XP OS?
Thank-You.
 
Chetan Raju
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In windows XP --

Right click on "My Computer" and select "Properties"
Select "Advanced" Tab
Click on "Environment Variables" button.
You can add a new entry in User variables.

Variable name is PATH
and value is whatever is the path
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

For updating your PATH variable, see Step 5 of Sun's installation instructions for Windows.

Yes, you can certainly code using NotePad, or any other text editor you choose. If using NotePad, be sure that when you save, the file type is "All Files" and you add the .java extension to your filename.
[ August 06, 2006: Message edited by: marc weber ]
 
parshuram bingi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom Matys,

As Chetan Raju said you can go to environment variables and add the path, but, don't disturb if you have one. if have one select edit and in the variable value: at the end add a ';' and type the new java path.

else you can give the new value as "%path%;<the new path>"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!