Ok thank you for your help Joshua. I didn't think of it being a
configuration
problem. I will put the java file in my home directory after I install the
JDK. I don't understand what a class path is, Does this mean a class file
folder?
Thanks, Misty
Joshua Cranmer 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
>> @[EMAIL PROTECTED]
"
>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.
--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-jvm/200706/1


|