• Post Reply Bookmark Topic Watch Topic
  • New Topic

Having problems with path, classpath variable  RSS feed

 
Fayez Butt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I set the PATH and CLASSPATH variables according to this article: http://www.javaranch.com/cattledrive.jsp

But I still can't get javac to work.

When I installed Java SE from the website, it installed everything to C:\Program Files\Java.
So I edited the PATH to include:
C:\Program Files\Java\jdk1.6.0_02\bin;
and
C:\Program Files\Java\jre1.6.0_02\bin

And I typed the following at the command prompt, which returned the prompt normally and gave me no error.

set CLASSPATH=.;C:\Program Files\Java

But still, trying javac HelloWorld.java tells me that javac is not recognized.

Could someone please assist? I would greatly appreciate it.
 
saurav sarkar
Ranch Hand
Posts: 180
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bit strange............in the console type path
and paste us the result.
 
Fayez Butt
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm at my computer at work so maybe i'm not allowed to update the path variable. I right-click on My Computer > Properties > Advanced > Environment Variables, and add the variables needed. But when i type path at the prompt, the variables listed are still the old ones. This is what I get:

C:\>path
PATH=C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Pro
gram Files\ATI Technologies\ATI Control Panel;c:\Program Files\ATI Technologies\ATI.ACE\;C:\TAL\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Support Tools\;C:\Program Files\SSH Communications Security\SSH Secure Shell


Any way to get around this?
Thanks
 
saurav sarkar
Ranch Hand
Posts: 180
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ur path settings are not right....thats the problem......
the only problem i know not recognizing javac is your
path settings are not right.
Are you editing the path variable through right clicking
on my computer correctly?
Please paste the path variable you are editing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!