Jump to content

Problem in starting of iReport


sa_38

Recommended Posts

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.sh

Exception 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

  • 1 month later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

hello i have the same problem...

 

sh startup.sh
Exception 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

  • 1 month later...
  • 10 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...