Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: set path to javac. javac not working  (Read 5303 times)

0 Members and 1 Guest are viewing this topic.

faizan1990

    Topic Starter


    Rookie

    set path to javac. javac not working
    « on: December 17, 2008, 07:09:08 AM »
    I've installed Java SDK 1.4.2. It has installed properly and working all well. But the problem is that everytime I've a compile a ".java" file, I've to first set the path to the bin folder and after that the "javac" command works and of course all other built in commands of DOS i.e. "edit", "rename", stop working and only "javac" works. When I close and reopen MS DOS, the same is the case. i.e. i again have to set the path to the bin library of java.
    i opened autoexec.bat but there was nothing written in it... no data.. it was all empty. I am using windows 98 (not sure about the dos version). I also typed the following code in autoexec.bat and saved it:

    set path=c:\j2sdk1.4.2_19\bin

    saved it and ran it but it didn't work.

    There was nothing already in the autoexec.bat.
    From where I can permanently set the path to bin folder so that whenever I type "javac filename.java" to compile.. it compiles it without given "bad command or file name"

    Thanx in advance.