I am currently struggling with a following problem:
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)
... 1 more
No effect on 'service interaction screen'
- Providing logon details for my own windows account ( same effect as above )
- Running from catalina.bat
with, and without jawa.awt.headless=false
Results in headless exception:
aused by: java.awt.HeadlessException at java.awt.GraphicsEnvironment.checkHGadlGss(GraphicsEnvironment.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
EDIT: 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?
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Tomcat 6 creating Swing GUI under Windows 7 64bit