Results 1 to 14 of 14
- 12-21-2010, 10:43 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
java-version is not recognized as an internal or external command, operable program o
hi all
i am new to java but i have been reading up on my problem and evrything i try will not work
my problem is, i open up command prompt and type in (Java-version) and it comes up with the same error message each time java-version is not recognized as an internal or external command, operable program or batch file.
with what i have read i have to change the path to it in enviroment variables
my current path i ;Local Disk (C:)\Program Files (X86)\Java;C:\Program Files\Trend Micro\AMSP
thx in advanced
- 12-21-2010, 11:08 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
- 12-21-2010, 11:47 AM #3
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
ok so i open up (cmd) and it says C:\Users\private>
i type this into it C:\Users\private>Local Disk (C:)\ Program Files (x86)\java
and it comes up with the message 'Program' is not reconized as an internal or external command, operable program or batch file.
plz tell me what i am doing wrong
for the other thing i go into the java folder and serch javac.exe and the search comes back with the java control panal
is that what is meant to happen
and thx for the reply
- 12-21-2010, 12:45 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Go to the directory where you suspect javac.exe is stored (use the 'cd' command to move to that directory) and type 'dir'. You should see javac.exe listed with all the other files stored in that directory. If you can see the file add the directory to your classpath variable, if you don't see it you have to search for it.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 12-21-2010, 01:11 PM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
It's java they're trying to run isn't it?
Not javac.
Anyway, just type java anywhere in a cmd and see if it recognises it. The path might be set for all we know.
- 12-22-2010, 12:44 AM #6
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
ok so i type in 'dir' and it comes up with this
C:\Users\private>dir
Volume in drive C has no label
Volume serial Number is 185d-acsd
Directory of C:\Users\private
21/12/2010 0:26 PM <DIR> -
21/12/2010 0:26 PM <DIR> --
21/12/2010 0:26 PM 355 Computer - Shortcut.ink
04/08/2010 05:43 PM <DIR> contracts
21/12/2010 05:19 PM <DIR> Desktop
21/12/2010 08:50 PM <DIR> documents
21/12/2010 05:53 PM <DIR> downloads
04/08/2010 05:43 PM <DIR> favorites
21/12/2010 08:26 PM <DIR> java
09/06/2010 04:44 PM <DIR> 769 liam's work - shortcut.ink
04/08/2010 05:43 PM <DIR> Links
04/08/2010 05:43 PM <DIR> music
04/08/2010 05:43 PM <DIR> pictures
04/08/2010 05:43 PM <DIR> saved games
04/08/2010 05:43 PM <DIR> searches
04/08/2010 05:43 PM <DIR> videos
2 File(s) 1,124 bytes
14 Dir(s) 241,116,823,552 bytes free
-
That's not where javac.exe is stored as was suggested above. Look into the java directory that you see above, and possibly a bin subdirectory. Keep looking until you find the file. It's not that hard to find.
- 12-22-2010, 01:41 AM #8
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
ok so i go into c drive go program files x86 then i open up the java folder and in the search thing in the top right i type in javac.exe it comes up with javacpl which is java control panel. the path to it is local disc (C:)>Program Files(x86)>Java>bin
- 12-22-2010, 01:42 AM #9
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
what am i doing wrong
- 12-22-2010, 07:03 AM #10
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
- 12-22-2010, 08:41 AM #11
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
What happens when you just type "java" at the command line (no quotes)?
I don't see anywhere in your posts where you have actually tried that.
- 12-22-2010, 10:58 AM #12
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
when i type java into the cmd it comes up with
'java' is not recognized as an internal or external command, operable program or batch file.
and for you josAH i found the path to java through cmd and in that folder i found java.exe but not javac.exe hope that helps you
thanks for replying
- 12-22-2010, 11:01 AM #13
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
OK.
Do you have the SDK installed?
javac only comes with the SDK.
The folder you have found is the runtime (JRE).
- 12-31-2010, 01:36 AM #14
Member
- Join Date
- Dec 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
'java' is not recognized as an internal or external command,Please Help
By xseahawksx in forum New To JavaReplies: 6Last Post: 05-10-2011, 04:32 PM -
Java is not recognized as an internal or external command
By david1995 in forum New To JavaReplies: 12Last Post: 11-25-2010, 06:55 AM -
Java is not recognized as an internal or external command.
By Java Skills in forum New To JavaReplies: 6Last Post: 09-13-2010, 11:13 PM -
C:\Program is not recognized as an internal or external command...
By HughTh in forum NetBeansReplies: 5Last Post: 04-26-2010, 04:45 AM -
javac is not recognized as internal or external command, operable program or batch...
By ashin in forum New To JavaReplies: 8Last Post: 11-18-2008, 09:21 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks