| Joshua Cranmer 2007-06-14, 10:11 pm |
| Mitchell_Collen wrote:
> Hello All,
> I have installed jre1.4.2_14 and I have been trying to get a small "hello
> world type" program to run.
JRE != JDK. What you want to get is the JDK (preferably a newer one, say
1.5 or 1.6)
> recognize the command. However, when I type java the error says that it
> cannot find Main string in java.lang <-- I don't have full message because I
The error you a giving is not very helpful -- it looks like you are
trying to say java java.lang which has several problems in its own right
that I am not going to address.
> Error : Invalid path, \bin\javac.exe -source 1.5 -classpath "C:\Program Files\
> Java\j2re1.4.2_14\bin" -d C:\Program" "Files\Java\j2re1.4.2_14\bin
> @src_myproject2.txt"
Several things wrong with this:
1. You seem to be building inside the Java file, which is not a very
good idea. Ideally your classpath should be somewhere else, like in a
{home dir}\Java\Project.
2. The path seems to be off...
Finally, this isn't a Java virtual machine problem; this is a Java
configuration problem. Therefore, I am X-posting to c.l.j.h with
follow-up set to c.l.j.h.
|