Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

javac command not working in command prompt

Thread view: 
chrisdude911 - 01 Sep 2006 09:22 GMT
Hi guys,
I have just installed SDK 1.4.2 and i am following the
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
tourial.
I tried installing version JDK 6 beta 2 but the javac command in
command prompt did not work, i still have the same problem with SDK
1.4.2
Can anyone help?
Thanks
Chris
chrisdude911 - 01 Sep 2006 09:25 GMT
I will try JDK 5.0 Update 8 later when the site so  busy that i cannot
download it
> Hi guys,
> I have just installed SDK 1.4.2 and i am following the
[quoted text clipped - 6 lines]
> Thanks
> Chris
chrisdude911 - 01 Sep 2006 09:44 GMT
That didn't work
> I will try JDK 5.0 Update 8 later when the site so  busy that i cannot
> download it
[quoted text clipped - 8 lines]
> > Thanks
> > Chris
TechBookReport - 01 Sep 2006 09:49 GMT
> That didn't work
>> I will try JDK 5.0 Update 8 later when the site so  busy that i cannot
[quoted text clipped - 9 lines]
>>> Thanks
>>> Chris

What do you mean, 'does not work'? Are you getting compile errors, file
not found errors or something else? What platform are you on?

If you're running on Windows and are getting: 'javac' is not recognized
as an internal or external command, operable program or batch file.'
Then it's most likely a path issue.

Signature

TechBookReport Java http://www.techbookreport.com/JavaIndex.html

chrisdude911 - 01 Sep 2006 09:59 GMT
C:\Java>javac HelloWorldApp.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

that is the message, i have put C:\Program
Files\JAVA\jdk1.5.0_08\bin\javac into the PATH but it is still not
working

> > That didn't work
> >> I will try JDK 5.0 Update 8 later when the site so  busy that i cannot
[quoted text clipped - 16 lines]
> as an internal or external command, operable program or batch file.'
> Then it's most likely a path issue.
chrisdude911 - 01 Sep 2006 10:02 GMT
i also tried C:\Program Files\Java\jdk1.5.0_08\bin\
and that didn't work
> C:\Java>javac HelloWorldApp.java
> 'javac' is not recognized as an internal or external command,
[quoted text clipped - 27 lines]
> > --
> > TechBookReport Java http://www.techbookreport.com/JavaIndex.html
TechBookReport - 01 Sep 2006 10:20 GMT
> i also tried C:\Program Files\Java\jdk1.5.0_08\bin\
> and that didn't work
[quoted text clipped - 28 lines]
>>> --
>>> TechBookReport Java http://www.techbookreport.com/JavaIndex.html

OK, open a command prompt, navigate to the bin directory and just type
javac. If you get a screen full of options then there's nothing wrong
with the install. Also, try using the full path to the javac.exe in your
compile command.

Signature

TechBookReport Java http://www.techbookreport.com/JavaIndex.html

chrisdude911 - 01 Sep 2006 10:20 GMT
Don't Worry now
Simpe error i forgot to restart command prompt!
we learn a new thing every day!
Thanks
Chris
> i also tried C:\Program Files\Java\jdk1.5.0_08\bin\
> and that didn't work
[quoted text clipped - 29 lines]
> > > --
> > > TechBookReport Java http://www.techbookreport.com/JavaIndex.html
TrevorBoydSmith@gmail.com - 01 Sep 2006 14:47 GMT
to get windows/linux/etc etc to recognize a new command you have to
tell the OS where the command .exe is present.  To do this you have to
change the environment variable.  Search on google for: environment
variables java classpath

On windows --> control panel --> system --> advanced tab -->
environment variables button --> then you have to change both the
"path" and "classpath" environment variables

make sure to NOT delete the path environment variable or you are kinda
screwed.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.