From justinleewilson at gmail.com Sun Apr 22 13:53:31 2012 From: justinleewilson at gmail.com (Justin Wilson) Date: Sun, 22 Apr 2012 21:53:31 +0100 Subject: Issue running java GUI applications on Mac OS X 10.5.8 (Using OpenJDK7 bsd-port compiled against platform) Message-ID: Hi, II have a list of Java applications which I'm used to using on my standard Linux desktop however I've recently purchased a PowerMac G4 and have managed to compile OpenJDK7 against the platform (using bsd-port). Great... however no GUI apps run correctly. I start of by getting a HeadlessException and after a bit of reading I've added the Djava.awt.false=false property when running the JVM. Now applications boot into a GUI correctly and I can browse through the menu items etc, however the one thing which doesn't work is keyboard input (most likely as a result of the headless switch I imagine). When I try to type no text appears and instead the output is either directed at the console or does not appear at all. Could somebody please help me understand what is happening and perhaps suggest any way of avoiding this issue? I'm not afraid to get my hands dirty in the code if it comes to that but I'd appreciate a starting point! Kind Regards, JLove From henri.gomez at gmail.com Mon Apr 23 01:17:21 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 23 Apr 2012 10:17:21 +0200 Subject: Issue running java GUI applications on Mac OS X 10.5.8 (Using OpenJDK7 bsd-port compiled against platform) In-Reply-To: References: Message-ID: bsd-port use X11. Did you have it installed on G4 ? 2012/4/22 Justin Wilson : > Hi, > > II have a list of Java applications which I'm used to using on my > standard Linux desktop however I've recently purchased a PowerMac G4 > and have managed to compile OpenJDK7 against the platform (using > bsd-port). Great... however no GUI apps run correctly. I start of by > getting a HeadlessException and after a bit of reading I've added the > Djava.awt.false=false property when running the JVM. > > Now applications boot into a GUI correctly and I can browse through > the menu items etc, however the one thing which doesn't work is > keyboard input (most likely as a result of the headless switch I > imagine). When I try to type no text appears and instead the output is > either directed at the console or does not appear at all. > > Could somebody please help me understand what is happening and perhaps > suggest any way of avoiding this issue? I'm not afraid to get my hands > dirty in the code if it comes to that but I'd appreciate a starting > point! > > Kind Regards, > > JLove >