Re: [javaCompiler-users] Can't find default package 'xxxx'. Check the CLASSPATH environment variabl
Status: Beta
Brought to you by:
soapy
From: Ewald P. <ewa...@gm...> - 2006-09-01 23:10:25
|
Marco Trudel wrote: > Actually, I wouldn't expect too much if it's more than a "hello world" > swing application. AWT and Swing is not very advanced in gnu classpath > and swingWT... Although I'm not new to Java programming in general I have neither experience with "free" implementations of it nor with compiling to native code. So I am a bit confused about your statement; http://www.kaffe.org/~stuart/japi/htmlout/h-jdk14-classpath.html states that swing and awt are implemented nearly 100 % in gnu classpath? > Anyway, this seems to be another problem. Can you create a simple > failing class? Maybee the "0" in the package name is the problem... > > Have you tried to compile from the class files? I get this: creating Cica-native-win.exe - main compilation step cica0/SevErweiterteEinstellungenDialog.java: In class 'cica0.SevErweiterteEinstellungenDialog': cica0/SevErweiterteEinstellungenDialog.java: In method 'cica0.SevErweiterteEinstellungenDialog.jbInit()': cica0/SevErweiterteEinstellungenDialog.java:51: error: verification failed at PC=66: incompatible type on stack cica0/SevErweiterteEinstellungenDialog.java:54: error: class 'swingwtx.swing.BorderFactory' has no method named 'createEtchedBorder' matching signature '(Lswingwt/awt/Color;Lswingwt/awt/Color;)Ljavax/swing/border/Border;' cica0/HauptEditDialog.java: In class 'cica0.HauptEditDialog': cica0/HauptEditDialog.java: In method 'cica0.HauptEditDialog.jbInit()': cica0/HauptEditDialog.java:74: error: verification failed at PC=26: incompatible type on stack cica0/HauptEditDialog.java:74: error: class 'swingwtx.swing.BorderFactory' has no method named 'createEtchedBorder' matching signature '(Lswingwt/awt/Color;Lswingwt/awt/Color;)Ljavax/swing/border/Border;' cica0/HauptEditDialog.java: In method 'cica0.HauptEditDialog.sicherVerwerfen()': cica0/HauptEditDialog.java:333: error: class 'swingwtx.swing.JOptionPane' has no method named 'showConfirmDialog' matching signature '(Lswingwt/awt/Component;Ljava/lang/Object;Ljava/lang/String;II)I' cica0/RichtigDialog.java: In class 'cica0.RichtigDialog': cica0/RichtigDialog.java: In method 'cica0.RichtigDialog.show(java.lang.String,java.lang.String)': cica0/RichtigDialog.java:86: error: class 'swingwtx.swing.JButton' has no method named 'requestFocusInWindow' matching signature '()Z' cica0/HauptEditDialogTable.java: In class 'cica0.HauptEditDialogTable': cica0/HauptEditDialogTable.java: In method 'cica0.HauptEditDialogTable.prepareRenderer(javax.swing.table.TableCellRenderer,int,int)': cica0/HauptEditDialogTable.java:28: warning: bad type in parameter debug info cica0/HauptEditDialogTable.java:28: error: class 'swingwtx.swing.JTable' has no method named 'prepareRenderer' matching signature '(Ljavax/swing/table/TableCellRenderer;II)Lswingwt/awt/Component;' cica0/AbfrageDialog.java: In class 'cica0.AbfrageDialog': cica0/AbfrageDialog.java: In method 'cica0.AbfrageDialog.show(java.lang.String,java.lang.String)': cica0/AbfrageDialog.java:177: error: class 'swingwtx.swing.JTextField' has no method named 'requestFocusInWindow' matching signature '()Z' cica0/MusterDialog.java: In class 'cica0.MusterDialog': cica0/MusterDialog.java: In method 'cica0.MusterDialog.actionPerformed(swingwt.awt.event.ActionEvent)': cica0/MusterDialog.java:411: error: class 'swingwtx.swing.JOptionPane' has no method named 'showMessageDialog' matching signature '(Lswingwt/awt/Component;Ljava/lang/Object;)V' cica0/MusterDialog.java:411: confused by earlier errors, bailing out failed... -------------------- There were similar errors which I could avoid by commenting out some method calls. It looks like some (quite a few actually) methods are just not implemented in SwingWT, just as you said before. Ewald |