Jeremy James Brown wrote:... Exception in thread "main" java.lang.NoClassDefFoundError: Test/class...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Jesper de Jong wrote:When you run the program, you must enter the command:
java Test
Note: Not java Test.class. You're not specifying the filename there, but the name of the class.
Jeremy James Brown wrote: ...without .class I still get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Test
...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Unless you have a classpath like that shown in your other thread (which had been set up by QuickTime, and needed a . added to it), you probably don't need a classpath at all.marc weber wrote:. . . you do not need a "classpath" pointing to that location.
marc weber wrote:... then provide a command-line classpath (cp) of the current directory (.) by typing...
java -cp . Test
...
