Home » questions » Compilation problems?

Compilation problems?

2006-07-31 01:09:18, Category: Programming & Design
how do i compile a .java file? i have windows xp and i know you have to write in console javac app1.java but it isn't working, i get this error: 'javac' is not recognized as an internal or external command, operable comand or batch file...

Answers

  1. TRAXIC

    On 2006-07-31 01:15:45


    Make Sure: A) You're In The Same Directory As The Java Compiler B) Java Compiler Is In Your PATH Environment Variable (Type PATH in DOS to see the current value) C) Use The Full Path To Java Compiler (c:\java\bin\javac.exe app1.java)
  2. koolgrl87

    On 2006-07-31 01:47:14


    i think u hav not set d path right click on my computers properties>>advanced>>Environment varibles>>system varibles>> select path... n..... press edit...... dont delete d content which is all ready dere.....put ; after dat... giv ur path for java.............. "drive"\"ur java folder name"\"bin"; like dis c:\java\bin;
  3. pretty girl

    On 2006-07-31 01:22:00


    i think u had a problem in the environmental variable. edit ur path and write there drive name:system root\java version\lib;drive name:system root\java version\bin;drive name:system root\java version\include;