View unanswered posts | View active topics



Reply to topic  [ 84 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
FD4- Debugger is not starting 
Author Message
Member

Joined: Thu Jun 16, 2011 1:49 pm
Posts: 6
Reply with quote
Hi,

I have latest version of FD4 and latest SDK with AIR 2.7.
Everything is compiling and lanching fine. But my app isn't running in debug mode. Here is but i am getting when i run my application.

---
---
Build succeeded
Done(0)
Debugger startup error: System.TypeInitializationException: The type initializer for 'net.sf.jni4net.jni.JNI' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'jvm.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
at net.sf.jni4net.jni.JNI.Init()
at net.sf.jni4net.jni.JNI..cctor()
--- End of inner exception stack trace ---
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 FlashDebugger.DebuggerManager.Start()
[Capturing traces with FDB]
---
---

What can be the problem?

Thanks,
Vivek.


Thu Jun 16, 2011 1:54 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Are you running Win 64bits?

Try uninstalling all your Java runtimes, reboot, and reinstallin Java runtime (JRE) 32bits version and restart your computer.

Make sure your JAVA_HOME environment var is correctly defined:
http://stackoverflow.com/questions/2619 ... -windows-7


Thu Jun 16, 2011 7:10 pm
Profile WWW
Member

Joined: Thu Jun 16, 2011 1:49 pm
Posts: 6
Reply with quote
Thanks Philippe for replying.

No i am using Win 32bit. XP.

I will try it by uninstalling and reinstalling java runtime.

My FD 3.3.4 version is running perfectly fine with debugger.

Thanks again,
Vivek.


Thu Jun 16, 2011 7:30 pm
Profile
Member

Joined: Thu Jun 16, 2011 1:49 pm
Posts: 6
Reply with quote
I removed existing Java/JRE, installed latest JRE and JDK i.e. 6u26....-i586.exe version of both.

Updated path in for Java_Home, but still error:

Debugger startup error: System.TypeInitializationException: The type initializer for 'net.sf.jni4net.jni.JNI' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'jvm.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at net.sf.jni4net.jni.JNI.Dll.JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs* args)
at net.sf.jni4net.jni.JNI.Init()
at net.sf.jni4net.jni.JNI..cctor()
--- End of inner exception stack trace ---
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 FlashDebugger.DebuggerManager.Start()
[Capturing traces with FDB]

Thanks,
Vivek.


Thu Jun 16, 2011 8:17 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Can you try with this modified FlashDebugger.dll plugin:
http://www.flashdevelop.org/downloads/b ... a-home.zip
(update in your FD installation)


Thu Jun 16, 2011 10:50 pm
Profile WWW
Member

Joined: Thu Jun 16, 2011 1:49 pm
Posts: 6
Reply with quote
Hi Philippe,

Thanks for the update. but still no success again same error. I even installed the FD released yesterday i.e FlashDevelop-4.0.0-R1944.exe but same error.

I know it's my system specific but not sure where and what to look for.

I uninstalled 4.0 for now. Let me know if i can try something else. BTW FD4 is working fine on my home machine and also on my colleague machine as well not on my office machine.

Really appreciate your help.

Thanks,
Vivek.


Fri Jun 17, 2011 12:30 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
I found a few references to this error (Unable to load DLL 'jvm.dll': The specified module could not be found) but nothing very clear about the solution.

It's apparently related to jvm.dll's dependencies and in particular 'msvcr71.dll': http://www.jmodelica.org/293

Do you have 'msvcr71.dll' in your 'Windows\System32' directory?
If not, you can copy it from 'Java\jdk1.6.0_20\jre\bin'.
In the hread they suggest to copy it also in 'Java\jdk1.6.0_20\jre\bin\client' where jvm.dll is actually located.


Finally, if this is a work machine you can just ask for a fresh reinstall of the system (might be the occasion to update to Win7 ;)) - it solved this issue for someone else in this forum.


Fri Jun 17, 2011 1:03 pm
Profile WWW
Member

Joined: Thu Jun 16, 2011 1:49 pm
Posts: 6
Reply with quote
Thanks a lot Phillipe :)

you saved my day and some money for company ;) I think WinXP works great for now with FD4.

Thanks again.
Vivek


Fri Jun 17, 2011 1:22 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
Can you describe the fix?


Fri Jun 17, 2011 1:27 pm
Profile WWW
Member

Joined: Thu Jun 16, 2011 1:49 pm
Posts: 6
Reply with quote
"Do you have 'msvcr71.dll' in your 'Windows\System32' directory?
If not, you can copy it from 'Java\jdk1.6.0_20\jre\bin'."

These 2 steps solved it for me. my jre folder already had the dll. and i think that msvcr71.dll is already use to be there by default in fresh machine but because i have also installed VS2005 on my machine that must have updated my dll to msvcr80.dll(thats my guess not sure of that thing though). so anyway copying msvcr71.dll in system32 solved it for me.

Thanks
Vivek.


Fri Jun 17, 2011 1:32 pm
Profile
Member

Joined: Sat Jun 18, 2011 4:21 pm
Posts: 1
Reply with quote
I have this error also.
"Debugger startup error: System.TypeInitializationException: The type initializer for 'net.sf.jni4net.jni.JNI' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'jvm.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)..."
I use FD4 on office and all ok, but home I see this error for debugger mode.
I use Windows7 x32 in both variants.
FD3.3.4 work normal in both variants also.

Fixed problem:
I copy ...\Program Files\Java\jre6\bin\msvcr71.dll
to ...\Windows\System32
restart computer
and all Ok :-)

Thanks to Philippe!


Sat Jun 18, 2011 4:28 pm
Profile
Member

Joined: Tue Jun 21, 2011 12:41 pm
Posts: 1
Reply with quote
I'd just like to add that I had this error on a fresh install of win7-64bit, and fixed it by copying C:\Program Files (x86)\Java\jre6\bin\msvcr71.dll to C:\Windows\SysWOW64


Tue Jun 21, 2011 12:43 pm
Profile
Member

Joined: Sat Aug 21, 2010 7:34 pm
Posts: 26
Reply with quote
Windows 7 64 bit with Java jdk1.6.0_23

I've tried all of the suggestions listed above but still no debugger.

Code:
Debugger startup error: System.TypeInitializationException: The type initializer for 'net.sf.jni4net.jni.JNI' threw an exception. ---> System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path)
   at System.IO.Path.Combine(String path1, String path2)
   at net.sf.jni4net.jni.JNI.FindJvmDir()
   at net.sf.jni4net.jni.JNI.Init()
   at net.sf.jni4net.jni.JNI..cctor()
   --- End of inner exception stack trace ---
   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 FlashDebugger.DebuggerManager.Start()
[Capturing traces with FDB]


Wed Jul 13, 2011 7:18 pm
Profile
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 12172
Location: London
Reply with quote
unabogie, error says "Illegal characters in path" which means you somewhere the path to Java may be broken.


Wed Jul 13, 2011 8:32 pm
Profile WWW
Member

Joined: Sat Aug 21, 2010 7:34 pm
Posts: 26
Reply with quote
Philippe wrote:
unabogie, error says "Illegal characters in path" which means you somewhere the path to Java may be broken.


Here is my Java home:

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\unabogie>echo %JAVA_HOME%
"C:\Program Files\Java\jdk1.6.0_23"

C:\Users\unabogie>


Which of the characters would be causing the issue?


Wed Jul 13, 2011 8:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 84 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.