Enviar búsqueda
Cargar
Jni – java native interface
•
2 recomendaciones
•
1,739 vistas
Jernej Virag
Seguir
How to interact with native code from Java
Leer menos
Leer más
Desarrollo personal
Denunciar
Compartir
Denunciar
Compartir
1 de 21
Descargar ahora
Descargar para leer sin conexión
Recomendados
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
Recomendados
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
Más contenido relacionado
Similar a 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
Similar a 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
Más de 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
Más de 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
Último
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptx
padhand000
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
Delhi Call girls
$ 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
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
Call Girls in Nagpur High Profile Call Girls
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
pastor83
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
dollysharma2066
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
vikas rana
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
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
Shivain97
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
Delhi Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
Pooja Nehwal
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
Delhi Call girls
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
Delhi Call girls
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
drae5
Último
(15)
WOMEN EMPOWERMENT women empowerment.pptx
WOMEN EMPOWERMENT women empowerment.pptx
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
$ 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...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
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...
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Jasola (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
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
Descargar ahora