Java JNI 调用java对象方法

#include
#include
#include 
#include
using namespace std;

bool CtrlHandler(DWORD fdwctrltype){cout << "fdwctrltype="<FindClass("java/lang/System");
		jfieldID fID = env->GetStaticFieldID(cls,"out","Ljava/io/PrintStream;");
		jobject out = env->GetStaticObjectField(cls,fID);
		jclass outCls = env->GetObjectClass(out);
		jmethodID mID = env->GetMethodID(outCls, "println", "(Ljava/lang/String;)V");
		//ctrl + c 并未结束jvm程序
		//while(true){
			jstring str = env->NewStringUTF("欢迎来到JNI的世界!哈哈哈哈哈哈哈哈");
			env->CallVoidMethod(out,mID,str);
			//存在内存泄漏,可以通过jprofiler 看到
			//一定要释放额!!!!!!!!
			env->DeleteLocalRef(str);
		//}
		
		//env->CallStaticVoidMethod(cls, mid, 100);
		/* We are done. */
	}
	
	delete options;
	
	
	JavaVM *jvms;
	jsize count=0;
	//只能获取本进程创建的虚拟机
	jint result = JNI_GetCreatedJavaVMs(&jvms,sizeof(JavaVM)*10,&count);
	if(result == JNI_OK){
		cout << jvm << endl;
		cout << count << endl;
	}
	
	jvm->DestroyJavaVM();
	
	
	system("pause");

	return 0;
}
[Opened E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Object from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.Serializable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Comparable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.CharSequence from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.String from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.AnnotatedElement from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.GenericDeclaration from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Type from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Class from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Cloneable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassLoader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.System from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Throwable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Error from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ThreadDeath from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Exception from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.RuntimeException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.SecurityManager from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.ProtectionDomain from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.AccessControlContext from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.SecureClassLoader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ReflectiveOperationException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassNotFoundException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.LinkageError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.NoClassDefFoundError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassCastException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ArrayStoreException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.VirtualMachineError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.OutOfMemoryError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.StackOverflowError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.IllegalMonitorStateException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.Reference from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.SoftReference from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.WeakReference from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.FinalReference from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.PhantomReference from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Cleaner from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.Finalizer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Runnable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Thread from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Thread$UncaughtExceptionHandler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ThreadGroup from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Map from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Dictionary from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Hashtable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Properties from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.AccessibleObject from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Member from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Field from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Parameter from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Executable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Method from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Constructor from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.MagicAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.MethodAccessor from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.MethodAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.ConstructorAccessor from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.ConstructorAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.DelegatingClassLoader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.ConstantPool from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.FieldAccessor from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.FieldAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.UnsafeFieldAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.UnsafeStaticFieldAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.annotation.Annotation from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.CallerSensitive from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandle from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.DirectMethodHandle from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MemberName from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleNatives from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.LambdaForm from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodType from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.BootstrapMethodError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.CallSite from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.ConstantCallSite from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MutableCallSite from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.VolatileCallSite from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Appendable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.AbstractStringBuilder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.StringBuffer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.StringBuilder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Unsafe from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.AutoCloseable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.Closeable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.InputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.ByteArrayInputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.File from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.net.URLClassLoader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.net.URL from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.jar.Manifest from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Launcher from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Launcher$AppClassLoader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Launcher$ExtClassLoader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.CodeSource from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.StackTraceElement from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.Buffer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Boolean from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Character from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Number from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Float from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Double from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Byte from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Short from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Integer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Long from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.NullPointerException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ArithmeticException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.ObjectStreamField from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Comparator from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.String$CaseInsensitiveComparator from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.Guard from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.Permission from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.BasicPermission from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.RuntimePermission from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.AccessController from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.ReflectPermission from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.PrivilegedAction from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.ReflectionFactory$GetReflectionFactoryAction from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.cert.Certificate from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Iterable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collection from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.List from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.RandomAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.AbstractCollection from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.AbstractList from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Vector from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Stack from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.ReflectionFactory from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.Reference$Lock from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.Reference$ReferenceHandler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.InterruptedException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.ArrayList from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Set from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.AbstractSet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$EmptySet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$EmptyList from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.AbstractMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$EmptyMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$UnmodifiableCollection from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$UnmodifiableList from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$UnmodifiableRandomAccessList from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.ReferenceQueue from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.ReferenceQueue$Null from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.ReferenceQueue$Lock from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaLangRefAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.Reference$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.SharedSecrets from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.IncompatibleClassChangeError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.NoSuchMethodError from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.Reflection from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.HashMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Map$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.HashMap$Node from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.VM from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Hashtable$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Math from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ref.Finalizer$FinalizerThread from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.Charset from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.spi.CharsetProvider from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.FastCharsetProvider from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.StandardCharsets from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.PreHashedMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.StandardCharsets$Aliases from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.StandardCharsets$Classes from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.StandardCharsets$Cache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ThreadLocal from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.atomic.AtomicInteger from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Class$3 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Class$ReflectionData from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Class$Atomic from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.generics.repository.AbstractRepository from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.generics.repository.GenericDeclRepository from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.generics.repository.ClassRepository from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Class$AnnotationData from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.annotation.AnnotationType from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.WeakHashMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassValue$ClassValueMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Modifier from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.LangReflectAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.ReflectAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Arrays from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.Charset$ExtendedProviderHolder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.Charset$ExtendedProviderHolder$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Opened E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded sun.nio.cs.AbstractCharsetProvider from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ext.ExtendedCharsets from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded java.lang.Class$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.ReflectionFactory$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.NativeConstructorAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.DelegatingConstructorAccessorImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.SortedMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.NavigableMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.TreeMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.ASCIICaseInsensitiveComparator from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.TreeMap$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.HistoricallyNamedCharset from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ext.GBK from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded java.lang.StringCoding from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ThreadLocal$ThreadLocalMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.StringCoding$StringDecoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ext.DoubleByte from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded sun.nio.cs.ext.DelegatableDecoder from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded sun.nio.cs.ArrayDecoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.CharsetDecoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ext.DoubleByte$Decoder from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded java.nio.charset.CodingErrorAction from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Hashtable$EntrySet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$SynchronizedCollection from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$SynchronizedSet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Objects from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Enumeration from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Iterator from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Hashtable$Enumerator from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Runtime from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Version from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileInputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileDescriptor from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaIOFileDescriptorAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileDescriptor$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.Flushable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.OutputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileOutputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FilterInputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.BufferedInputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.PrivilegedExceptionAction from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.reflect.misc.ReflectUtil from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FilterOutputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.PrintStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.BufferedOutputStream from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.Writer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.OutputStreamWriter from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.StreamEncoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.security.action.GetPropertyAction from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ArrayEncoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.CharsetEncoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ext.DoubleByte$Encoder from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded java.nio.ByteBuffer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.HeapByteBuffer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.Bits from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.ByteOrder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.atomic.AtomicLong from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaNioAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.Bits$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Readable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.CharBuffer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.HeapCharBuffer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.CoderResult from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.CoderResult$Cache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.CoderResult$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.charset.CoderResult$2 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.BufferedWriter from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.ext.MS936 from E:\code\Utils\src\demo\dll\main\lib\charsets.jar]
[Loaded java.io.DefaultFileSystem from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileSystem from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.WinNTFileSystem from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.ExpiringCache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.LinkedHashMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.ExpiringCache$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Enum from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.File$PathStatus from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.file.Watchable from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.nio.file.Path from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.StringCoding$StringEncoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassLoader$3 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.ExpiringCache$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.LinkedHashMap$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassLoader$NativeLibrary from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Terminator from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.SignalHandler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Terminator$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Signal from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.NativeSignalHandler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Integer$IntegerCache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.OSEnvironment from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.io.Win32ErrorMode from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaLangAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.System$2 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.IllegalArgumentException from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Compiler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Compiler$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.net.URLStreamHandlerFactory from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Launcher$Factory from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.security.util.Debug from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassLoader$ParallelLoaders from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.WeakHashMap$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Collections$SetFromMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.WeakHashMap$KeySet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaNetAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.net.URLClassLoader$7 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.StringTokenizer from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Launcher$ExtClassLoader$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.MetaIndex from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.Reader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.BufferedReader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.InputStreamReader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileReader from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.StreamDecoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.reflect.Array from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Locale from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.locale.LocaleObjectCache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Locale$Cache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.locks.Lock from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.locks.ReentrantLock from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$Segment from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$Node from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$CounterCell from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$CollectionView from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$KeySetView from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$ValuesView from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.ConcurrentHashMap$EntrySetView from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.locale.BaseLocale from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.locale.BaseLocale$Cache from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.locale.BaseLocale$Key from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.locale.LocaleObjectCache$CacheEntry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.Locale$LocaleKey from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.util.locale.LocaleUtils from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.CharacterData from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.CharacterDataLatin1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.HashMap$TreeNode from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileInputStream$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.net.www.ParseUtil from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.BitSet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.net.Parts from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.net.URLStreamHandler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.net.www.protocol.file.Handler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaSecurityAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.ProtectionDomain$JavaSecurityAccessImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.JavaSecurityProtectionDomainAccess from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.ProtectionDomain$2 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.ProtectionDomain$Key from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.security.Principal from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.HashSet from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.URLClassPath from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.net.www.protocol.jar.Handler from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.Launcher$AppClassLoader$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.SystemClassLoaderAction from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleImpl from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleImpl$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.function.Function from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleImpl$2 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleImpl$3 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassValue from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleImpl$4 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassValue$Entry from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassValue$Identity from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.ClassValue$Version from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MemberName$Factory from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleStatics from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.invoke.MethodHandleStatics$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.misc.PostVMInitHook from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.usagetracker.UsageTrackerClient from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.util.concurrent.atomic.AtomicBoolean from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.usagetracker.UsageTrackerClient$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.usagetracker.UsageTrackerClient$4 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.usagetracker.UsageTrackerClient$2 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded jdk.internal.util.EnvUtils from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.usagetracker.UsageTrackerClient$3 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.Unicode from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.UTF_8 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded sun.nio.cs.UTF_8$Encoder from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.io.FileOutputStream$1 from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
欢迎来到JNI的世界!哈哈哈哈哈哈哈哈
00000000703C44A0
1
[Loaded java.lang.Shutdown from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
[Loaded java.lang.Shutdown$Lock from E:\code\Utils\src\demo\dll\main\lib\rt.jar]
请按任意键继续. . . 
atexit

执行环境:

Java JNI 调用java对象方法_第1张图片

Java JNI 调用java对象方法_第2张图片

Java JNI 调用java对象方法_第3张图片

 

Java JNI 调用java对象方法_第4张图片

 

你可能感兴趣的:(Java,C/C++,Error,Solution)