Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: java virtua...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 778 of 803
Post > Topic >>

Re: java virtual machine - help me please?

by Joshua Cranmer <Pidgeot18@[EMAIL PROTECTED] > Jun 14, 2007 at 11:06 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
> @[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.




 3 Posts in Topic:
java virtual machine - help me please?
"Mitchell_Collen&quo  2007-06-14 17:57:14 
Re: java virtual machine - help me please?
Joshua Cranmer <Pidgeo  2007-06-14 23:06:23 
Re: java virtual machine - help me please?
"Mitchell_Collen&quo  2007-06-15 16:17:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:05:29 CDT 2008.