ctually the 15 shown above and in my files is different to the update 26 it told me I was receiving.
Also, should I put a space then MyClass.java after the path,
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
cd C:\Program Files\Java\jdki.6.0_15\bin\javac MyClass.java
C:\Program Files\Java\jdki.6.0_15\bin\javac -version
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
C:\>dir "\program files\java\jre6\bin\*.exe"
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
So I've now saved a WordPad file MyFirstApp.java in the above route within the bin folder - I'm sure that's the wrong thing to do.. however, ..
Then typed "\Program Files\Java\jdk1.6.0_15\bin\javac.exe MyFirstApp.java" and it wasn't recognised..
[My Blog]
All roads lead to JavaRanch
I doubt that is true. Try deleting your MooseGreetings.class file. then run that command again. I'm guessing that first, of all, it drops you back to a command prompt (that is something, even if it doesn't look like it). I'm betting it also created your MooseGreetings.class file. That is also something.If I type javac MooseGreetings.java in the directory, nothing happens at all.
"\program files\java\jre6\bin\java.exe" MooseGreetings
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |