This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Mac OS and the fly likes Help with swing setup on Mac - using HeadFirst Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Help with swing setup on Mac - using HeadFirst Java" Watch "Help with swing setup on Mac - using HeadFirst Java" New topic
Author

Help with swing setup on Mac - using HeadFirst Java

Mike Slater
Greenhorn

Joined: Jul 21, 2007
Posts: 4
I'm pretty new to Java and very new to using java on a mac. I've been using the HeadFirst java book. All has been going perfectly until the gui chapter on swing.

I tried to compile a simple frame with a button. The terminal spit out several runtime errors dealing with my file setup as follows :



I'm using java 1.5.0 on OSX 10.3.9(panther)

I'm running 1.5.0 after extracting the versions folder from the tiger update .pkg. Is there something else I need to change for the swing package to work properly?

I appreciate any help I can get. Thanks.

*added to original post* I changed my current version back to 1.4.2 and Gui works just fine. So I know the problem has something to do with my version change

[ September 03, 2007: Message edited by: Mike Slater ]

[ UD: added line breaks to keep formatting intact ]
[ September 03, 2007: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41073
    
  43
Welcome to JavaRanch.

According to this page, Java 5 is really only supported under 10.4 and newer, not on 10.3. It sounds a bit hackish what you describe (extracting files from a .pkg), so that's probably the reason.


Ping & DNS - my free Android networking tools app
Mike Slater
Greenhorn

Joined: Jul 21, 2007
Posts: 4
Yeah, it's quite a bit hackish. There's probably another set of separate files I need from the update. I just don't want to fool around too much without knowing exactly what I'm doing (or worse, replacing).
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

You are unlikely to get this working without a complete and standard installation. Grabbing portions of an installation not suited to the version of the OS you are using is unlikely to ever work properly.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

You are unlikely to get this working without a complete and standard installation. Grabbing portions of an installation not suited to the version of the OS you are using is unlikely to ever work properly.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Help with swing setup on Mac - using HeadFirst Java
 
Similar Threads
none of my java applications work with 1.5.0 on mac os 10.3.9
Swing Apps Hang
Java 1.5 on mac
Help fixing crash on Mac OS 10.3.9
I just got Java 1.5.0 on a mac os 10.3.9 and netbeans is still 1.4