Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
JNI-Objective C issue
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sony786" data-source="post: 1174563" data-attributes="member: 188970"><p>Hi</p><p></p><p>I am new to Objective C and I have created a small POC which reads a file and gives the result. I am using JNI with Objective C for this. When I compile my code, it says "initialization makes pointer from integer without a cast" at this point of code.</p><p>[CODE]</p><p>NSString *fileStringPath = JNFJavaToNSString(env,filePath);</p><p>[/CODE]</p><p>where filePath is a jString and a parameter.</p><p>and another warning "assignment makes pointer from integer without a cast" at this point of code</p><p>[CODE]</p><p>resultString =JNFNSToJavaString(env,myNSString);</p><p>[/CODE]</p><p></p><p>Please help as I need to create a dylib for this.</p><p></p><p>regards</p><p>Sony</p></blockquote><p></p>
[QUOTE="sony786, post: 1174563, member: 188970"] Hi I am new to Objective C and I have created a small POC which reads a file and gives the result. I am using JNI with Objective C for this. When I compile my code, it says "initialization makes pointer from integer without a cast" at this point of code. [CODE] NSString *fileStringPath = JNFJavaToNSString(env,filePath); [/CODE] where filePath is a jString and a parameter. and another warning "assignment makes pointer from integer without a cast" at this point of code [CODE] resultString =JNFNSToJavaString(env,myNSString); [/CODE] Please help as I need to create a dylib for this. regards Sony [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
JNI-Objective C issue
Top