This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 6 creating Swing GUI under Windows 7 64bit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6 creating Swing GUI under Windows 7 64bit" Watch "Tomcat 6 creating Swing GUI under Windows 7 64bit" New topic

Tomcat 6 creating Swing GUI under Windows 7 64bit

frupel fruplasty

Joined: Aug 11, 2011
Posts: 1

I am currently struggling with a following problem:

The system I use (Alfresco) provides a serverside javascript debugger. It's a Swing based window. I managed to run it under linux (when tomcat runs in X11 user session, although I can't find the way to display the same GUI when tomcat runs in Windows 7 64 bit.

I tried following approaches:
- Ticking 'Allow service to interact with desktop'
Results only in:
Caused by: java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$
... 1 more

No effect on 'service interaction screen'

- Providing logon details for my own windows account ( same effect as above )

- Running from catalina.bat
catalina start
with, and without jawa.awt.headless=false

Results in headless exception:
aused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHGadlGss(
at java.awt.Window.<init>(
at java.awt.Frame.<init>(
at javax.swing.JFrame.cinit>(

I've read about a successful attempt under Windows 7 32-bit

So... do you know is it anyhow possible to run tomcat with Swing GUI under Win7 64-bit or is it a system limitation...? It's eaten 2 days and I'm starting to be a little despaired.

thanks in advance

I managed to run this Swing window on virtual windows XP machine, so this problem seems to be realted with Win7 64 bit. Any possible causes and workarounds on your minds?

Casper Bodewitz

Joined: Nov 09, 2011
Posts: 1
Hi I have actually the exact opposite problem from you, I am able to run a swing app from tomcat under windows 7 64 bit but not under linux (ubuntu). Maybe we can help each other out here. Under windows I just run a tomcat server from eclipse, where eclipse is running in a 32bit JRE. No special config required there.

Under linux I'm not able to get it working. I'm running tomcat in a ubuntu VM. I turned of the java.awt.headless property but now I'm getting a java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit error. How are you running the tomcat in a X11 session?

I agree. Here's the link:
subject: Tomcat 6 creating Swing GUI under Windows 7 64bit
It's not a secret anymore!