I did the same thing. Can you arrange for the instructions on
exercise 1.1 in LAB 1003 to be changed from
"1. Run the Hello program using java command with -cp . (there is a
dot after -cp) option or -classpath . (there is a dot after -
classpath) option."
to
"1. Run the Hello program using java command with -cp . (there is a
space then a dot after -cp followed by a space) option or -classpath .
(there is a space then a dot after -classpath followed by a space)
option."
Thanks
On Sep 3, 8:05 pm, miga <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---