• 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

First time user having issues with javac.exe

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh, and I almost forgot .... Welcome to Javaranch !!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic