diff --git a/build/windows/export/Makefile b/build/windows/export/Makefile index 0273e5b1d..6c1dce21c 100755 --- a/build/windows/export/Makefile +++ b/build/windows/export/Makefile @@ -9,8 +9,8 @@ AOBJS = launcher.o application.exe: $(AOBJS) $(LINK.cc) $(CXXFLAGS) -DEXPORT -o $@ $(AOBJS) - cp application.exe ../work/lib/export/ - cp application.exe ../../shared/lib/export/ + cp application.exe ../work/modes/java/application/template.exe + cp application.exe ../../../java/application/template.exe $(POBJS): Makefile diff --git a/build/windows/export/application.exe b/build/windows/export/application.exe index ea70a3a2d..1683ccf1a 100755 Binary files a/build/windows/export/application.exe and b/build/windows/export/application.exe differ diff --git a/build/windows/export/launcher.cpp b/build/windows/export/launcher.cpp index f3748c415..85cbed035 100644 --- a/build/windows/export/launcher.cpp +++ b/build/windows/export/launcher.cpp @@ -282,9 +282,9 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) strcat(outgoing_cmd_line, " "); // for 2.0a2, add the 'lib' folder to the java.library.path - strcat(outgoing_cmd_line, "-Djava.library.path="); + strcat(outgoing_cmd_line, "\"-Djava.library.path="); strcat(outgoing_cmd_line, exe_directory); - strcat(outgoing_cmd_line, "\\lib "); + strcat(outgoing_cmd_line, "\\lib\" "); // add the name of the class to execute and a space before the next arg strcat(outgoing_cmd_line, java_main_class); @@ -310,6 +310,8 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) SHELLEXECUTEINFO ShExecInfo; + //MessageBox(NULL, executable, outgoing_cmd_line, MB_OK); + // set up the execution info ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = 0; @@ -328,7 +330,6 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) } if (reinterpret_cast(ShExecInfo.hInstApp) <= 32) { - // some type of error occurred switch (reinterpret_cast(ShExecInfo.hInstApp)) { case ERROR_FILE_NOT_FOUND: diff --git a/java/application/template.exe b/java/application/template.exe index ea70a3a2d..1683ccf1a 100755 Binary files a/java/application/template.exe and b/java/application/template.exe differ