FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tutorials/java-native/src/main/cpp/generateNativeLib.bat at master · stulingyu/tutorials · GitHub
stulingyu
tutorials
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tutorials
/
java-native
/
src
/
main
/
cpp
/
generateNativeLib.bat
Copy path
More file actions
More file actions
Latest commit
History
History
History
6 lines (6 loc) · 683 Bytes
Breadcrumbs
tutorials
/
java-native
/
src
/
main
/
cpp
/
generateNativeLib.bat
Copy path
File metadata and controls
6 lines (6 loc) · 683 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
REM
Create the header with javac -h . ClassName.java
REM
Remember to set your JAVA_HOME env var
g++ -c -I
%JAVA_HOME%
\include -I
%JAVA_HOME%
\include\win32 com_baeldung_jni_HelloWorldJNI.cpp -o com_baeldung_jni_HelloWorldJNI.o
g++ -c -I
%JAVA_HOME%
\include -I
%JAVA_HOME%
\include\win32 com_baeldung_jni_ExampleParametersJNI.cpp -o com_baeldung_jni_ExampleParametersJNI.o
g++ -c -I
%JAVA_HOME%
\include -I
%JAVA_HOME%
\include\win32 com_baeldung_jni_ExampleObjectsJNI.cpp -o com_baeldung_jni_ExampleObjectsJNI.o
g++ -shared -o ..\..\..\native\win32\native.dll com_baeldung_jni_HelloWorldJNI.o com_baeldung_jni_ExampleParametersJNI.o com_baeldung_jni_ExampleObjectsJNI.o -Wl,--add-stdcall-alias
Back
|
FazBrowse Home
|
New Git URL