• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Help with swing setup on Mac - using HeadFirst Java

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Rancher
Posts: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Mike Slater
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic