Skip to main content

Has someone already installed JAXWS under linux wo GUI?

2 replies [Last post]
froman
Offline
Joined: 2007-08-22

Instructions on https://jax-ws.dev.java.net/2.1.2m1/ say:

Installation

Download the binary and execute this jar as

java -jar JAXWS2.1.2M1_20070614.jar

Trying that causes error message:

/opt/Java/Base/jdk1.6.0_01/bin/java -jar JAXWS2.1.2M1_20070614.jar
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
at java.awt.Font.tk(libgcj.so.70)
at java.awt.Font.getPeerFromToolkit(libgcj.so.70)
at java.awt.Font.(libgcj.so.70)
at javax.swing.plaf.FontUIResource.(libgcj.so.70)
at javax.swing.plaf.metal.DefaultMetalTheme.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(libgcj.so.70)
at javax.swing.plaf.metal.MetalLookAndFeel.(libgcj.so.70)
at javax.swing.UIManager.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at com.sun.tools.xjc.installer.Main.setUILookAndFeel(Main.java:67)
at com.sun.tools.xjc.installer.Main.main(Main.java:36)
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.70)
at java.lang.Runtime.loadLibrary(libgcj.so.70)
at java.lang.System.loadLibrary(libgcj.so.70)
at gnu.java.awt.peer.gtk.GtkToolkit.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
...13 more

The system has no X-server and x-libs installed.

Are there some secrect command line arguments to make the install? Is there a zip/tar available to simply unpack it?

Could that be a problem with jdk1.6?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dr_java
Offline
Joined: 2007-06-19

SUN delivers some projects as a self-extracting executable w/ GUI.

Your only chance is to unpack on a computer w/ GUI and transfer the files to the headless system. I suppose one of your devs should have a machine w/ X11 (or R u guys coding in vi on console?! ;-))

goober_nut
Offline
Joined: 2007-03-13

Can't you unpack a jar just like you unpack a zip file? If you can, just do that.