Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java Cocoa application, Java VM not launching



> From: Andrew Pontious <email@hidden>
> Date: Mon, 30 Jan 2006 11:12:18 -0800
> To: XCode Users List <email@hidden>
> Subject: Re: Java Cocoa application, Java VM not launching
> 
> On Jan 27, 2006, at 5:26 PM, Chas Spillar wrote:
> 
>> I am upgrading my application to be Universal.
>> 
>> The application was not written originally by me and is written in
>> Java
>> Cocoa.  That is, the UI is written in Cocoa/Objective-C and the
>> Model is
>> written in Java.
>> 
>> I have had several problems converting my target for this application.
>> 
>> First, I tried to "upgrade to native": the upgrade refused to
>> upgrade my
>> target because it contained Java.
> 
> Java targets in Xcode can only be Jam-based.
> 
> Universal targets can only be native.
> 
> Cocoa-Java is deprecated as of 10.4.
Thank you, I figured this all out.

> 
> (For more info, look up these terms in the Xcode Help window. In
> fact, I'd suggest reading the entire Xcode manual.)
I will review the manual.
> 
> You're going to have to find another way.
> 
> Some options:
> - Convert project to Objective-C. This is probably your best bet, and
> the one you're officially encouraged to pursue. Any further questions
> about Cocoa APIs, techniques, etc. should go to cocoa-
> email@hidden. Any questions about using Xcode to build Cocoa
> apps should stay here.
> - Convert the project to pure Java. This will involve rewriting the
> UI to not use Interface Builder. Do this if the app should be cross-
> platform or you use a lot of Java libraries. Also, get yourself a
> good Java Swing book. For any problems specific to OS X+Java, go to
> email@hidden.
I have been able to get the application built universal.  I separated the
target into a Cocoa/Objective-C target and a Java target building a .jar.
It works on PPC, but I haven't yet got a Intel box to test it on.

It is really unfortunate that Apple has deprecated this.  Cocoa/IB is very
productive for building the interface.  Using Java as the model has
significant advantages (IMHO).  Can you confirm that it will NOT work on the
Intel, or that it is just unsupported?  I realize that this is deprecated.
And my company plans to re-write this application in cross-platform Java,
but that's not planned till the end of this year at the earliest.

Another issue I am having is I have some tools in my installer and they are
getting the following message:
: for architecture i386 object: decode malformed object (unknown flavor for
flavor number 0 in LC_UNIXTHREAD command 12 can't byte swap it)
Is this known behavior is there some other issue?

Thank you very much for your help,

Chas. 
> 
> -- Andrew Pontious
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/xcode-users/email@hidden
> 
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Java Cocoa application, Java VM not launching (From: Andrew Pontious <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.