Results 21 to 29 of 29
- 07-26-2010, 07:55 PM #21
- 07-28-2010, 08:03 PM #22
Member
- Join Date
- Jul 2010
- Posts
- 3
- Rep Power
- 0
This is the code I appended to the field
I am using version jdk1.6.0_21, so I appended the following exactly to the end of my PATH field.
;C:\Program Files\Java\jdk1.6.0_21%JAVA_HOME%\bin
I ran a couple of exe's from the command line, and did not receive any errors.
I also ran from the command line:
java -version
And I received back the correct data:
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)
- 07-28-2010, 08:27 PM #23
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 07-28-2010, 08:44 PM #24
Member
- Join Date
- Jul 2010
- Posts
- 3
- Rep Power
- 0
setting Path variable
ooOOHHHhhh - thankyou JosAH - I wasn't sure about it, but was trying different things because I couldn't get anyone to tell me definitively which is better.
What do you recommend?
If I were to use %JAVA_HOME% , where would I set the correct value - is there a global place to set it?
I am having trouble running the compiler on a program from the command line - I have saved the program as *.java, and attempted to run:
javac *.java , but it can't find the program. I did save the code in the Program Files\Java folder, but it still does not find it. Can you suggest what I might be missing?
- 07-28-2010, 08:59 PM #25
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 07-28-2010, 11:26 PM #26
Member
- Join Date
- Jul 2010
- Posts
- 3
- Rep Power
- 0
PATH variables
Thanks JosAH , I actually figured it out after I posted the question. I prefer to use JAVA_HOME (I added the variable to the list so that I could use it). Thanks! :)
- 09-29-2010, 11:18 AM #27
Member
- Join Date
- Sep 2010
- Posts
- 1
- Rep Power
- 0
- 10-26-2010, 04:25 AM #28
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
-
If you have your own question, you'd be best to ask it in it's own thread and give more details such as how you are trying to call things and what error messages you may be getting. Locking this older thread.
Similar Threads
-
Eclipse's internal Tomcat
By vadimf in forum EclipseReplies: 0Last Post: 02-14-2008, 09:37 AM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM -
an internal error occurred during refresh
By christina in forum EclipseReplies: 1Last Post: 08-06-2007, 09:37 PM -
type javac on the command line from any directory of your machine
By silvia in forum New To JavaReplies: 4Last Post: 07-20-2007, 04:18 AM -
Description the server encountered an internal error
By Jack in forum Enterprise JavaBeans (EJB)Replies: 2Last Post: 07-02-2007, 02:24 AM


LinkBack URL
About LinkBacks


Bookmarks