Skip to main content

Has someone already installed JAXWS under linux wo GUI?

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

Instructions on say:


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:
at java.awt.Toolkit.getDefaultToolkit(
at java.awt.Font.getPeerFromToolkit(
at java.awt.Font.(
at javax.swing.plaf.FontUIResource.(
at javax.swing.plaf.metal.DefaultMetalTheme.(
at java.lang.Class.initializeClass(
at java.lang.Class.initializeClass(
at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(
at javax.swing.plaf.metal.MetalLookAndFeel.(
at javax.swing.UIManager.(
at java.lang.Class.initializeClass(
Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: cannot open shared object file: No such file or directory
at java.lang.Runtime._load(
at java.lang.Runtime.loadLibrary(
at java.lang.System.loadLibrary(
at java.lang.Class.initializeClass(
at java.lang.Class.forName(
at java.awt.Toolkit.getDefaultToolkit(
...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.
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?! ;-))

Joined: 2007-03-13

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