[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#445930: libgcj8-1: Problem to compile and to execute java Swing code



Package: libgcj8-1
Version: 4.2.1-5
Severity: important

Hi,

Since upgrading to the 4.2 version of gcc/gcj, I have errors for
programs that worked before (with 4.1).  Maybe I do not have all the
packages installed?!  Here are the errors:

1. Compilation error:
snoopy:~/smart-surface/simulator$ javac Main.java
Exception in thread "main" java.lang.NoClassDefFoundError:
org.eclipse.jdt.internal.compiler.batch.Main
   at gnu.java.lang.MainThread.run(libgcj.so.81)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jdt.internal.compiler.batch.Main not found in
gnu.gcj.runtime.SystemClassLoader{urls=[],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.81)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.81)
   at java.lang.ClassLoader.loadClass(libgcj.so.81)
   at java.lang.ClassLoader.loadClass(libgcj.so.81)
   at gnu.java.lang.MainThread.run(libgcj.so.81)
snoopy:~/smart-surface/simulator$ 

2. Execution error:
snoopy:~/smart-surface/simulator$ gcj -O2 -Wall --main=Main Main.java
Main.java:59: warning: The serializable class IG does not declare a
static final serialVersionUID field of type long
        class IG extends JFrame{
              ^^
Main.java:89: warning: The serializable class MainPanel does not
declare a static final serialVersionUID field of type long
        class MainPanel extends JPanel{
              ^^^^^^^^^
Main.java:109: warning: The serializable class CtlPanel does not
declare a static final serialVersionUID field of type long
        class CtlPanel extends JPanel{
              ^^^^^^^^
3 problems (3 warnings)
snoopy:~/smart-surface/simulator$ ./a.out 

[During execution, depending on the program, either all the interface
is shown, but no event is generated (the interface does not respond to
any click, key press), or the interface is not shown at all.]

I can attach the program, if needed.

Greetings,
Eugen Dedu

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.22-2-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libgcj8-1 depends on:
ii  gcj-4.2-base            4.2.1-5          The GNU Compiler Collection (gcj b
ii  libasound2              1.0.14a-2        ALSA library
ii  libc6                   2.6.1-1          GNU C Library: Shared libraries
ii  libgcc1                 1:4.2.1-4        GCC support library
ii  libgcj-common           1:4.2.1-6        Java runtime library (common files
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

Versions of packages libgcj8-1 recommends:
ii  libgcj8-1-awt                 4.2.1-5    AWT peer runtime libraries for use
ii  libgcj8-jar                   4.2.1-5    Java runtime library for use with 

-- no debconf information




Reply to: