Cannot create proxies

68 views
Skip to first unread message

dushkin

unread,
Apr 11, 2015, 12:10:48 PM4/11/15
to jni...@googlegroups.com
Hi there,

 Can you please advise?
 I am running on Win7\64, the DLL was built on VS2012 and was targeted at 64 bit.
 I have updated the config file entry : <supportedRuntime version="v 4.0.30319.17929"/>

Thanks.

C:\Users\ttene\Downloads\jni4net-0.8.8.0-bin\bin>corflags proxygen.exe /32BIT+ /Force
Microsoft (R) .NET Framework CorFlags Conversion Tool.  Version  4.0.30319.17929
Copyright (c) Microsoft Corporation.  All rights reserved.

corflags : warning CF011 : The specified file is strong name signed.  Using /Force will invalidate the signature of this image and will require the as
sembly to be resigned.

C:\Users\ttene\Downloads\jni4net-0.8.8.0-bin\bin>proxygen.exe c:\temp\CPMPerformanceCountersController.dll -wd C:\Users\ttene\Downloads\jni4net-0.8.8.
0-bin\bin
jni4net.proxygen - Copyright (C) 2009 Pavel Savara - licensed under GPLv3

net.sf.jni4net.jni.JNIException: Can't initialize jni4net. (32bit vs 64bit JVM vs CLR ?)
CLR architecture: 32bit
JAVA_HOME: c:\Program Files\Java\jdk1.8.0_31 ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exc
eption from HRESULT: 0x8007000B)
   at net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
   at net.sf.jni4net.jni.JNI.Init()
   --- End of inner exception stack trace ---
   at net.sf.jni4net.jni.JNI.Init()
   at net.sf.jni4net.jni.JNI.CreateJavaVM(JavaVM& jvm, JNIEnv& env, Boolean attachIfExists, String[] options)
   at net.sf.jni4net.Bridge.CreateJVM()
   at net.sf.jni4net.Bridge.CreateJVM(BridgeSetup setup)
   at net.sf.jni4net.proxygen.model.Repository.LoadClasspath()
   at net.sf.jni4net.proxygen.model.Repository.Register()
   at net.sf.jni4net.proxygen.Program.Work(String[] args)
   at net.sf.jni4net.proxygen.Program.Main(String[] args)
Reply all
Reply to author
Forward
0 new messages