 |
 |
Problems compiling + running Java on macos9
|
 |
|
 |
|
Baninated
Join Date: Apr 2001
Location: Dead whale
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|