Re: Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- From: tar@xxxxxxxxxxxxx (Thomas A. Russ)
- Date: 20 Apr 2007 09:34:30 -0700
Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx> writes:
xcrazy wrote:....
Hi, I know this is a common error, but this occurs only in some of my
programs.
I run java on windows XP SP2, jdk1.5
My sampl.java file is like this:
class swing_app {
It compiles giving me a "sampl.class" file but when i type this
I don't know how you get it to compile if it is in a file named
sampl.java? The file name and the class name must match.
I think this is only true for public classes. Non public classes can be
included in files with any name. (Not that it's a good idea....)
--
Thomas A. Russ, USC/Information Sciences Institute
.
- Follow-Ups:
- Re: Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- From: Knute Johnson
- Re: Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- References:
- Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- From: xcrazy
- Re: Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- From: Knute Johnson
- Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- Prev by Date: Re: How to disable maximum icon in a shell?
- Next by Date: Post and View IT Jobs & Resumes - FREE
- Previous by thread: Re: Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- Next by thread: Re: Exception in thread "main" java.lang.NoClassDefFoundError: sampl
- Index(es):
Relevant Pages
|