sa_38 Posted June 9, 2008 Share Posted June 9, 2008 Hello, I have a problem when I start iReport from linux with iReport.sh. I have the following message : sa@europe:~/iReport-2.0.4/iReport-2.0.4$ ./iReport.shException in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(libgcj.so.81) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(libgcj.so.81) at java.awt.Window.<init>(libgcj.so.81) at java.awt.Frame.<init>(libgcj.so.81) at java.awt.Frame.<init>(libgcj.so.81) at javax.swing.SwingUtilities$OwnerFrame.<init>(libgcj.so.81) at javax.swing.SwingUtilities$OwnerFrame.<init>(libgcj.so.81) at javax.swing.SwingUtilities.getOwnerFrame(libgcj.so.81) at javax.swing.JDialog.<init>(libgcj.so.81) at javax.swing.JDialog.<init>(libgcj.so.81) at it.businesslogic.ireport.gui.SplashDialog.<init>(SplashDialog.java:44) at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:7981)Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory at java.lang.Runtime._load(libgcj.so.81) at java.lang.Runtime.loadLibrary(libgcj.so.81) at java.lang.System.loadLibrary(libgcj.so.81) at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(libgcj.so.81) at java.lang.Class.initializeClass(libgcj.so.81) at java.lang.Class.forName(libgcj.so.81) at java.awt.Toolkit.getDefaultToolkit(libgcj.so.81) ...11 more On windows all work very well. But I must use Linux.Sorry for my english. Thank you for your help Link to comment Share on other sites More sharing options...
evocati Posted July 30, 2008 Share Posted July 30, 2008 hello i have the same problem... sh startup.shException in thread "main" java.lang.NoClassDefFoundError: it.businesslogic.ireport.gui.MainFrame at gnu.java.lang.MainThread.run(libgcj.so.81)Caused by: java.lang.ClassNotFoundException: it.businesslogic.ireport.gui.MainFrame not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} BLA BLA BLA Someone knows the solution ??? please !! Link to comment Share on other sites More sharing options...
jreporter Posted September 17, 2008 Share Posted September 17, 2008 @ evocatiCheck your Classpaths.Seems like the iReport.jar is missing@ sa_38Maybe the problem is your Java-Compiler.Try to use the Compiler provided by Sun instead of the GNU-Version. Link to comment Share on other sites More sharing options...
encompass Posted July 21, 2009 Share Posted July 21, 2009 I was able to get it working by selecting the proper java version with this in ubuntu, it will probably work in debian too. update-java-alternatives -l sudo update-java-alternatives -s java-1.5.0-sun The last part should be from what you want in the previous command. I selected the sun java version and then it worked for me. Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted July 21, 2009 Share Posted July 21, 2009 YEs, this is the right solution, iReport (any version) requires a Sun JDK, which is the only one that currently implements some required AWT classes.Giulio Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now