Exception Java ...

Hi,

I have just installed GanttProject (debian sid / Java jdk1.5.0_07) .

Everytime I runGanttProject, I get this error message:

11 ao鹴 2006 22:13:40 org.bardsoftware.impl.eclipsito.BootImpl run

INFO: Eclipsito platform is running.

11 ao鹴 2006 22:13:41 org.bardsoftware.impl.eclipsito.ApplicationLauncher launchApplication

ATTENTION: / by zero

java.lang.ArithmeticException: / by zero

at sun.awt.X11.XIconWindow.calcIconSize(XIconWindow.java:79)

at sun.awt.X11.XIconWindow.getIconSize(XIconWindow.java:168)

at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:206)

at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)

at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)

at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:150)

at sun.awt.X11.XWindow.<init>(XWindow.java:86)

at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:101)

at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:22)

at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:27)

at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:53)

at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:36)

at sun.awt.X11.XFramePeer.<init>(XFramePeer.java:41)

at sun.awt.X11.XToolkit.createFrame(XToolkit.java:349)

at java.awt.Frame.addNotify(Frame.java:491)

at java.awt.Window.pack(Window.java:484)

at net.sourceforge.ganttproject.GanttSplash.setVisible(Unknown Source)

at net.sourceforge.ganttproject.GanttProject.main(Unknown Source)

at net.sourceforge.ganttproject.application.MainApplication.run(Unknown Source)

at org.bardsoftware.impl.eclipsito.ApplicationLauncher.launchApplication(ApplicationLauncher.java:29)

at org.bardsoftware.impl.eclipsito.BootImpl$2.run(BootImpl.java:45)

11 ao鹴 2006 22:13:41 org.bardsoftware.impl.eclipsito.BootImpl shutdown

INFO: Eclipsito platform is shut down.

Everytime I runfreemind, I get this error message:

$ DEBUG=1 freemind

DEBUG: Freemind parameters are ''.

DEBUG: Linux poste3 2.6.16 #1 PREEMPT Thu Aug 10 12:02:52 CEST 2006 i686 GNU/Linux

DEBUG: Using $PATH to find java virtual machine.

DEBUG: Using '/usr/bin/java' as java virtual machine...

java version "1.5.0_07"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)

Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

DEBUG: Freemind Directory is '/usr/share/freemind'.

DEBUG: Calling: '/usr/bin/java -Dfreemind.base.dir=/usr/share/freemind -cp ::/usr/share/freemind/lib/freemind.jar:/usr/share/freemind/lib/ant/lib/jaxb-api.jar:/usr/share/freemind/lib/ant/lib/jaxb-impl.jar:/usr/share/freemind/lib/ant/lib/jaxb-libs.jar:/usr/share/freemind/lib/ant/lib/namespace.jar:/usr/share/freemind/lib/ant/lib/xsdlib.jar:/usr/share/freemind/lib/ant/lib/jax-qname.jar:/usr/share/java/forms-1.0.5.jar:/usr/share/java/commons-lang.jar:/usr/share/java/jaxp-1.2.jar:/usr/share/java/relaxngDatatype.jar:/usr/share/freemind freemind.main.FreeMind '.

Exception in thread "main" java.lang.ArithmeticException: / by zero

at sun.awt.X11.XIconWindow.calcIconSize(XIconWindow.java:79)

at sun.awt.X11.XIconWindow.getIconSize(XIconWindow.java:168)

at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:206)

at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)

at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)

at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:150)

at sun.awt.X11.XWindow.<init>(XWindow.java:86)

at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:100)

at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:22)

at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:27)

at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:53)

at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:36)

at sun.awt.X11.XFramePeer.<init>(XFramePeer.java:41)

at sun.awt.X11.XToolkit.createFrame(XToolkit.java:349)

at java.awt.Frame.addNotify(Frame.java:491)

at java.awt.Window.pack(Window.java:484)

at freemind.main.FreeMindSplash.<init>(FreeMindSplash.java:77)

at freemind.main.FreeMind.<init>(FreeMind.java:111)

at freemind.main.FreeMind.main(FreeMind.java:647)

$ /usr/bin/java -version

java version "1.5.0_07"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)

Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

Can you help me ?

Thx so much

[4755 byte] By [zorgha] at [2007-10-3 2:43:58]
# 1

No solution, just wanna join you with the same problem.

Running any version of IntelliJ Idea with 1.5.0_08 on Linux Debian Sid - Idea just throwns the message and get stuck during start:

java.lang.ArithmeticException: / by zero

at sun.awt.X11.XIconWindow.calcIconSize(XIconWindow.java:79)

at sun.awt.X11.XIconWindow.getIconSize(XIconWindow.java:168)

at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:206)

at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)

at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)

at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:150)

at sun.awt.X11.XWindow.<init>(XWindow.java:86)

at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:101)

... etc

Problem is in Sid somewhere - it started to happen after one of the Debian/Sid update. I hope that one day another update will solve the problem - but that's not good enough solution.

Is there some other way? Quicker? Which native thing caused this problem?

Richard "Virgo" Richter

virgo47a at 2007-7-14 20:32:22 > top of Java-index,Desktop,Deploying...
# 2

If you have the Java run time installed it appears that GanttProject cant actually find it, I modified ganttproject.sh as below to include the path to JRE and it works fine, Seems to work better with JRE 1.6 than it did with 1.5 Im running GanntProject on FC6

Add the following to the second line of ganttproject.sh

JAVA_HOME=/usr/java/jre1.6.0_01

Change the path to suit you distro and JRE version

Cmeindl.

> No solution, just wanna join you with the same

> problem.

>

> Running any version of IntelliJ Idea with 1.5.0_08 on

> Linux Debian Sid - Idea just throwns the message and

> get stuck during start:

>

> java.lang.ArithmeticException: / by zero

> at

> sun.awt.X11.XIconWindow.calcIconSize(XIconWindow.java:

> 79)

> at

> sun.awt.X11.XIconWindow.getIconSize(XIconWindow.java:1

> 68)

> at

> sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:20

> 6)

> at

> sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)

> at

> sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)

> at

> sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:150)

> at

> sun.awt.X11.XWindow.<init>(XWindow.java:86)

> at

> sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:

> 101)

> ... etc

>

> Problem is in Sid somewhere - it started to happen

> after one of the Debian/Sid update. I hope that one

> day another update will solve the problem - but

> that's not good enough solution.

>

> Is there some other way? Quicker? Which native thing

> caused this problem?

>

> Richard "Virgo" Richter

If you have the Java run time installed it appears that GanttProject cant actually find it, I modified ganttproject.sh as below to include the path to JRE and it works fine, Seems to work better with JRE 1.6 than it did with 1.5 Im running GanntProject on FC6

Add the following to the second line of ganttproject.sh

JAVA_HOME=/usr/java/jre1.6.0_01

Change the path to suit you distro and JRE version

cmeindla at 2007-7-14 20:32:22 > top of Java-index,Desktop,Deploying...