On Sep 4, 1:59 am, "David Ross" <[EMAIL PROTECTED]> wrote:
> When enter the command
>
> C:\myjavaprograms>java -classpath.Hello
>
> I get the following error:
>
> Unrecognized option: -classpath.hello
>
> Could not create the Java virtual machine.
>
> Other options such as -help and -version seem to work fine.
>
> Any ideas why the -classpath option is not recognized?
You should put a space after -classpath, another space, a dot and
another space, that is:
java -classpath . Hello
or you could abbreviate it to (-cp stands for -classpath):
java -cp . Hello
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---