Results 1 to 10 of 10
- 07-21-2011, 05:29 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 8
- Rep Power
- 0
'javac' not recognisable even after Environment Variables.
Hi,
I'm am completely new to Java. Previous coding has been solely web based (php, js...ect).
I am following this guide. I have installed jdk1.6.0_26, i have followed the installation problems guide and written into the Environmental Variables the following: C:\Program Files\Java\jdk1.6.0_26\bin\ and named them 'javac'...
However I am still getting the ''javac' is not recognized as an internal or external command, operable program or batch file'...
I've tried unistalling and reinstalling but that hasn't changed anything... Does anyone know what I'm missing? i would very much appreciate a helping hand here... i've been trying to just do the hello world now for a few hours and i cant compile it..
- 07-21-2011, 05:33 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Go to the directory you put in your path environment variable; do you see a javac.exe file in that directory?
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 07-21-2011, 05:35 PM #3
Member
- Join Date
- Jul 2011
- Posts
- 8
- Rep Power
- 0
yup... C:\Program Files\Java\jdk1.6.0_26\bin\javac.exe
It's all there... i dont get it.
- 07-21-2011, 05:36 PM #4
Member
- Join Date
- Jul 2011
- Posts
- 8
- Rep Power
- 0
yup... C:\Program Files\Java\jdk1.6.0_26\bin\javac.exe
It's all there... i dont get it.
- 07-21-2011, 05:56 PM #5
Member
- Join Date
- Jul 2011
- Posts
- 8
- Rep Power
- 0
Well, i found a remote compiler: JXXX Compiler Service
Compiled the basic HelloWorld.java, tried to run it from CMD but it failed... really don't understand what i'm doing wrong... i've attached an image of the error...
- 07-21-2011, 06:13 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
You should run it as:
(skip the .class part). Also check your path variable for typos. If the path really points to the directory where javac.exe is stored you should be able to run it.Java Code:java HelloWorld
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 07-21-2011, 06:33 PM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
- 07-21-2011, 07:22 PM #8
Member
- Join Date
- Jul 2011
- Posts
- 8
- Rep Power
- 0
Ooooo... :) thank you very much Tolls and Jos
- 07-21-2011, 07:44 PM #9
You can show us your PATH variable by opening a command prompt and entering: PATH
Here's what I get
You can copy the contents of the command prompt by:Java Code:Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\Norms\Norms Tools>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Ja va\jdk1.5.0_04\bin;C:\BatchFiles;C:\Program Files\Support Tools\;C:\WINDOWS\syst em32\WindowsPowerShell\v1.0;C:\Program Files\QuickTime\QTSystem\ D:\Norms\Norms Tools>
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.
- 07-21-2011, 09:12 PM #10
Member
- Join Date
- Jul 2011
- Posts
- 11
- Rep Power
- 0
after installing java check for JRE too
JRE will only execute ur program
go to enviromental variables ---> sys variables --> go to path --> edit --> copy the jdk bin folder path
save .... apply .... restart ur sys once
becoz javac app resides in jdk bin folder .... so u have to choose that path ......
Similar Threads
-
Java Environment Variables Error?
By Terra in forum New To JavaReplies: 9Last Post: 07-07-2011, 05:28 AM -
Path in Environment Variables already occupied
By missrose1991 in forum New To JavaReplies: 0Last Post: 02-25-2011, 01:07 PM -
how to create environment variables
By elizabeth in forum Advanced JavaReplies: 4Last Post: 08-02-2007, 04:53 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks