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

i downloaded jdk1.5_03 and need help  RSS feed

 
Doug Fann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i downloaded jdk1.5_03 from java.sun.com. i am using windows xp pro. i created the first program Hello world) and saved it. when i go to the dos prompt i cant get to the program files directory. that is where i put java. how do i tell the computer to look in program files, then java. the name is to long and i get a message directory not found. i havent used dos in a very very long time and need to find out how i can access program files
 
Amirthalingam Prasanna
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Progra~1\java instead of typing the entire "Program files\java"
Or an easier way is to add an environment variable by right clicking My Computer and going to properties and then the advanced tab where you can set something like JAVA_HOME=C:\Program files\java and then in command prompt you can use "cd %JAVA_HOME%"
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is advisable that you do not keep your source files under folders that contain spacing in its name. This may cause some issues with the compiler (EJBC, perhaps).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!