• Post Reply Bookmark Topic Watch Topic
  • New Topic

First time user having issues with javac.exe  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, Im a comp sci student tasked with my first project using java. My course has given no instruction on how to operate this system, so its sort of a trial by fire type of thing. Anyways, i've installed the latest version of Java 1.60_17 and I am trying to compile my .class files using a command prompt. I have the path set to my bin folder for java - however, when I i enter javac Oval.java into the command line I receive this error:

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

I've gone through several installation guides step by step yet continue to have this same problem, any help would be greatly appreciated.
 
Bartender
Posts: 1664
37
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this happens when javac.exe is not in the same path as the one where you are running the command:

eg:

javac is in c:\java\bin folder

and you are running:



it would obviously not work and show you that error, you need to tell the system where to find the javac command:



now check , the command would work fine
 
salvin francis
Bartender
Posts: 1664
37
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, and I almost forgot .... Welcome to Javaranch !!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!