• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do i get Java working?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there.

Sorry about this very basic question.

I have installed J2sdk1.4.2_04 (don't know if that makes sense.)

It is installed in my C drive. I have edited the path within the enviromental variables. I have also created a classpath pointing to the correct java.exe file and tools.jar file. However, when i run;

javac HelloUser.java

I get a response of;

'javac' is not recognised as an internal or external command, operable program or batch file

Can anyone help???

Thanks in advance!

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
set path = .;C:\J2sdk1.4.2_04\bin
set classpath = .;C:\J2sdk1.4.2_04\lib
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're at the point where you're just trying to get javac to run, then it's best to not set CLASSPATH to anything at all! It is not necessary to set it. Java will work fine with the default setting -- but setting CLASSPATH incorrectly will prevent it from doing anything.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kay Kumar:
Hi there.

Sorry about this very basic question.

I have installed J2sdk1.4.2_04 (don't know if that makes sense.)

It is installed in my C drive. I have edited the path within the enviromental variables. I have also created a classpath pointing to the correct java.exe file and tools.jar file. However, when i run;

javac HelloUser.java

I get a response of;

'javac' is not recognised as an internal or external command, operable program or batch file

Can anyone help???

Thanks in advance!



This error message indicates that the operating system (Windows?) cannot find the javac.exe program. This probably means that you have not set the PATH environment variable correctly. Try typing

and tell us what the output is. This will help us to figure out what you need to get things to work correctly.

Layne
reply
    Bookmark Topic Watch Topic
  • New Topic