> i tried to compile this project :
>
> jar file : http://hali-sy.com/download/aUPM/Linux+Mac.zip
> source file : http://hali-sy.com/download/aUPM/aUPM.zip
> project page :
> http://www.hali-sy.net/bashir/index.php?entry=entry060721-235826
Dude, completly encrypted website... Where's the dectrypt to english,
german or - if it really has to be - french link? :-)
> /creating MainWindow-win.exe
> - processing aUPM.jar
> - including icon
> - main compilation step
> - packing executable
Good, windows worked...
> creating MainWindow-lin
> - processing aUPM.jar
> - main compilation step
>
> C:\DOCUME~1\Besho\LOCALS~1\Temp\JavaCompilerTempobnsk8.out\org.eclipse.core.runtime_3.1.1.jar.o:
> file not recognized: File format not recognized
> collect2: ld returned 1 exit status
Bad! Did you play around with the resources\jface-3.1.1 directory? Or
did your replace the linux gcj?
A solution would be to delete org.eclipse.core.runtime_3.1.1-lin.jar.o,
then it will be recompiled. But this really shouldn't have come...
> then when i tried to lunch the application this error message appeared
> to me :
>
> ------------------------------------------------------------------------
> /Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
> gnu.java.awt.peer.gtk.GtkToolkit
> at java.awt.Toolkit.getDefaultToolkit(MainWindow-win.exe)
> at java.awt.EventQueue.invokeLater(MainWindow-win.exe)
> at javax.swing.SwingUtilities.invokeLater(MainWindow-win.exe)
>
> Caused by: java.lang.ClassNotFoundException:
> gnu.java.awt.peer.gtk.GtkToolkit not found in
> gnu.gcj.runtime.SystemClassLoader{urls=[file:.\],
> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
> at java.lang.Class.forName(MainWindow-win.exe)
> at java.awt.Toolkit.getDefaultToolkit(MainWindow-win.exe)
> ...2 more/
> ------------------------------------------------------------------------
>
> how i can make native app corrctly ? help me please cuz i've 10 projects
> need re-compiling by JavaCompiler and they failed !
So you've an AWT or Swing application... Read the help:
- Create managed AWT or Swing application project
GCJ doesn't support AWT/Swing for all plattforms (only for Linux). With
this kind of project, you can use it on all plattforms anyway. It
internally maps AWT/Swing to SWT.
But read this too:
http://javacompiler.mtsystems.ch/frame_faq.html
Marco
|