Java exception executing installer

Poster Content
nk4um Moderator
Posts: 756
June 7, 2007 09:06GCJ
Just a quick note on GCJ java.  This is a gnu project that dynamically compiles java to native code for execution.  NetKernel will boot on gcj but we do not use a standard classloader and instead each module has quite a special classloader which gnu java cannot handle.

NetKernel is a fully dynamic execution environment - the relationships between software functions is resolved during execution, this is very different to the linking that regular gcj compilation can manage.

In brief, you must run NetKernel on a java virtual machine.

Cheers,

Peter
nk4um Moderator
Posts: 756
June 7, 2007 07:35Java Version
Hi Christopher,

I think your problem is that your Ubuntu system appears to be using a GCJ based java. This does not seem to be providing the required graphics library for the graphical installer.

Please can you install Sun (java.sun.com) or IBM''s JVM.

When you type "java -version" you should get something like...


java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode)


Cheers,

Peter
nk4um User
Posts: 1
June 7, 2007 06:17Java exception executing installer
Hi there,

I''m getting a java exception when attempting to run the installer on my Ubuntu machine. The exception occurs when its trying to create the Language Selection dialog.

My java version is 1.4.2 (version 5 update 10)
Ubuntu version 7.04 (Fiesty)

When I execute this command
   java -jar Desktop/1060-NetKernel-SE-DK-3.2.0\\(2\\).jar

I get this exception:

Exception during event dispatch:
java.lang.UnsupportedOperationException
   at gnu.java.awt.peer.gtk.CairoGraphics2D.setPaint(libgcj.so.70)
   at com.incors.plaf.kunststoff.KunststoffUtilities.drawGradient(KunststoffUtilities.java:48)
   at com.incors.plaf.kunststoff.KunststoffButtonUI.paint(KunststoffButtonUI.java:70)
   at javax.swing.plaf.ComponentUI.update(libgcj.so.70)
   at javax.swing.plaf.metal.MetalButtonUI.update(libgcj.so.70)
   at javax.swing.JComponent.paintComponent(libgcj.so.70)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at javax.swing.JComponent.paintChildren(libgcj.so.70)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at javax.swing.JComponent.paintChildren(libgcj.so.70)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at javax.swing.JLayeredPane.paint(libgcj.so.70)
   at javax.swing.JComponent.paintChildren(libgcj.so.70)
   at javax.swing.JComponent.paintDoubleBuffered(libgcj.so.70)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at java.awt.Container$GfxPaintVisitor.visit(libgcj.so.70)
   at java.awt.Container.visitChild(libgcj.so.70)
   at java.awt.Container.visitChildren(libgcj.so.70)
   at java.awt.Container.paint(libgcj.so.70)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.paintComponent(libgcj.so.70)
   at gnu.java.awt.peer.gtk.GtkComponentPeer.handleEvent(libgcj.so.70)
   at java.awt.Component.dispatchEventImpl(libgcj.so.70)
   at java.awt.Container.dispatchEventImpl(libgcj.so.70)
   at java.awt.Window.dispatchEventImpl(libgcj.so.70)
   at java.awt.Component.dispatchEvent(libgcj.so.70)
   at java.awt.EventQueue.dispatchEvent(libgcj.so.70)
   at java.awt.EventDispatchThread.run(libgcj.so.70)
Exception during event dispatch:
java.lang.UnsupportedOperationException
   at gnu.java.awt.peer.gtk.CairoGraphics2D.setPaint(libgcj.so.70)
   at com.incors.plaf.kunststoff.KunststoffUtilities.drawGradient(KunststoffUtilities.java:48)
   at com.incors.plaf.kunststoff.KunststoffButtonUI.paint(KunststoffButtonUI.java:70)
   at javax.swing.plaf.ComponentUI.update(libgcj.so.70)
   at javax.swing.plaf.metal.MetalButtonUI.update(libgcj.so.70)
   at javax.swing.JComponent.paintComponent(libgcj.so.70)
   at javax.swing.plaf.metal.MetalComboBoxButton.paintComponent(libgcj.so.70)
   at com.incors.plaf.kunststoff.KunststoffComboBoxUI$MyMetalComboBoxButton.paintComponent(KunststoffComboBoxUI.java:60)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at javax.swing.JComponent.paintChildren(libgcj.so.70)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at javax.swing.JComponent.paintChildren(libgcj.so.70)
   at javax.swing.JComponent.paint(libgcj.so.70)
   at javax.swing.JComponent.paintDoubleBuffered(libgcj.so.70)
   at javax.swing.JComponent.paintImmediately2(libgcj.so.70)
   at javax.swing.JComponent.paintImmediately(libgcj.so.70)
   at javax.swing.RepaintManager.paintDirtyRegions(libgcj.so.70)
   at javax.swing.RepaintManager$RepaintWorker.run(libgcj.so.70)
   at java.awt.event.InvocationEvent.dispatch(libgcj.so.70)
   at java.awt.EventQueue.dispatchEvent(libgcj.so.70)
   at java.awt.EventDispatchThread.run(libgcj.so.70)