FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Java Classpath configuration.





pollux1er
I already installed Jdk6 on my mavine. Now i have a probem with my compilation. It's probably because my classpath is not well configured.
Well when i type "javac" on cmd, javac is not a syntax that works. But when i am on the folder of Jdk 1.6.0, javac is working.

What i know is that i have to configure the classpath. But how should i do it?

What is the command that i should add to environments variables...
Thanks to help me.
hicham_the_webmaster
You must add the link to the bin folder to your Path variable in your environnement ones :

1. Right clic on My Computer -> Properties
2. Advanced tab
3. Envrionnement variables
4. In system variables look for the named : PATH and clic to edit
5. In the value add the path to your bin and follow it by a semi column (Wink

and that's all man.

Now u can use javac or any .exe located in your folder
(do a java -version for example)

Razz
munkey_boy
You could always try putting "javac.exe" into "C:\WINDOWS\System32" then whenever you go into CMD all you need to do is type "javac" and it should work. But make sure you copy it not cut it out of the jdk6 bin folder.
varun_dodla
hicham_the_webmaster wrote:
You must add the link to the bin folder to your Path variable in your environnement ones :

1. Right clic on My Computer -> Properties
2. Advanced tab
3. Envrionnement variables
4. In system variables look for the named : PATH and clic to edit
5. In the value add the path to your bin and follow it by a semi column (Wink

and that's all man.

Now u can use javac or any .exe located in your folder
(do a java -version for example)

Razz


It is also advisable to follow the same approach and add the jdk lib directory to the environment variable CLASSPATH.

Hope this helps.
pollux1er
Thanks for the tips. I'll try them first and see the results.
pollux1er
varun_dodla wrote:
hicham_the_webmaster wrote:
You must add the link to the bin folder to your Path variable in your environnement ones :

1. Right clic on My Computer -> Properties
2. Advanced tab
3. Envrionnement variables
4. In system variables look for the named : PATH and clic to edit
5. In the value add the path to your bin and follow it by a semi column (Wink

and that's all man.

Now u can use javac or any .exe located in your folder
(do a java -version for example)

Razz


It is also advisable to follow the same approach and add the jdk lib directory to the environment variable CLASSPATH.

Hope this helps.


Thanks for your help. I did it and it works.

Thanks a lot.
Related topics
JAVA CLASSPATH
Java classpath problem
JAVA Trouble
mysql java connector classpath error
jsp and java servlet
Java Servlet IDE and development Environmnet
Java applet error.
Java Servlet Help needed
Java Game
Java
[java scripts] Text effect , img ....
Add to favorites script - Java
Problems with Java
Java Programming Introductory
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.