R
Ramon F Herrera
I am pretty sure I have solved this problem before, but would like to
hear comments about it.
I know that if I am going to run a simple class (for a console,
tutorial type of program) with no jar I better make it part of the
default package, or else I am looking for trouble.
What is the fix when I try to run a class like this:
java MyProgram // (the file name is 'MyProgram.class')
and I get a message about a wrong name? Let's say that the class was
compiled inside 'mypackage' package.
-Ramon
hear comments about it.
I know that if I am going to run a simple class (for a console,
tutorial type of program) with no jar I better make it part of the
default package, or else I am looking for trouble.
What is the fix when I try to run a class like this:
java MyProgram // (the file name is 'MyProgram.class')
and I get a message about a wrong name? Let's say that the class was
compiled inside 'mypackage' package.
-Ramon