Re: Dang! On-Line Compiler is broke!
From: ak (spam_at_imagero.com)
Date: 01/29/04
- Next message: Knute Johnson: "Re: JTree?"
- Previous message: bigbinc: "Re: Priority and static main"
- In reply to: Andrew Thompson: "Dang! On-Line Compiler is broke!"
- Next in thread: Chris Smith: "Re: Dang! On-Line Compiler is broke!"
- Reply: Chris Smith: "Re: Dang! On-Line Compiler is broke!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jan 2004 19:31:20 +0100
> I downloaded the CardTest.jar and
> could run it from the command line with..
>
> java -jar CardTest.jar
>
> Which seemed odd, that it finds the
> 'main' and launches the app OK from
> the command line, so then I tried double
> clicking it and again, that dialog..
> 'Could not find the main class.
> Program will exit!'
it works if you have java 1.4 as default.
it does not even compile with 1.3:
| CardTest.java:21: cannot resolve symbol
| symbol : variable YELLOW
| location: class java.awt.Color
| addPanel(Color.YELLOW, "First");
If I compile with -target 1.3 and -bootclasspath 1.4 then it compiles, but
at runtime I became "NoSuchFieldError: YELLOW"
conclusion - always use lowercase Color fields!
____________
http://reader.imagero.com the best java image reader.
- Next message: Knute Johnson: "Re: JTree?"
- Previous message: bigbinc: "Re: Priority and static main"
- In reply to: Andrew Thompson: "Dang! On-Line Compiler is broke!"
- Next in thread: Chris Smith: "Re: Dang! On-Line Compiler is broke!"
- Reply: Chris Smith: "Re: Dang! On-Line Compiler is broke!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|