To make it easier to track I created this topic to continue the latest discussion from
http://www.filebot.net/forums/viewtopic.php?f=5&t=1553
Now I tested your portable package.
After I installed jre 8.26 I created a folder Filebot - Test and put your portable package and the Mediainfo.dll inside.
If I run the Filebot.exe, press F5 and run runScript 'fn:sysinfo' I get
FileBot 4.5 (r2600)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
Okt 20, 2014 1:47:58 PM net.filebot.archive.SevenZipLoader requireNativeLibraries
WARNUNG: Failed to preload library: java.lang.UnsatisfiedLinkError: no mingwm10 in java.library.path
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "D:\Portable Applications\Platform\PortableApps\FileBot - Test\fpcalc.exe": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 16 MB Used Memory
OS: Windows Vista (x86)
If i run
java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=%~dp0." "-Duser.home=%~dp0." "-Djava.io.tmpdir=%~dp0temp" "-Djna.library.path=%~dp0" "-Djava.library.path=%~dp0" -Dnet.filebot.AcoustID.fpcalc="%~dp0fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=%~dp0prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot - Test\FileBot.jar" %*
press F5 and run runScript 'fn:sysinfo' I get
FileBot 4.5 (r2600)
JNA Native: 4.0.0
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (win32-x86/mediainfo.dll) not found in resource path ([file:/D:/Portable%20Applications/Platform/PortableApps/FileBot%20-%20Test/FileBot.jar])
Okt 20, 2014 1:52:24 PM net.filebot.archive.SevenZipLoader requireNativeLibraries
WARNUNG: Failed to preload library: java.lang.UnsatisfiedLinkError: no mingwm10 in java.library.path
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "%~dp0fpcalc.exe": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 18 MB Used Memory
OS: Windows Vista (x86)
So it seems to be about the exe. can I configure it in the cmd?
What about the zip part? I didn't find anything for Windows.
Portable package and native libs (F5)
Re: Portable package and native libs (F5)
Do you know what %~dp0 means? I'd start there.
Hint: it only works in cmd scripts, but apparently not in the cmd prompt
Hint: it only works in cmd scripts, but apparently not in the cmd prompt
Re: Portable package and native libs (F5)
Is there another way to do it from the prompt?
Re: Portable package and native libs (F5)
1. Make a script
2. Call it from command prompt
Test:
What does %~dp0 mean?
2. Call it from command prompt
Test:
What does %~dp0 mean?
Re: Portable package and native libs (F5)
I always run it from a script.
I fixed the mediainfo issue. If I run
|java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\CommonFiles\Java_8_25\lib" -Dnet.filebot.AcoustID.fpcalc="%~dp0fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" %*
press F5 and run runScript 'fn:sysinfo' I get
ileBot 4.5 (r2611)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
Okt 24, 2014 9:42:41 AM net.filebot.archive.SevenZipLoader requireNativeLibraries
WARNUNG: Failed to preload library: java.lang.UnsatisfiedLinkError: no mingwm10 in java.library.path
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "%~dp0fpcalc.exe": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 14 MB Used Memory
OS: Windows Vista (x86)
So how can I fix the 7-zip and fpcalc issues?
For z-zip mingwm10 seems to be missing.
I fixed the mediainfo issue. If I run
|java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\CommonFiles\Java_8_25\lib" -Dnet.filebot.AcoustID.fpcalc="%~dp0fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" %*
press F5 and run runScript 'fn:sysinfo' I get
ileBot 4.5 (r2611)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
Okt 24, 2014 9:42:41 AM net.filebot.archive.SevenZipLoader requireNativeLibraries
WARNUNG: Failed to preload library: java.lang.UnsatisfiedLinkError: no mingwm10 in java.library.path
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "%~dp0fpcalc.exe": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 14 MB Used Memory
OS: Windows Vista (x86)
So how can I fix the 7-zip and fpcalc issues?
For z-zip mingwm10 seems to be missing.
Re: Portable package and native libs (F5)
Finally I made it! If I run
java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot\Lib" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\Filebot\lib" -Dnet.filebot.AcoustID.fpcalc="D:\Portable Applications\Platform\PortableApps\FileBot\fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" %*
press F5 and run runScript 'fn:sysinfo' I get
FileBot 4.5 (r2611)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (D:\Portable Applications\Platform\PortableApps\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 18 MB Used Memory
OS: Windows Vista (x86)
If you would have simply provided
7-Zip-JBinding.dll
jnidispatch.dll
mingwm10.dll
fpcalc.exe
in a zip the problem would have been solved much earlier.
I asked you several times how to get them.
Now I had to install Filebot regularly and copy the files.
And now it works.
java -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Djava.net.useSystemProxies=false -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djna.nosys=true -Dapplication.deployment=portable -Dapplication.analytics=true "-Dapplication.dir=D:\Portable Applications\Platform\PortableApps\FileBot" "-Duser.home=D:\Portable Applications\Platform\PortableApps\FileBot" "-Djava.io.tmpdir=D:\Portable Applications\Platform\PortableApps\FileBot\Temp" "-Djna.library.path=D:\Portable Applications\Platform\PortableApps\FileBot\Lib" "-Djava.library.path=D:\Portable Applications\Platform\PortableApps\Filebot\lib" -Dnet.filebot.AcoustID.fpcalc="D:\Portable Applications\Platform\PortableApps\FileBot\fpcalc.exe" -Djava.util.prefs.PreferencesFactory=net.filebot.util.prefs.FilePreferencesFactory "-Dnet.filebot.util.prefs.file=D:\Portable Applications\Platform\PortableApps\FileBot\prefs.properties" -jar "D:\Portable Applications\Platform\PortableApps\FileBot\FileBot.jar" %*
press F5 and run runScript 'fn:sysinfo' I get
FileBot 4.5 (r2611)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (D:\Portable Applications\Platform\PortableApps\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 32-bit Java HotSpot(TM) Client VM
CPU/MEM: 2 Core / 247 MB Max Memory / 18 MB Used Memory
OS: Windows Vista (x86)
If you would have simply provided
7-Zip-JBinding.dll
jnidispatch.dll
mingwm10.dll
fpcalc.exe
in a zip the problem would have been solved much earlier.
I asked you several times how to get them.
Now I had to install Filebot regularly and copy the files.
And now it works.