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 > Java Dev with OS X and code warrior 6

Java Dev with OS X and code warrior 6
Thread Tools
escaleno
Guest
Status:
Reply With Quote
Sep 18, 2000, 10:40 AM
 
The Metrowerks web site implies that the soon-to-be released Code Warrior 6 WONT suppost Java Dev on OS X. Does anyone know if this is really correct?
     
Junior Member
Join Date: Apr 2000
Status: Offline
Reply With Quote
Sep 18, 2000, 01:58 PM
 
You can still write and compile Java2 stuff with codewarrior 5/6 and run it on OS X. But, you might have trouble debugging, maybe that's why it's said not to work.

     
cxb
Guest
Status:
Reply With Quote
Sep 22, 2000, 10:06 AM
 
Having just received CodeWarrior 6, I installed CodeWarrior 6 on MacOS X and put in the MacOS X-specific pieces from the Reference Disk (Thrill Seekers/MacOS X Java Plugins).

I then opened one my old projects (This is in my quest to get my Java code that works under Unix, Windows, and MacOS Classic working under MacOS X where HotSpot seems to be a problem.), and let it be converted to the new format.

Everything compiles fine, but when I attempt to 'Make' the Jar, I get a link error:
"Link Error: Could not initialize Java VM. Make sure the JDK is installed properly."
even though I have replaced CW's Java Linker plugin with the new MacOS X one from the reference disk.

Has anyone gotten CW to link Java under MacOS X beta?
     
Fresh-Faced Recruit
Join Date: Nov 1999
Location: San Jose, CA, USA
Status: Offline
Reply With Quote
Sep 22, 2000, 12:31 PM
 
I actually have CW6 and Java working on MacOS X. I'm building and running a Java app which is GUI free (this may make a difference, depending on what Apple has supported).

Just like the CW docs say, if you want console output, you have to run from the command line, which is what I do. And sure enough, it works fine.
     
Fresh-Faced Recruit
Join Date: Nov 1999
Location: San Jose, CA, USA
Status: Offline
Reply With Quote
Sep 22, 2000, 01:07 PM
 
Do you have the JavaDoc Prelinker on? If so, turn it off.

If you can't finish linking because you get some message about the VM initing, this is most likely the result of trying to generate JavaDocs. CW just uses Java's JavaDoc tool, which is a Java app. Hence it needs to run the VM.

Hope this helps.
     
marvin
Guest
Status:
Reply With Quote
Oct 10, 2000, 11:08 PM
 
No, I can't get it to work either. When I use the Java Application wizard to make a new project it says the VM could not be opened and it could not make the source files.

Crap. Not like I'm going to run this thing in classic to make a jar.


I want code warrior rad tools on X to develop swing applications on X. The java cocoa thing is just to apple specific for me.

My primary machine at home is OS X. ya ya....I know its beta but I've been waiting for 10 years.


[This message has been edited by marvin (edited 10-11-2000).]
     
marvin
Guest
Status:
Reply With Quote
Oct 10, 2000, 11:13 PM
 
No, I can't get it to work either. When I use the Java Application wizard to make a new project it says the VM could not be opened and it could not make the source files.

Crap. Not like I'm going to run this thing is classic to make a jar.


I want code warrior rad tools on X to develop swing applications on X. The java cocoa thing is just to apple specific for me.

My primary machine at home is OS X. ya ya....I know its beta but I've been waiting for 10 years.
     
cxb
Guest
Status:
Reply With Quote
Oct 11, 2000, 07:23 AM
 
I'm sorry that I did not see this thread sooner.

Have you installed CWPro 6 according to the instructions on this thread, http://forums.macnn.com/cgi-bin/Foru...ML/000067.html ?

Using the instructions I posted there, and with a correction from skipjack, I have CWPro 6 creating Java Projects just fine.
     
   
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 03:05 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