Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/379.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
简单java jni教程失败_Java_C++_Java Native Interface_Cygwin_Mingw - Fatal编程技术网

简单java jni教程失败

简单java jni教程失败,java,c++,java-native-interface,cygwin,mingw,Java,C++,Java Native Interface,Cygwin,Mingw,我正在努力使最基本的jni示例正常工作 我正在关注这个,有点老了,但我能找到最好的 步骤: 创建HelloJNI.java public class HelloJNI { static { System.loadLibrary("hello"); } private native void sayHello(); public static void main(String[] args) { new HelloJNI().sa

我正在努力使最基本的jni示例正常工作

我正在关注这个,有点老了,但我能找到最好的

步骤:

  • 创建
    HelloJNI.java

    public class HelloJNI {
        static {
            System.loadLibrary("hello");
        }
        private native void sayHello();
    
        public static void main(String[] args) {
            new HelloJNI().sayHello();  // invoke the native method
        }
    }
    
  • HelloJNI.java
    编译成
    HelloJNI.class

    javac HelloJNI.java

  • public class HelloJNI {
        static {
            System.loadLibrary("hello");
        }
        private native void sayHello();
    
        public static void main(String[] args) {
            new HelloJNI().sayHello();  // invoke the native method
        }
    }
    
  • 通过运行以下命令生成标头:

    javah HelloJNI

    HelloJNI.h

    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class HelloJNI */
    
    #ifndef _Included_HelloJNI
    #define _Included_HelloJNI
    #ifdef __cplusplus
    extern "C" {
    #endif
    /*
     * Class:     HelloJNI
     * Method:    sayHello
     * Signature: ()V
     */
    JNIEXPORT void JNICALL Java_HelloJNI_sayHello
      (JNIEnv *, jobject);
    
    #ifdef __cplusplus
    }
    #endif
    #endif
    
现在乐趣开始了

首先,
%JAVA\u HOME%
不起作用,您必须使用
$JAVA\u HOME

  • set JAVA\u HOME=C:\Program Files\JAVA\jdk1.8.0\u 102
  • echo$JAVA\u HOME
  • gcc-Wl,--添加stdcall别名-I“$JAVA\u HOME\include”-I“$JAVA\u HOME\include\win32”-shared-o hello.dll HelloJNI.c
看起来我成功了。。。ehm编号:

然后我尝试了一下Cygwin:

gcc-3-D\uu int64=“long long”-mno cygwin-Wl,--添加stdcall别名-I“\include”-I“\include\win32”-共享-o hello.dll HelloJNI.c

-bash:gcc-3:未找到命令

让我将
gcc-3
更改为
gcc

gcc-D\uu int64=“long long”-mno cygwin-Wl,--添加stdcall别名-I“\include”-I“\include\win32”-共享-o hello.dll HelloJNI.c

gcc:错误:选项-mno cygwin未知

让我们试着把它去掉

gcc-D\uu int64=“long long”-Wl,--添加stdcall别名-I“\include”-I“\include\win32”-shared-o hello.dll HelloJNI.c

没有这样的文件“jni.h”

让我换成
$JAVA\u HOME

gcc-D\uu int64=“long long”-Wl,--添加stdcall别名-I“$JAVA\u HOME\include”-I“$JAVA\u HOME\include\win32”-共享-o hello.dll HelloJNI.c

也许这次起作用了

javahellojni
挂起

java-Djava.library.path=。HelloJNI
分段故障

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180193180, pid=500, tid=0x0000000000000f10
#
# JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [cygwin1.dll+0x153180]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x0000000001fee800):  JavaThread "main" [_thread_in_native, id=3856, stack(0x00000000022b0000,0x00000000023b0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000096

Registers:
RAX=0x0000000000000016, RBX=0x0000000000000002, RCX=0x0000000180300040, RDX=0x0000000000000001
RSP=0x00000000023af6f0, RBP=0x00000000023af7a0, RSI=0x00000000023ad680, RDI=0x00000000023af71c
R8 =0x00000000023af71c, R9 =0x000000018014ac50, R10=0xfefefefefefefeff, R11=0x00000004911210ac
R12=0x0000000000000000, R13=0x000000001c290280, R14=0x00000000023af838, R15=0x0000000001fee800
RIP=0x0000000180193180, EFLAGS=0x0000000000010206

Top of Stack: (sp=0x00000000023af6f0)
0x00000000023af6f0:   000000001c290280 0000000001fee800
0x00000000023af700:   0000000001fee800 0000000001fe2730
0x00000000023af710:   000000001c290280 00000000023af838
0x00000000023af720:   00000000023af740 0000000000000002
0x00000000023af730:   000000000000000d 0000000001fee800
0x00000000023af740:   0000000491123030 000000000000000c
0x00000000023af750:   000000018027fda0 0000000000000001
0x00000000023af760:   000000001c290280 0000000020000021
0x00000000023af770:   00000000ffffffff 000000018012700b
0x00000000023af780:   00000000023afa00 0000000001fee800
0x00000000023af790:   000000001c290280 0000000020000021
0x00000000023af7a0:   00000000023af818 0000000002a07f54
0x00000000023af7b0:   0000000001fee9f8 00000000023af838
0x00000000023af7c0:   0000000020000021 0000000001fee800
0x00000000023af7d0:   0000000002a07c82 00000000023af7d8
0x00000000023af7e0:   000000001c290280 00000000023af838 

Instructions: (pc=0x0000000180193180)
0x0000000180193160:   46 50 48 8b 5e 10 85 c0 0f 84 92 00 00 00 48 8d
0x0000000180193170:   7c 24 2c b9 01 00 00 00 48 89 fa e8 c0 0f f7 ff
0x0000000180193180:   f6 83 94 00 00 00 01 0f b7 43 10 75 05 f6 c4 02
0x0000000180193190:   74 7e f6 c4 20 75 11 81 a3 94 00 00 00 ff df ff 


Register to memory mapping:

RAX=0x0000000000000016 is an unknown value
RBX=0x0000000000000002 is an unknown value
RCX=0x0000000180300040 is an unknown value
RDX=0x0000000000000001 is an unknown value
RSP=0x00000000023af6f0 is pointing into the stack for thread: 0x0000000001fee800
RBP=0x00000000023af7a0 is pointing into the stack for thread: 0x0000000001fee800
RSI=0x00000000023ad680 is pointing into the stack for thread: 0x0000000001fee800
RDI=0x00000000023af71c is pointing into the stack for thread: 0x0000000001fee800
R8 =0x00000000023af71c is pointing into the stack for thread: 0x0000000001fee800
R9 =0x000000018014ac50 is an unknown value
R10=0xfefefefefefefeff is an unknown value
R11=0x00000004911210ac is an unknown value
R12=0x0000000000000000 is an unknown value
R13={method} {0x000000001c290288} 'sayHello' '()V' in 'HelloJNI'
R14=0x00000000023af838 is pointing into the stack for thread: 0x0000000001fee800
R15=0x0000000001fee800 is a thread


Stack: [0x00000000022b0000,0x00000000023b0000],  sp=0x00000000023af6f0,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [cygwin1.dll+0x153180]
C  [cygwin1.dll+0xe700a]
C  0x00000000023afa00

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  HelloJNI.sayHello()V+0
j  HelloJNI.main([Ljava/lang/String;)V+7
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x000000001d8b7800 JavaThread "Service Thread" daemon [_thread_blocked, id=5544, stack(0x000000001f6d0000,0x000000001f7d0000)]
  0x000000001d853800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=4884, stack(0x000000001f5d0000,0x000000001f6d0000)]
  0x000000001d833000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=3560, stack(0x000000001f310000,0x000000001f410000)]
  0x000000001d82a800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=5756, stack(0x000000001f060000,0x000000001f160000)]
  0x000000001d823800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3092, stack(0x000000001f1c0000,0x000000001f2c0000)]
  0x000000001d820000 JavaThread "Attach Listener" daemon [_thread_blocked, id=1712, stack(0x000000001ef20000,0x000000001f020000)]
  0x000000001c88f000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2452, stack(0x000000001ed10000,0x000000001ee10000)]
  0x000000001c87f800 JavaThread "Finalizer" daemon [_thread_blocked, id=5552, stack(0x000000001e760000,0x000000001e860000)]
  0x000000001c878800 JavaThread "Reference Handler" daemon [_thread_blocked, id=4664, stack(0x000000001ea50000,0x000000001eb50000)]
=>0x0000000001fee800 JavaThread "main" [_thread_in_native, id=3856, stack(0x00000000022b0000,0x00000000023b0000)]

Other Threads:
  0x000000001c872000 VMThread [stack: 0x000000001e890000,0x000000001e990000] [id=5488]
  0x000000001d8e6800 WatcherThread [stack: 0x000000001f880000,0x000000001f980000] [id=5872]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 PSYoungGen      total 76288K, used 2621K [0x000000076b180000, 0x0000000770680000, 0x00000007c0000000)
  eden space 65536K, 4% used [0x000000076b180000,0x000000076b40f5e8,0x000000076f180000)
  from space 10752K, 0% used [0x000000076fc00000,0x000000076fc00000,0x0000000770680000)
  to   space 10752K, 0% used [0x000000076f180000,0x000000076f180000,0x000000076fc00000)
 ParOldGen       total 175104K, used 0K [0x00000006c1400000, 0x00000006cbf00000, 0x000000076b180000)
  object space 175104K, 0% used [0x00000006c1400000,0x00000006c1400000,0x00000006cbf00000)
 Metaspace       used 2512K, capacity 4486K, committed 4864K, reserved 1056768K
  class space    used 282K, capacity 386K, committed 512K, reserved 1048576K

Card table byte_map: [0x0000000011db0000,0x00000000125b0000] byte_map_base: 0x000000000e7a6000

Marking Bits: (ParMarkBitMap*) 0x000000005556a6c0
 Begin Bits: [0x0000000013730000, 0x00000000176e0000)
 End Bits:   [0x00000000176e0000, 0x000000001b690000)

Polling page: 0x0000000000110000

CodeCache: size=245760Kb used=1109Kb max_used=1113Kb free=244650Kb
 bounds [0x00000000029f0000, 0x0000000002c60000, 0x00000000119f0000]
 total_blobs=258 nmethods=27 adapters=145
 compilation: enabled

Compilation events (10 events):
Event: 0.044 Thread 0x000000001d853800 nmethod 22 0x0000000002b02210 code [0x0000000002b023c0, 0x0000000002b02af8]
Event: 0.044 Thread 0x000000001d853800   23       3       java.lang.AbstractStringBuilder::append (50 bytes)
Event: 0.044 Thread 0x000000001d853800 nmethod 23 0x0000000002b05b90 code [0x0000000002b05d60, 0x0000000002b064b8]
Event: 0.044 Thread 0x000000001d823800 nmethod 24 0x0000000002b067d0 code [0x0000000002b06920, 0x0000000002b069f8]
Event: 0.046 Thread 0x000000001d853800   25       3       java.lang.StringBuilder::append (8 bytes)
Event: 0.046 Thread 0x000000001d853800 nmethod 25 0x0000000002b05010 code [0x0000000002b05180, 0x0000000002b05308]
Event: 0.047 Thread 0x000000001d853800   26       3       java.lang.System::getSecurityManager (4 bytes)
Event: 0.047 Thread 0x000000001d853800 nmethod 26 0x0000000002b04d10 code [0x0000000002b04e60, 0x0000000002b04fb0]
Event: 0.047 Thread 0x000000001d853800   27       3       java.io.WinNTFileSystem::normalize (143 bytes)
Event: 0.048 Thread 0x000000001d853800 nmethod 27 0x0000000002b03f50 code [0x0000000002b04140, 0x0000000002b04968]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (3 events):
Event: 0.020 Thread 0x0000000001fee800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x000000076b187c78) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u102\7268\hotspot\sU-¡r#.”?
Event: 0.020 Thread 0x0000000001fee800 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x000000076b187f60) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u102\7268\hotspot\src\share\vm\prims\3ßçÄ…*¥?
Event: 0.041 Thread 0x0000000001fee800 Exception <a 'java/io/FileNotFoundException'> (0x000000076b1dc428) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u102\7268\hotspot\src\share\vm\prims\jni.cpp, line 709]

Events (10 events):
Event: 0.046 loading class java/security/BasicPermissionCollection
Event: 0.046 loading class java/security/BasicPermissionCollection done
Event: 0.046 loading class sun/launcher/LauncherHelper$FXHelper
Event: 0.047 loading class sun/launcher/LauncherHelper$FXHelper done
Event: 0.047 loading class java/lang/Class$MethodArray
Event: 0.047 loading class java/lang/Class$MethodArray done
Event: 0.047 loading class java/lang/Void
Event: 0.047 loading class java/lang/Void done
Event: 0.047 loading class java/lang/ClassLoaderHelper
Event: 0.047 loading class java/lang/ClassLoaderHelper done


Dynamic libraries:
0x000000013f9c0000 - 0x000000013f9f7000     C:\Program Files\Java\jre1.8.0_102\bin\java.exe
0x0000000077900000 - 0x0000000077aaa000     C:\Windows\SYSTEM32\ntdll.dll
0x00000000776e0000 - 0x00000000777ff000     C:\Windows\system32\kernel32.dll
0x000007fefd8e0000 - 0x000007fefd94a000     C:\Windows\system32\KERNELBASE.dll
0x000007fefda70000 - 0x000007fefdb4b000     C:\Windows\system32\ADVAPI32.dll
0x000007fefdfe0000 - 0x000007fefe07f000     C:\Windows\system32\msvcrt.dll
0x000007feff860000 - 0x000007feff87f000     C:\Windows\SYSTEM32\sechost.dll
0x000007fefdd90000 - 0x000007fefdebd000     C:\Windows\system32\RPCRT4.dll
0x0000000077800000 - 0x00000000778fa000     C:\Windows\system32\USER32.dll
0x000007feff8e0000 - 0x000007feff947000     C:\Windows\system32\GDI32.dll
0x000007feff950000 - 0x000007feff95e000     C:\Windows\system32\LPK.dll
0x000007fefdec0000 - 0x000007fefdf8a000     C:\Windows\system32\USP10.dll
0x000007fefbf90000 - 0x000007fefc184000     C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\COMCTL32.dll
0x000007fefe0a0000 - 0x000007fefe111000     C:\Windows\system32\SHLWAPI.dll
0x000007fefe120000 - 0x000007fefe14e000     C:\Windows\system32\IMM32.DLL
0x000007feff1c0000 - 0x000007feff2c9000     C:\Windows\system32\MSCTF.dll
0x00000000577a0000 - 0x0000000057871000     C:\Program Files\Java\jre1.8.0_102\bin\msvcr100.dll
0x0000000054d50000 - 0x00000000555ea000     C:\Program Files\Java\jre1.8.0_102\bin\server\jvm.dll
0x000007fef5420000 - 0x000007fef5429000     C:\Windows\system32\WSOCK32.dll
0x000007fefdf90000 - 0x000007fefdfdd000     C:\Windows\system32\WS2_32.dll
0x000007fefdd80000 - 0x000007fefdd88000     C:\Windows\system32\NSI.dll
0x000007fefa1d0000 - 0x000007fefa20b000     C:\Windows\system32\WINMM.dll
0x000007fefc700000 - 0x000007fefc70c000     C:\Windows\system32\VERSION.dll
0x0000000077ac0000 - 0x0000000077ac7000     C:\Windows\system32\PSAPI.DLL
0x0000000064bc0000 - 0x0000000064bcf000     C:\Program Files\Java\jre1.8.0_102\bin\verify.dll
0x00000000598e0000 - 0x0000000059909000     C:\Program Files\Java\jre1.8.0_102\bin\java.dll
0x000000005f250000 - 0x000000005f266000     C:\Program Files\Java\jre1.8.0_102\bin\zip.dll
0x000007fefe150000 - 0x000007fefeeda000     C:\Windows\system32\SHELL32.dll
0x000007feffa00000 - 0x000007feffc03000     C:\Windows\system32\ole32.dll
0x000007fefd630000 - 0x000007fefd63f000     C:\Windows\system32\profapi.dll
0x0000000491120000 - 0x0000000491138000     C:\Users\GBarbieri\Documents\NetBeansProjects\jni\hello.dll
0x0000000180040000 - 0x0000000180630000     C:\cygwin64\bin\cygwin1.dll
0x000007fef16f0000 - 0x000007fef1815000     C:\Windows\system32\dbghelp.dll

VM Arguments:
java_command: HelloJNI
java_class_path (initial): .
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_102
PATH=C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\ProgramData\Oracle\Java\javapath;C:\jet11.0-eval-amd64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;cygwin-directory\bin;C:\Program Files (x86)\CMake\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Users\GBarbieri\Documents\NetBeansProjects\nifty-gui\nifty-examples\target\natives;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files\Git\cmd;C:\Program Files\Java\jdk1.8.0_102\bin
USERNAME=GBarbieri
SHELL=/bin/bash
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows 7 , 64 bit Build 7601 (6.1.7601.23539)

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, rtm, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2

Memory: 4k page, physical 16694948k(12736124k free), swap 33388036k(28626128k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.102-b14) for windows-amd64 JRE (1.8.0_102-b14), built on Jun 22 2016 13:15:21 by "java_re" with MS VC++ 10.0 (VS2010)

time: Tue Oct 11 10:47:52 2016
elapsed time: 0 seconds (0d 0h 0m 0s)
#
#Java运行时环境检测到一个致命错误:
#
#pc=0x0000000180193180、pid=500、tid=0x0000000000000f10时的异常访问(0xc0000005)
#
#JRE版本:Java(TM)SE运行时环境(8.0_102-b14)(build 1.8.0_102-b14)
#Java虚拟机:Java热点(TM)64位服务器虚拟机(25.102-b14混合模式windows-amd64压缩oops)
#有问题的框架:
#C[cygwin1.dll+0x153180]
#
#无法写入核心转储。默认情况下,在客户端版本的Windows上不启用小型转储
#
#如果您想提交错误报告,请访问:
#   http://bugreport.java.com/bugreport/crash.jsp
#崩溃发生在Java虚拟机外部的本机代码中。
#有关报告错误的位置,请参见问题框。
#
---------------R E A D---------------
当前线程(0x0000000001fee800):JavaThread“main”[\u本地线程,id=3856,堆栈(0x00000000022b0000,0x00000000023b0000)]
siginfo:ExceptionCode=0xc0000005,读取地址0x0000000000000096
登记册:
RAX=0x0000000000000016,RBX=0x0000000000000002,RCX=0x0000000180300040,RDX=0x0000000000000001
RSP=0x00000000023af6f0,RBP=0x00000000023af7a0,RSI=0x00000000023ad680,RDI=0x00000000023af71c
R8=0x00000000023af71c,R9=0x000000018014ac50,R10=0xFEFF,R11=0x00000004911210ac
R12=0x0000000000000000,R13=0x000000001c290280,R14=0x00000000023af838,R15=0x0000000001800
RIP=0x0000000180193180,EFLAGS=0x0000000000010206
堆栈顶部:(sp=0x00000000023af6f0)
0x00000000023af6f0:00000000 1C290280 000000000 1FEE800
0x00000000023af700:000000000 1FEE800 000000000 1FE2730
0x00000000023af710:00000000 1C290280 000000000 23AF838
0x00000000023af720:00000000023AF7400000000000000002
0x00000000023af730:000000000000000 D 000000000 1FEE800
0x00000000023af740:0000000 491123030 000000000000000 C
0x00000000023af750:0000000 18027FDA00000000000001
0x00000000023af760:00000000 1C290280 00000000 20000021
0x00000000023af770:00000000 FFFFFFFF0000000 18012700B
0x00000000023af780:000000000 23AFA00 000000000 1FEE800
0x00000000023af790:00000000 1C290280 00000000 20000021
0x00000000023af7a0:000000000 23AF818 000000000 2A07F54
0x00000000023af7b0:0000000001FEE9F800000000023AF838
0x00000000023af7c0:00000000 20000021 000000000 1FEE800
0x00000000023af7d0:000000000 2A07C82 000000000 23AF7D8
0x00000000023af7e0:00000000 1C290280 000000000 23AF838
说明:(pc=0x0000000180193180)
0x0000000180193160:46 50 48 8b 5e 10 85 c0 0f 84 92 00 00 00 48 8d
0x0000000180193170:7c 24 2c b9 01 00 00 48 89 fa e8 c0 0f f7 ff
0x0000000180193180:f6 83 94 00 00 00 01 0f b7 43 10 75 05 f6 c4 02
0x0000000180193190:74 7e f6 c4 20 75 11 81 a3 94 00 00 ff df ff
寄存器到内存映射:
RAX=0x0000000000000016是未知值
RBX=0x0000000000000002是未知值
RCX=0x0000000180300040是未知值
RDX=0x0000000000000001是未知值
RSP=0x00000000023af6f0指向线程0x0000000001800的堆栈
RBP=0x00000000023af7a0指向线程0x0000000001800的堆栈
RSI=0x00000000023ad680指向线程0x0000000001800的堆栈
RDI=0x00000000023af71c指向线程0x0000000001800的堆栈
R8=0x00000000023af71c指向线程0x0000000001800的堆栈
R9=0x000000018014ac50是未知值
R10=0xFEFF是未知值
R11=0x00000004911210ac是未知值
R12=0x0000000000000000是未知值
R13={method}{0x000000001c290288}'sayHello''()V'在'HelloJNI'中
R14=0x00000000023af838指向线程0x0000000001800的堆栈
R15=0x0000000001fee800是一个线程
堆栈:[0x00000000022b0000,0x00000000023b0000],sp=0x00000000023af6f0,可用空间=1021k
本机框架:(J=编译的Java代码,J=解释的,Vv=虚拟机代码,C=本机代码)
C[cygwin1.dll+0x153180]
C[cygwin1.dll+0xe700a]
C 0x00000000023afa00
Java框架:(J=编译的Java代码,J=解释的,Vv=虚拟机代码)
j HelloJNI.sayHello()V+0
jhellojni.main([Ljava/lang/String;)V+7
v~我的名字是: