jni « string « Java Data Type Q&A

Home
Java Data Type Q&A
1.bigdecimal
2.biginteger
3.bit
4.Boolean
5.byte
6.Calendar
7.cast
8.character
9.Date Time
10.Date Time Format
11.decimal
12.Development
13.double
14.enum
15.float
16.hexadecimal
17.Integer
18.Number
19.Number Format
20.primitive
21.SimpleDateFormat
22.string
23.StringBuffer
24.StringBuilder
25.StringTokenizer
26.substring
27.TimeZone
Java Data Type Q&A » string » jni 

1. Passing string from Java into JNI    stackoverflow.com

I want to pass a string into the JNI I am writing which have to be assigned to a const char*. The below mentioned is how I have done it:

JNI...(...,jstring jstr...){

const char* ...

2. 09?30?ß#@÷g gets displayed when i had not passed this String    stackoverflow.com

I am trying to pass a String to a native c function but the String gets printed as 09?30?ß#@÷g for the String Type a String : . I don't know what ...

4. why my method can not receive the string from JNI    forums.oracle.com

for my BeatTrack method, I just need the filename, then it can run, if I comment the BeatTrack(filename);, then no problem, for the java calling, of course, my BeatTrack(const *char filename) has no problem, cause I have test it,, but I call this method in java, the error is as follows, Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.