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 / December 2005



Tip: Looking for answers? Try searching our database.

Packaging a carbon shlb for JNI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bg-greece - 14 Dec 2005 12:44 GMT
I am trying to create a libXXX.jnilib for use with a Java program under JDK
1.4 CodeWarrior 8 and Mac OS 10.3.4.
The JNI lin will act as a layer for a Carbon native C++ shlb. Unfortunately
I could not manage to compile the JNI sample in CodeWarrior examples.

I have looked in various threads in the newsgroups. My summarized questions
are:

The JNI project should have a Mach-O library target?
How do I add the Carbonised shlb in the JNI Project? Just drag-n-drop?
Should I choose BSD headers or MSL headers?
What version of SDK is appropriate? Developers/SDKs/MacOSX10.2.7SDK/  or
something else? (and possibly change Apple's Limits.h ?)
The VM should be Apple or JDK 1.x?

Thnx
Byron
Greg - 15 Dec 2005 21:07 GMT
Java on Mac OS X exclusively uses the Mac OS X default of Mach-O
binaries. CFM/PEF is for Mac OS 9 and legacy compatibility.

You'd have to use the standard mechanism to get your Mach-O jni lib to
call your legacy PEF lib.

I'm not certain about the other CW - specific questions. I'd recommend
that you should investigate moving your toolset over to XCode.
bg-greece - 19 Dec 2005 11:10 GMT
What target should be used when building the original Carbon shlb in X?
When I add it to the Mach-O JNI project, although it does not complain,
the Linker at the end complains with "can't load data". I compiled the
Carbon shlb using carb.r. Is that correct or do I need the plst
resource?

Thx
 
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.