gcj and kaffe

From: Gerard Robin (jag.robin18_at_wanadoo.fr)
Date: 11/12/04

  • Next message: Carl Fink: "Re: Squirrelmail on stable: change_password plugin"
    Date: Fri, 12 Nov 2004 22:08:36 +0000
    To: debian-user@lists.debian.org
    
    

    Hello,
    I compiled the file: HelloWorldApp.java

    class HelloWorldApp {
        public static void main(String[] args) {
            System.out.println("Hello World!");
        }
    }

    gcj -C HelloWorldApp.java

    the compiler has generated the file: HelloWorldApp.class.

    Then, I ran, kaffe HelloWorldApp, and I got sometimes:

    Internal error: caught an unexpected exception.
    Please check your CLASSPATH and your installation.
    java/lang/NullPointerException
    Internal error: caught an unexpected exception.
    Please check your CLASSPATH and your installation.
    java/lang/NullPointerException

    or sometimes:

    Hello World!

    Can someone help me to understand what is wrong ?

    TIA

    P.S.
    I have found this example in "The java tutorial" at http://java.sun.com/

    -- 
    Gerard
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Carl Fink: "Re: Squirrelmail on stable: change_password plugin"

    Relevant Pages

    • Re: Samba 2.2.8 for OpenVMS, new release
      ... > binary that would match a specific OpenVMS release. ... within the limits of what the operating environment ... by the default installation of the host environment. ... compiler; to my knowledge, there has never been a default installation ...
      (comp.os.vms)
    • OT: IVF 11.0 on MSVS2008 array visualizer problem
      ... At first I thought AV would be part of the compiler, ... Now, there were two alternatives there, Viewer and Visualizer. ... I followed the installation procedure described in the file on the ... Fünf Minuten Hilfe sind besser als zehn Minuten Mitleid ...
      (comp.lang.fortran)
    • Re: Ctrl+alt+Fn not showing consoles
      ... I run x86-195.36.15 on the latest Sid kernel and it compiles just fine, but I don't have a AMD64 system. ... The compiler used to compile the kernel (gcc 4.3) does not exactly match the ... ompile your kernel, and restart installation. ...
      (Debian-User)
    • Re: Enabling Rapid Accelerator simulation mode in Simulink
      ... Unable to locate a Visual C/C++, Watcom, Borland, Intel, or LCC compiler. ... Please define one of the following environment variables: ... Microsoft Visual C installation and ensure the appropriate environemnt ... Professional Editions also require that the Microsoft Windows Software ...
      (comp.soft-sys.matlab)
    • Re: gcc problem
      ... >>> The other common option, which is okay only as long as you keep ... >>> it to just two versions of the compiler, ... >Many of the basic system utils will use old libc... ... Blowing the installation of the shared version of the standard ...
      (comp.os.linux.development.apps)