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: Converting a jnilib to Intel



In article <email@hidden>,
 "William C. McCain" <email@hidden> wrote:

> I develop and sell three products that run on Mac OS X.  All three 
> products are written in Java and are distributed in the form of a Mac OS 
> X "bundled application".  Obviously, the Java code will need no 
> conversion to run "natively" on Mac machines with Intel processors.  But 
> all three products use my own JNI library, written in C, for serial I/O.
> 
> 1. Will Rosetta automatically translate my "libserial.jnilib", which is 
> compiled for a PowerPC, when my products are run on an Intel-based Mac?

No.  Java is not supported by Rosetta.  This is mentioned in the Rosetta 
section of the Universal Binary Programming Guidelines, which you can 
find at <http://developer.apple.com/>.

> 2. If not, how do I convert "libserial.jnilib" to the "universal binary" 
> format?  Do I simply recompile it with the latest GCC (4.0)?  If so, 
> what GCC options must I specify to get a JNI-compatible "universal binary"?

Read the Universal Binary Programming Guidelines.  Everything you need 
to know about building universal binaries should be in there.

Hope this helps,
Eric

-- 
Eric Albert            email@hidden
Core Technologies
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to 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.