• Post Reply Bookmark Topic Watch Topic
  • New Topic

win2k Server Problem

 
David Hatton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't get any Swing based application (even the
Hello World App from the Java tutorial!!) to work
on Windows Server 2000.
The same applications work fine on Windows 2000.
I have re-installed J2SDK1.4.1 onto the server box,
and still no joy.
Any ideas about what is going wrong??
One other thing which may be part of the problems
but I doubt it is that the server is behind a firewall.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Hatton:

Any ideas about what is going wrong??

None. Do you receive an error when you execute java myClass? What do you see when you execute java -version?
 
David Hatton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically nothing happens. The Swing Application hangs ... by putting
in some debug statements I see that it never gets past the call to pack the JFrame. The version of Java I am running is 1.4.1.
(By the way, the Hello World App I am referring to is the Swing based Hello World not the basic Hello World to console).
I found this bug on the Java developer's site ... and it may have something to do with it, as the Win2k server does have PcAnywhere running on it.
http://developer.java.sun.com/servlet/SessionServlet?url=/developer/bugParade/bugs/4688980.html
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run java -version so we can rule out path issues. Make sure you are running the VM you think you are.
I can't see the bug you are talking about. I've forgotten my password and Sun isn't quick with the email to get me access to the Bug Parade again.
I only have access to one Windows 2000 computer and it's running version 1.3.1. Unfortunately I don't have the authority to update it, but that version runs the HelloWorldSwing example fine via pcAnywhere. Maybe that's an alternative?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So... to see if it really is that bug that is causing you problems, have you tried to shut down pcAnywhere and see if the GUI comes up? Or running a GUI under JDK 1.3.1?

If it's the call to pack(), then it probably is something below the bytecode level like initializing AWT... and it sounds like it could be this bug.
 
David Hatton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've run java -version and got the expected reply.
Here's the pertinent extract from that bug:

A DESCRIPTION OF THE PROBLEM :
There seems to be a conflict between JDK1.4 and the
pcAnywhere 10.5 host service. No JDK1.4 GUI application
will display if the pcAnywhere 10.5 host service is started
with Windows. I can get JDK1.4 GUI applications to display
if I terminate the pcAnywhere host service, or use
pcAnywhere 10.0. I can also get any JDK1.3.1 GUI
application to display with the pcAnywhere 10.5 host service
running.

Anyway, I might just try downgrading to 1.3.1 ... we'll see what happens.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!