Suche senden
Hochladen
Jni – java native interface
•
2 gefällt mir
•
1,738 views
Jernej Virag
Folgen
How to interact with native code from Java
Weniger lesen
Mehr lesen
Weiterbildung und Persönlichkeitsentwicklung
Melden
Teilen
Melden
Teilen
1 von 21
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Make defensive copies
Make defensive copies
parag
Java forum Gothenburg Chronon - 2012-02-07 - Martin Sjöblom.key
Java forum Gothenburg Chronon - 2012-02-07 - Martin Sjöblom.key
Martin Sjöblom
Rebol
Rebol
Rutva Rajdev
Getting started with the JNI
Getting started with the JNI
Kirill Kounik
Android JNI
Android JNI
艾鍗科技
SyScan 2016 - Remote code execution via Java native deserialization
SyScan 2016 - Remote code execution via Java native deserialization
David Jorm
OWASP SD: Deserialize My Shorts: Or How I Learned To Start Worrying and Hate ...
OWASP SD: Deserialize My Shorts: Or How I Learned To Start Worrying and Hate ...
Christopher Frohoff
Java Course 8: I/O, Files and Streams
Java Course 8: I/O, Files and Streams
Anton Keks
Empfohlen
Make defensive copies
Make defensive copies
parag
Java forum Gothenburg Chronon - 2012-02-07 - Martin Sjöblom.key
Java forum Gothenburg Chronon - 2012-02-07 - Martin Sjöblom.key
Martin Sjöblom
Rebol
Rebol
Rutva Rajdev
Getting started with the JNI
Getting started with the JNI
Kirill Kounik
Android JNI
Android JNI
艾鍗科技
SyScan 2016 - Remote code execution via Java native deserialization
SyScan 2016 - Remote code execution via Java native deserialization
David Jorm
OWASP SD: Deserialize My Shorts: Or How I Learned To Start Worrying and Hate ...
OWASP SD: Deserialize My Shorts: Or How I Learned To Start Worrying and Hate ...
Christopher Frohoff
Java Course 8: I/O, Files and Streams
Java Course 8: I/O, Files and Streams
Anton Keks
Core Java
Core Java
Piyukornule
Library, Library Lets Use THAT Library – DFW Mobile
Library, Library Lets Use THAT Library – DFW Mobile
Adam Hill
Bug hunting through_reverse_engineering
Bug hunting through_reverse_engineering
arif
Presentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptx
VatsalVora15
ITT 2014 - Niklas Therning - Truly Native Java Apps on iOS with RoboVM
ITT 2014 - Niklas Therning - Truly Native Java Apps on iOS with RoboVM
Istanbul Tech Talks
Java buzzwords.pptx
Java buzzwords.pptx
BHARATH KUMAR
How to Make Your Code OSGi Friendly Without Depending on OSGi - Neil Bartlett
How to Make Your Code OSGi Friendly Without Depending on OSGi - Neil Bartlett
mfrancis
9 cm604.1
9 cm604.1
myrajendra
INTRODUCTION_O1.pptx
INTRODUCTION_O1.pptx
sukhpreetsingh295239
TSSJS 2011 - JRuby
TSSJS 2011 - JRuby
Charles Nutter
Presentation on Core java
Presentation on Core java
mahir jain
Ndk
Ndk
Ruslan Novikov
PSPDFKit on Android
PSPDFKit on Android
Jernej Virag
Python simillar image search
Python simillar image search
Jernej Virag
Solr
Solr
Jernej Virag
BeanstalkD Queues in Django
BeanstalkD Queues in Django
Jernej Virag
Odprti video formati
Odprti video formati
Jernej Virag
Android services
Android services
Jernej Virag
Hitre aplikacije
Hitre aplikacije
Jernej Virag
From Doom to Crysis
From Doom to Crysis
Jernej Virag
Security
Security
Jernej Virag
Ip security
Ip security
Jernej Virag
Weitere ähnliche Inhalte
Ähnlich wie Jni – java native interface
Core Java
Core Java
Piyukornule
Library, Library Lets Use THAT Library – DFW Mobile
Library, Library Lets Use THAT Library – DFW Mobile
Adam Hill
Bug hunting through_reverse_engineering
Bug hunting through_reverse_engineering
arif
Presentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptx
VatsalVora15
ITT 2014 - Niklas Therning - Truly Native Java Apps on iOS with RoboVM
ITT 2014 - Niklas Therning - Truly Native Java Apps on iOS with RoboVM
Istanbul Tech Talks
Java buzzwords.pptx
Java buzzwords.pptx
BHARATH KUMAR
How to Make Your Code OSGi Friendly Without Depending on OSGi - Neil Bartlett
How to Make Your Code OSGi Friendly Without Depending on OSGi - Neil Bartlett
mfrancis
9 cm604.1
9 cm604.1
myrajendra
INTRODUCTION_O1.pptx
INTRODUCTION_O1.pptx
sukhpreetsingh295239
TSSJS 2011 - JRuby
TSSJS 2011 - JRuby
Charles Nutter
Presentation on Core java
Presentation on Core java
mahir jain
Ndk
Ndk
Ruslan Novikov
Ähnlich wie Jni – java native interface
(12)
Core Java
Core Java
Library, Library Lets Use THAT Library – DFW Mobile
Library, Library Lets Use THAT Library – DFW Mobile
Bug hunting through_reverse_engineering
Bug hunting through_reverse_engineering
Presentation on java life of a deveoper.pptx
Presentation on java life of a deveoper.pptx
ITT 2014 - Niklas Therning - Truly Native Java Apps on iOS with RoboVM
ITT 2014 - Niklas Therning - Truly Native Java Apps on iOS with RoboVM
Java buzzwords.pptx
Java buzzwords.pptx
How to Make Your Code OSGi Friendly Without Depending on OSGi - Neil Bartlett
How to Make Your Code OSGi Friendly Without Depending on OSGi - Neil Bartlett
9 cm604.1
9 cm604.1
INTRODUCTION_O1.pptx
INTRODUCTION_O1.pptx
TSSJS 2011 - JRuby
TSSJS 2011 - JRuby
Presentation on Core java
Presentation on Core java
Ndk
Ndk
Mehr von Jernej Virag
PSPDFKit on Android
PSPDFKit on Android
Jernej Virag
Python simillar image search
Python simillar image search
Jernej Virag
Solr
Solr
Jernej Virag
BeanstalkD Queues in Django
BeanstalkD Queues in Django
Jernej Virag
Odprti video formati
Odprti video formati
Jernej Virag
Android services
Android services
Jernej Virag
Hitre aplikacije
Hitre aplikacije
Jernej Virag
From Doom to Crysis
From Doom to Crysis
Jernej Virag
Security
Security
Jernej Virag
Ip security
Ip security
Jernej Virag
Encryption
Encryption
Jernej Virag
The Task Model
The Task Model
Jernej Virag
Game design - formal and dramatic elements
Game design - formal and dramatic elements
Jernej Virag
Java stereams
Java stereams
Jernej Virag
Pretty good privacy
Pretty good privacy
Jernej Virag
Gaming industry in 2010
Gaming industry in 2010
Jernej Virag
Mehr von Jernej Virag
(16)
PSPDFKit on Android
PSPDFKit on Android
Python simillar image search
Python simillar image search
Solr
Solr
BeanstalkD Queues in Django
BeanstalkD Queues in Django
Odprti video formati
Odprti video formati
Android services
Android services
Hitre aplikacije
Hitre aplikacije
From Doom to Crysis
From Doom to Crysis
Security
Security
Ip security
Ip security
Encryption
Encryption
The Task Model
The Task Model
Game design - formal and dramatic elements
Game design - formal and dramatic elements
Java stereams
Java stereams
Pretty good privacy
Pretty good privacy
Gaming industry in 2010
Gaming industry in 2010
Kürzlich hochgeladen
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
drae5
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
atducpo
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Pooja Nehwal
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
PsychicRuben LoveSpells
escort service sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
escort service sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Independent Escorts in Lucknow (Adult Only) 👩🏽❤️💋👩🏼 8923113531 ♛ Escort S...
Independent Escorts in Lucknow (Adult Only) 👩🏽❤️💋👩🏼 8923113531 ♛ Escort S...
gurkirankumar98700
Breath, Brain & Beyond_A Holistic Approach to Peak Performance.pdf
Breath, Brain & Beyond_A Holistic Approach to Peak Performance.pdf
Jess Walker
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
anilsa9823
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
pastor83
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
anilsa9823
Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666
nishakur201
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
ABMWeaklings
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
anilsa9823
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
atducpo
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
Pooja Nehwal
call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..
nishakur201
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
CIOWomenMagazine
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
Shivain97
Introducing to billionaire brain wave.pdf
Introducing to billionaire brain wave.pdf
noumannajam04
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
Kürzlich hochgeladen
(20)
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
办理国外毕业证学位证《原版美国montana文凭》蒙大拿州立大学毕业证制作成绩单修改
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
Call Girls In Andheri East Call US Pooja📞 9892124323 Book Hot And
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
escort service sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
escort service sasti (*~Call Girls in Paschim Vihar Metro❤️9953056974
Independent Escorts in Lucknow (Adult Only) 👩🏽❤️💋👩🏼 8923113531 ♛ Escort S...
Independent Escorts in Lucknow (Adult Only) 👩🏽❤️💋👩🏼 8923113531 ♛ Escort S...
Breath, Brain & Beyond_A Holistic Approach to Peak Performance.pdf
Breath, Brain & Beyond_A Holistic Approach to Peak Performance.pdf
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
Call Girls Anjuna beach Mariott Resort ₰8588052666
Call Girls Anjuna beach Mariott Resort ₰8588052666
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
文凭办理《原版美国USU学位证书》犹他州立大学毕业证制作成绩单修改
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
call girls in candolim beach 9870370636] NORTH GOA ..
call girls in candolim beach 9870370636] NORTH GOA ..
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
Understanding Relationship Anarchy: A Guide to Liberating Love | CIO Women Ma...
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
Introducing to billionaire brain wave.pdf
Introducing to billionaire brain wave.pdf
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Jni – java native interface
1.
JNI – Java
Native Interface How to persuade my Java application to talk to evil evil C native code
2.
•
WHAT? • WHY? • WHY NOT? • THE ACTUAL CODE • GOODIES
3.
Er… WHAT?
Java applications Native applications
4.
But, but… WHY?
5.
But, but…
WHY? Allows native API function calls
6.
But, but…
WHY? Usage of existing native libraries
7.
But, but…
WHY? Execution of time-critical code
8.
OK, so
WHY NOT? Use of JNI should be avoided whenever reasonably possible!
9.
Example Java native function
declaration first:
10.
Example
11.
Example
12.
Example
13.
Example
14.
Example
15.
Example Careful!
16.
Example
17.
Example
18.
Example
19.
Exceptions?!
Doable but annoying.
20.
Other things to
know • Forget about garbage collection • Java JVM is nazi about its memory space
21.
I DON’T EXIST jernej@virag.si Skype:
izacus
Jetzt herunterladen