• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat 6 creating Swing GUI under Windows 7 64bit

frupel fruplasty
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:230)
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:225)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:480)
... 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:
at java.lang.Thread.run(Thread.java:619)
aused by: java.awt.HeadlessException
at java.awt.GraphicsEnvironment.checkHGadlGss(GraphicsEnvironment.java:1
at java.awt.Window.<init>(Window.java:432)
at java.awt.Frame.<init>(Frame.java:403)
at javax.swing.JFrame.cinit>(3Frame.java:202)
at org.mozilla.javascript.tools.debugger.SwingGui.cinit>(SwingGui.java:1

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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!