Java Compile Problem!!

Ok i've been up for hours trying to sort this out and its just not working!

When i try to compile a file using

javac Simple.java

It doesn't make a .class file

but it does when i type

"D:\program files\java\jdk1.6.0\bin\javac" Simple.java

Sure, i could just type in the above but it gets annoying having to type it in every time i want to compile something.

i just want it so that when i type

javac Simple.java

it compiles it.

I don't know if i've been too clear, but i would appreciate any help with this matter.

Sam

[593 byte] By [ghoster82a] at [2007-10-3 6:17:26]
# 1
Err, add D:\program files\java\jdk1.6.0\bin to your PATH?
ejpa at 2007-7-15 1:02:07 > top of Java-index,Developer Tools,Java Compiler...
# 2
I've tried that but no luck...Sure it works when i typeset PATH=%PATH%;D:\program files\java\jdk1.6.0\binBut it looses it when i reboot.
ghoster82a at 2007-7-15 1:02:07 > top of Java-index,Developer Tools,Java Compiler...
# 3

> I've tried that but no luck...

> Sure it works when i type

> set PATH=%PATH%;D:\program files\java\jdk1.6.0\bin

>

> But it looses it when i reboot.

Right click on My Computer, select Advanced tab and click on Environmental Variables.

Then put the jdk path into the System Path.

atmguya at 2007-7-15 1:02:08 > top of Java-index,Developer Tools,Java Compiler...