Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / September 2005



Tip: Looking for answers? Try searching our database.

Porting a Mac OS 9 to Carbon Mac OS X shared library + Java Native Interface

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bg-greece - 20 Sep 2005 16:05 GMT
I have ported a Mac OS 9 shared library to Mac OS X using Codewarrior 8 and
the Carbon methodology. What are the prerequisites and steps for wrapping
this library under Java Native Interface since the caller application is
written in Java and Java itself cannot call methods directly from a native
shared library? Are there any previous attempts, expreiences? Any obstacles?

Byron
Greg - 26 Sep 2005 00:15 GMT
The JNI library must be Mach-O. It must be a dylib named
"lib<yourlibname>.jnilib". I'm pretty sure there is sample code for JNI
libs on the Apple Developer Site. You say that your native is Carbon,
if it does any GUI interaction, things will be complicated with JDK 1.4
& JDK 1.5 on Mac OS X, as they use Cocoa.

In addition, you'll find a wealth of information in Apple's java-dev
mailing list and its archive.

-Greg
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.