Skip to content

Commit

Permalink
* exewrap 1.6.4
Browse files Browse the repository at this point in the history
JDK/JREのbinフォルダーを java.library.path に含めるようにしました。
1.6.2まではbinフォルダーを java.library.path に含めていましたが、1.6.3 で binフォルダーを java.library.path に含めないように変更していました。
この影響で binフォルダー内の prism_sw.dll など一部のライブラリがロードできず UnsatisfiedLinkError が発生していました。
JDK/JREのbinフォルダーを java.library.path に含めるよう実装を戻したことでこの問題が解消します。

git-svn-id: http://svn.osdn.net/svnroot/exewrap/exewrap/trunk/exewrap@97 d83a06de-854e-4732-85b7-fdf7162022b6
  • Loading branch information
hirukawa_ryo committed Sep 18, 2020
1 parent 1f0493f commit a15403c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/jvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,8 @@ BOOL initialize_path(const wchar_t* relative_classpath, const wchar_t* relative_

GetModuleFileName(NULL, buffer, BUFFER_SIZE);
wcscpy_s(libpath, BUFFER_SIZE, L".;");
wcscat_s(libpath, BUFFER_SIZE, binpath); // binpathもjava.library.pathに含まれれるようにします。
wcscat_s(libpath, BUFFER_SIZE, L";"); // そうしないと prism_sw.dll など一部のDLLが読み込めないようです…。

if(relative_classpath != NULL)
{
Expand Down
4 changes: 2 additions & 2 deletions src/resources/exewrap.rc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
LANGUAGE 0,0

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,6,3,0
FILEVERSION 1,6,4,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS VS_FF_PRERELEASE
FILEOS VOS_NT_WINDOWS32
Expand All @@ -16,7 +16,7 @@ FILETYPE VFT_APP
VALUE "FileDescription", "Native executable java application wrapper.\0"
VALUE "LegalCopyright", "(C) 2005-2020 HIRUKAWA Ryo\0"
VALUE "ProductName", "exewrap\0"
VALUE "ProductVersion", "1.6.3\0"
VALUE "ProductVersion", "1.6.4\0"
VALUE "OriginalFilename", "exewrap.exe\0"
}
}
Expand Down

0 comments on commit a15403c

Please sign in to comment.