Well, actually those directions aren't quite correct on the tutorial page. The file they reference has a package declaration
package start;
but they do not mention that and the command to run that file won't work as they have it written. Remove that package declaration and re-compile it and it should work fine.
If you leave in the package statement, you would need to have that class file in a directory called 'start' and from it's parent directory you would execute it as follows
java start.HelloWorldSwing
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
I suspect it was merely an oversight and needs to be corrected on that page.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
its a classpath error check your classpath.
tactfulsaint
Junior Poster in Training
78 posts since Nov 2007
Reputation Points: 10
Solved Threads: 0
its a classpath error check your classpath.
No, it is not a classpath problem. It's a package declaration problem as already stated.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847