Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OS X Snow + Eclipse + Can't Run Swing App

 
M Hathaway
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have recently taken the step to buy a Mac. My brand new MacBook Pro was delivered this week and despite my concerns about getting used to it having always been a PC user, i'm loving it. I have managed to install all the things I require with minimal effort (JBoss, MySQL etc). I work with Eclipse and have installed the Mac version of Eclipse Galileo (Cocoa) along with subversion plugins.

However, I can't seem to run any Swing applications I get the following console messages when starting up the application, which then just freezes:

2009-09-18 09:31:36.122 java[2125:903] [Java CocoaComponent compatibility mode]: Enabled
2009-09-18 09:31:36.124 java[2125:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2009-09-18 09:31:37.079 java[2125:d003] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1006aa4d0> '(null)') unlocked when not locked
2009-09-18 09:31:37.080 java[2125:d003] *** Break on _NSLockError() to debug.

I have googled around and have seen hints at this problem, but can't seem to find a solution. Also, being completely new to the Mac, I'm having to take on board the concept of Cocoa, so its perfectly possible I am missing something simple here.

If anybody has any idea on this or can perhaps point out the obvious I would be most grateful.

Thanks,

Marcus
 
M Hathaway
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok i've solved the issue, removing jfreechart-1.0.13-swt.jar from the classpath fixes the issue.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats, to both fixing your issue, but also loving your new Mac. It really is a sweet environment to develop in, even with them being a little bit behind in JDK versions. If you haven't gotten it yet, try VMWare Fusion or Sun's Virtual Box to simultaneously run Linux, and/or Windows on your Mac. Make it sweet to create an enterprise system all on one machine. Linux server side stuff on Linux, then your client on Mac.

Mark
 
M Hathaway
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark, that's a real good suggestion!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic