Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Problems compiling + running Java on macos9

Problems compiling + running Java on macos9
Thread Tools
Baninated
Join Date: Apr 2001
Location: Dead whale
Status: Offline
Reply With Quote
Apr 15, 2001, 01:22 AM
 
I just bought a new G4 Cube and want to set up a Java programming environment on it as I am learning the language. However I am having problems compiling and running my programs, I have downloaded the MJR SDK 2.2 from Apple. When I try to run programs in JBindery I get error messages relating to classpath.. error messages begin like so:

java.lang.NoClassDefFoundError: ...

At first it was looking for something called Swing, so someone advised me to find Swing for Java and add the jar file to the classpath and it worked, but now when I try to run a different program, it is searching for something called

java/util/LinkedList

Can somebody help me out here, It all seemed much simpler in Windows, this is far more confusing.

     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: orlando, fl
Status: Offline
Reply With Quote
Apr 15, 2001, 11:39 AM
 
Cubeiod, I am also trying to learn Java on the Mac and found the apple SDK very confusing as well. What I am trying now instead of the apple SDK is CodeWarrior for Java from Metroworks, and it is working much better. Also Metroworks offers free online trainning for Java at its CodeWarriorU section of the website, its free to join and use even if you don't buy their software, and they offer a varity of other classes on programming. Keep in mind though that the CodeWarriorU is geared toward their products, but they do offer academic versions and learning versions of most of their software.
<http://www.metroworks.com>
Good Luck, Jag
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Apr 16, 2001, 02:37 PM
 
Hi cubeoid,

Jag has given some very good info on CodeWarrior Java resources in the post above. However, recent versions of CodeWarrior Java rely on Apple's MRJ JVM for runtime support, and unfortunately there are some limitations in Apple's MRJ implementations (at least, under Mac OS "Classic").

For instance, I believe that the 'LinkedList' class was introduced in Java 2 (JDK 1.2+), whereas Apple's latest MRJ version (2.2.4) supports only the older Java 1 (JDK 1.1.8). [Yes, both Sun's & Apple's versioning systems are rather confusing!]

If you can, try switching to Mac OS X which apparently has full support for Java 2. [Check in the OS X - Developer Forum here on MacNN.]

Regards,

--Paul
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:07 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2