Register FAQ Calendar Search Today's Posts Mark Forums Read

Go Back   Java Programming Forums > Java Programming > New to Java

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-07-2008, 10:35 AM
JavaPF's Avatar
Java Programmer
 
Join Date: May 2008
Location: Deep inside the Eclipse IDE
Posts: 172
JavaPF will become famous soon enoughJavaPF will become famous soon enough
Default Re: javac.exe problem

How to set the Java classpath
Reply With Quote
  #12 (permalink)  
Old 11-07-2008, 11:00 AM
Junior Member
 
Join Date: Jul 2008
Posts: 6
sepalm is on a distinguished road
Default Re: javac.exe problem

Hmmm, not sure if Vista is different, i have opened the env vars, and there was no JAVA_HOME, so i've added a new one, called JAVA_HOME, and given it the classpath of C:\Program Files\Java\jdk1.6.0_07

but when i open cmd still gotta use cd to use javac, not sure whether that was the purpose of changing the env vars though lol :-(
Reply With Quote
  #13 (permalink)  
Old 12-11-2008, 07:11 AM
Junior Member
 
Join Date: Nov 2008
Posts: 1
anandmohans is on a distinguished road
Default Re: javac.exe problem

There are two things: first is specifying where your system would find javac.exe to execute; second is where your java compiler (or javac.exe) would find classes it needs to compile. Former would be specified in your systems PATH variable and latter would be specified by your CLASSPATH variable.

To be able to execute javac.exe from anywhere, you must add following information to your system's PATH variable; i.e. you path variable would look like PATH=<path_to_java_installation_folder>/bin;<%other_PATH_variable values%>

For more information on classpath, refer to following link:
Welcome to J2EE Concepts - Java

HTH,
Anand

Last edited by anandmohans; 12-11-2008 at 07:13 AM. Reason: Putting a more readable URL
Reply With Quote
  #14 (permalink)  
Old 12-11-2008, 12:48 PM
Junior Member
 
Join Date: Nov 2008
Posts: 1
TOAST is on a distinguished road
Default Re: javac.exe problem

Hi,
just had a go at this and had no joy. Can you explain why you've used the path D:\javaSoft\jdk...

Thanks
T
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Custom Search
100 most searched terms
Search Cloud
"bad endpoint type" com.sun.xml.internal.messaging.saaj.soapexceptionimpl com.sun.xml.internal.messaging.saaj.soapexceptionimpl: bad endpoint type com.sun.xml.internal.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception com.sun.xml.internal.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: message send failed com.sun.xml.internal.messaging.saaj.soapexceptionimpl: message send failed com.sun.xml.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception com.sun.xml.messaging.saaj.soapexceptionimpl: java.security.privilegedactionexception: com.sun.xml.messaging.saaj.soapexceptionimpl: message send failed convert arraylist to map date_format_now eclipse shortcut keys ejb3 quartz java convert double to binary java forum java forums java jtextarea bold java jtextarea color java jtextarea font java jtextarea font size java programmer forum java programmers forum java programming forum java programming forums java read last line java read last line of file java sendkeys java.security.privilegedactionexception java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: bad response java.security.privilegedactionexception: com.sun.xml.internal.messaging.saaj.soapexceptionimpl: message send failed java.security.privilegedactionexception: com.sun.xml.messaging.saaj.soapexceptionimpl: message send failed javapf javaprogrammingforums jtextarea bold jtextarea font jtextarea font color jtextarea font size programing forums programming forums reset jcombobox saaj0008 saaj0008: bad response; bad request saaj0008: bad response; not found severe: saaj0008 severe: saaj0008: bad response; bad request severe: saaj0008: bad response; not found soap java.security.privilegedactionexception soapexceptionimpl: bad endpoint type textpad java

All times are GMT. The time now is 12:36 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.