Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2007, 08:59 PM
Member
 
Join Date: Nov 2007
Posts: 4
Rep Power: 0
kotoko is on a distinguished road
Thumbs down javac not recognized as an internal or external command
I am unable to runthe javac command
I get a "javac not recognized as an internal or external command"
I searched and tried everything I found but nothing works.
What I have so far:
eclipse runs perfectly (but I really need to run javac for school purposes)

my system variables:
JAVA_HOME -> C:\Programas\Java\jdk1.6.0
CLASSPATH -> .;%JAVA_HOME%
Path -------> %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Programas\ATI Technologies\ATI Control Panel;C:\Programas\MATLAB7\bin\win32; %PATH%; %JAVA_HOME%\\bin

if I hava the file.java inside the directory where javac is it works perfectly

Pleeease help!


I'm trying to compile at D:\dei\workspace\HelloWorld\src
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-04-2007, 09:22 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
Rep Power: 10
JavaBean is on a distinguished road
Default
It looks like you have one extra \ in "%JAVA_HOME%\\bin"
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-05-2007, 11:36 AM
Member
 
Join Date: Nov 2007
Posts: 4
Rep Power: 0
kotoko is on a distinguished road
Default not working
tried and still not working.

btw - it was like that in the tutorial I followed (it was like that twice)
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-05-2007, 11:45 AM
Member
 
Join Date: Jun 2007
Location: Colombo, Sri Lanka
Posts: 32
Rep Power: 0
hiranya is on a distinguished road
Default
type the following in the terminal (or command prompt) and see whether you get any output. If you get an error message then your environment variables haven't being setup properly.

Code:
java -version
Regards,
Hiranya
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-05-2007, 12:24 PM
Member
 
Join Date: Nov 2007
Posts: 4
Rep Power: 0
kotoko is on a distinguished road
Default finally a command that works! :)
Code:
java -version
returns the version of java properly.

Does this mean anything about my system variables and\or what is my problem?
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 11-05-2007, 12:31 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
Rep Power: 10
JavaBean is on a distinguished road
Default
Hmm. Check if you have javac in the JDK's bin directory. It looks like you have a java.exe there but no javac.exe.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 11-05-2007, 12:39 PM
Member
 
Join Date: Nov 2007
Posts: 4
Rep Power: 0
kotoko is on a distinguished road
Default
I found the problem I had a space between ; and the start of the path in the system variable . . .

I now newbie error but thanks a lot for your help!
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse's internal Tomcat vadimf Eclipse 0 02-14-2008 09:37 AM
Unable to execute command line command in java LordSM New To Java 1 08-08-2007 12:23 AM
an internal error occurred during refresh christina Eclipse 1 08-06-2007 09:37 PM
type javac on the command line from any directory of your machine silvia New To Java 4 07-20-2007 04:18 AM
Description the server encountered an internal error Jack Enterprise JavaBeans 2 07-02-2007 02:24 AM


All times are GMT +2. The time now is 03:56 AM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org