View unanswered posts | View active topics


Reply to topic  [ 4 posts ] 
HaXe in a fresh FD install 
Author Message
Member

Joined: Thu May 15, 2008 7:36 pm
Posts: 605
Location: Baltimore, MD
Post HaXe in a fresh FD install
I just snarfed Philippe's "Drawing Canvas" GitHUB project and tried loading it in the latest FD (4.0.4).
First forgot to install HaXe, FD does not like this..
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at HaXeContext.NMEHelper.UpdateProject()
   at HaXeContext.NMEHelper.hxproj_ProjectUpdating()
   at ProjectManager.Projects.Project.UpdateVars()
   at ProjectManager.Actions.ProjectActions.UpdateASCompletion(IMainForm mainForm, Project project)
   at ProjectManager.PluginMain.SetProject(Project project, Boolean stealFocus, Boolean internalOpening)
   at ProjectManager.PluginMain.OpenProject()
   at ProjectManager.PluginMain.<Initialize>b__7(Object , EventArgs )
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


So I downloaded the default HaXe/NME install. Start FD... loads up the project fine.
Try compiling and receive:
Code:
Build succeeded
Done(0)
Debugger startup error: 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.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(Boolean alwaysStart)
[Capturing traces with FDB]
Running process: C:\Motion-Twin\haxe\haxelib.exe run nme run "Z:\Source\HaXe\nme-drawingstage\project.nmml" flash -debug -Dfdb -DSWF_PLAYER="C:\Program Files (x86)\FlashDevelop\Tools\flexlibs\runtimes\player\11.3\win\FlashPlayerDebugger.exe"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Done(1)


So Java 1.6 isn't being found. Starting the troubleshooting process between builds at work; utilizing this thread viewtopic.php?f=6&t=8709&p=40732

_________________
http://tronster.com


Fri Jul 20, 2012 1:51 pm
Profile WWW
Member

Joined: Thu May 15, 2008 7:36 pm
Posts: 605
Location: Baltimore, MD
Post Re: HaXe in a fresh FD install
Added to my system's path:
C:\Program Files (x86)\Java\jre6\bin

Now compiling brings a slightly different error message:
Code:
Building NMEProject
haxelib run nme build Z:\Source\HaXe\nme-drawingstage\project.nmml flash -debug -Dfdb
Build succeeded
Done(0)
Running process: C:\Motion-Twin\haxe\haxelib.exe run nme run "Z:\Source\HaXe\nme-drawingstage\project.nmml" flash -debug -Dfdb -DSWF_PLAYER="C:\Program Files (x86)\FlashDevelop\Tools\flexlibs\runtimes\player\11.3\win\FlashPlayerDebugger.exe"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Done(1)
[No debug Flash player connection request]


So I assume I have to move my FlashPlayerDebugger.exe reference out from the default path because HaXe doesn't handle paths with spaces in them?

_________________
http://tronster.com


Fri Jul 20, 2012 2:29 pm
Profile WWW
Member

Joined: Mon Sep 20, 2010 8:55 am
Posts: 86
Post Re: HaXe in a fresh FD install
Works for me:
Code:
Running process: C:\Motion-Twin\Haxe\haxelib.exe run nme run "C:\dev\phys_puzzle\trunk\Puzzle\application.nmml" flash -debug -Dfdb -DSWF_PLAYER="C:\Program Files (x86)\FlashDevelop\Tools\flexlibs\runtimes\player\11.3\win\FlashPlayerDebugger.exe"

And I don't have Java dir in my %path%.

Any additional info?


Fri Jul 20, 2012 5:45 pm
Profile
Member

Joined: Thu May 15, 2008 7:36 pm
Posts: 605
Location: Baltimore, MD
Post Re: HaXe in a fresh FD install SOLVED
Right, I don't have a Java environment variable, but didn't think I needed it (at least not yet according to the error) as putting the Java bin path in my system path var worked. The issue was that the default directory for the debug Flash player has a space in it.

SOLUTION:
1. Download latest debug player and put it in a directory: c:\FlashPlayers
2. In FD's menu opened: Tools > Program Settings > FlashViewer
3. Set "External Player Path" to "c:\FlashPlayers"

_________________
http://tronster.com


Sat Jul 21, 2012 1:33 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

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