Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 24204
44
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
 
You learn how to close your eyes and tell yourself "this just isn't really happening to me." Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic