This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: trying to compile looks (jgoodies)


So, the actual goal of all this is that I want to compile Jabref. Maybe I 
do not need to compile looks for that. It should be possible to just 
compile the jar directly, right? Did anybody do this yet? 
 
If I run: gcj --main=net.sf.jabref.JabRef jabref.jar 
I get: 
 
>net/sf/jabref/EntryTable.java: In class 
'net.sf.jabref.EntryTable$TableClickListener': 
>net/sf/jabref/EntryTable.java: In method

'net.sf.jabref.EntryTable$TableClickListener.mousePressed(java.awt.event.MouseEvent)':

>net/sf/jabref/EntryTable.java:481: error: class 
'net.sf.jabref.EntryTable' has no method named 'isCellEditable' matching 
signature '(II)Z' 
>net/sf/jabref/JabRef.java: In class 'net.sf.jabref.JabRef': 
>net/sf/jabref/JabRef.java: In method 
'net.sf.jabref.JabRef.openWindow(java.util.Vector)': 
>net/sf/jabref/JabRef.java:541: error: cannot find file for class 
com.sun.java.swing.plaf.windows.WindowsLookAndFeel 
>net/sf/jabref/JabRef.java:608: error: cannot find file for class 
com.sun.java.swing.plaf.windows.WindowsLookAndFeel 
>net/sf/jabref/JabRef.java:608: error: cannot find file for class 
com.sun.java.swing.plaf.windows.WindowsLookAndFeel 
>net/sf/jabref/JabRef.java:611: error: cannot find file for class 
com.sun.java.swing.plaf.windows.WindowsLookAndFeel 
>net/sf/jabref/JabRef.java:611: confused by earlier errors, bailing out 
 
it works better with: gcj --main=net.sf.jabref.JabRef -findirect-dispatch 
jabref.jar 
But then it does not find the main. The manual actually says that the 
-findire... option only works when compiling class files. 
 
Running ./a.out results in: 
 
Exception in thread "main" java.lang.NoClassDefFoundError: while 
resolving class: net.sf.jabref.JabRef 
   at java.lang.VMClassLoader.transformException(java.lang.Class, 
java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0) 
   at java.lang.VMClassLoader.resolveClass(java.lang.Class) 
(/usr/lib/libgcj.so.6.0.0) 
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) 
   at net.sf.jabref.JabRef.main(java.lang.String[]) (Unknown Source) 
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) 
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) 
Caused by: java.lang.ClassNotFoundException: 
com.jgoodies.plaf.windows.ExtWindowsLookAndFeel not found in 
gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:./], 
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} 
   at java.net.URLClassLoader.findClass(java.lang.String) 
(/usr/lib/libgcj.so.6.0.0) 
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean) 
(/usr/lib/libgcj.so.6.0.0) 
   at java.lang.ClassLoader.loadClass(java.lang.String) 
(/usr/lib/libgcj.so.6.0.0) 
 
Cheers, Wolfgang 

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]