Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-04-2007, 09:59 PM
Member
 
Join Date: Nov 2007
Posts: 4
kotoko is on a distinguished road
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
Sponsored Links
  #2 (permalink)  
Old 11-04-2007, 10:22 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
It looks like you have one extra \ in "%JAVA_HOME%\\bin"
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-05-2007, 12:36 PM
Member
 
Join Date: Nov 2007
Posts: 4
kotoko is on a distinguished road
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, 12:45 PM
Member
 
Join Date: Jun 2007
Location: Colombo, Sri Lanka
Posts: 31
hiranya is on a distinguished road
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, 01:24 PM
Member
 
Join Date: Nov 2007
Posts: 4
kotoko is on a distinguished road
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, 01:31 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
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, 01:39 PM
Member
 
Join Date: Nov 2007
Posts: 4
kotoko is on a distinguished road
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
Sponsored Links
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

vB 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 10:37 AM
Unable to execute command line command in java LordSM New To Java 1 08-08-2007 01:23 AM
an internal error occurred during refresh christina Eclipse 1 08-06-2007 10:37 PM
type javac on the command line from any directory of your machine silvia New To Java 4 07-20-2007 05:18 AM
Description the server encountered an internal error Jack Enterprise JavaBeans 2 07-02-2007 03:24 AM


All times are GMT +3. The time now is 10:53 PM.


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