Re: Dang! On-Line Compiler is broke!

From: ak (spam_at_imagero.com)
Date: 01/29/04


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.



Relevant Pages

  • Re: A constructive debate: Eclipse or NetBeans?
    ... that Linux and command-line driven languages like OCaml are so much more ... That's because most people never learn to use a command line or a simple ... Trying to run other people's OpenGL-based Java demos from the web I find ... OpenGL). ...
    (comp.lang.java.softwaretools)
  • Process.waitFor() returns, but threads reading output/error streams are blocked on read
    ... threads to read in the out/err streams, ... i'll include the java source below, but the problem seems extremely specific ... passed in on the command line). ... process is hung if i terminate the process the command line tool connects to ...
    (comp.lang.java.programmer)
  • Re: My shell cant find Java
    ... I downloaded java with netbeans from Sun ... >> Each time I type java I get an unknown command error. ... how you set environment variable depends on what shell you're using. ...
    (comp.lang.java.help)
  • Re: Timed wait fails under WebStart in Java 1.6 prerelease?
    ... the java command line. ... that I show you the jnlp specs for the configuration which does not run: ... java.specification.vendor: <Sun Microsystems Inc.> ...
    (comp.lang.java.programmer)
  • Re: Q: easiest possible file select dialog
    ... Malcolm Dew-Jones wrote: ... :> Is there more trivial way to popup a file select dialog from a java ... Something that pops up a dialog is, by definition, not a command line app. ... $ java MyApp -c foo.txt ...
    (comp.lang.java.help)