Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: jni-project Xcode 3.1.1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jni-project Xcode 3.1.1



Hi,

On 27 Mar 2009, at 14:53, Pietà Schofield wrote:

I have tried to use the new project jni-project in Xcode 3.1.1 on a machine running osx Mac OS X 10.5.6 (9G55) and what i am doing is really basic, just creating a new project and clicking build and run without altering the code at all. The build seems to work with out error but when the code runs I get a


Exception in thread "main" java.lang.UnsatisfiedLinkError:

message followed by the full filename and path of the .jnilib

what I am doing wrong?
[..]

. The only other perhaps relevant information i can think of is if I type java -version I get

Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)

You are probably building jni as i386 binary only and running it with 64bit Java 6. You need to build jni library for i386 and x86_64 and ppc architectures. This way it will run on Intel and PowerPC macs. FOr testing purposes just run your example with Java 5.


Bye,
--
Tomas Hurka   <mailto:email@hidden>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >jni-project Xcode 3.1.1 (From: Pietà Schofield <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.