View Single Post
  #319  
Old 04.12.2018, 02:52
tob1337 tob1337 is offline
Modem User
 
Join Date: Nov 2018
Posts: 1
Default unrar 5 with FreeNAS /Freebsd11.2 64-bit- possible solution

Hello all!

Iam running jdownloader in a FreeNAS 11.2 FreeBSD 11.2 jail. Thanks to all those tutorials the installation wasn't an issue. But soon I ran into the problem, that rar5 is not supported. Google redirected me to this thread and without further reading I took the linux files - just to learn again that 2 minutes of reading saves you 2 hours of finding out what others already have.

I followed Jiaz and omega3 instructions as outlined in post 254.

Like omega3 describes in his post 258 I only got the "sevenzipjbinding-FreeBSD-amd64.jar" in my "SevenZipJBinding/" directory. But unlike omega3 my ctest passed all tests.

My question for Jiaz is: In your post 259 you said you can split/extract the files. Can you explain me the steps how I can do that ? Otherwise if thats too complicated I uploaded the file to **External links are only visible to Support Staff**mega.nz and i would appreciate it if you can do that for me

Thanks in advance and good night!


EDIT:
After some googling I found out that jar files can be opened by a standard zip program. But after comparing all given files all I needed to do was rename my file and add the the sevenzipjbinding1509.jar which was the same for linux windows and mac so i guessed it would work with FreeBSD too.


So on a 64 bit system running a FreeNAS 11.2 jail with FreeBSD 11.2 extract the following zip file (containing "sevenzipjbinding1509.jar" and "sevenzipjbinding1509Bsd.jar") into your ./jdownloader/libs folder and restart jdownloader
Code:
mega.nz/#!yWQGWCyD!aFMU8ynrKO5YCa8dlLDjpiCJFK8EYNwQ8fl3SQehrlE
after restarting jdownloader I tested it with downloading following unrar5-file which only contains an empty textfile(<1kb):

Code:
ul.to/kngtjqyf
the extraction was succesful and the log in ./jdownloader/log/..CurrentDate../ExtractionExtension.log.0 showed the following positive output for the unrar process:
Code:
root@jdownloader:/usr/local/jdownloader/logs/1544405797762_Mon, Dec 10, 2018 02.36 +0100 # cat ExtractionExtension.log.0
------------------------Thread: 36:ExtractionExtension.log-----------------------
--ID:36TS:1544405804072-12/10/18 2:36:44 AM -  [org.jdownloader.extensions.extraction.multi.Multi(checkLibraries)] -> Try Lib IDs: [FreeBSD-amd64]
--ID:36TS:1544405804072-12/10/18 2:36:44 AM -  [org.jdownloader.extensions.extraction.multi.Multi(initLibrary)] -> Try Lib ID: FreeBSD-amd64
--ID:36TS:1544405804086-12/10/18 2:36:44 AM -  [org.jdownloader.extensions.extraction.multi.Multi(initLibrary)] -> Try Lib Path: /usr/local/jdownloader/tmp/7zip->true
--ID:36TS:1544405804189-12/10/18 2:36:44 AM -  [org.jdownloader.extensions.extraction.multi.Multi(isAvailable)] -> Supported SevenZipJBinding|Version=15.09-2.01beta|RAR5=true|CPU_ARCH=X86|OS_FAM=BSD|OS=FREEBSD|64Bit_JVM=true|64Bit_ARCH=true
--ID:36TS:1544405804190-12/10/18 2:36:44 AM -  [org.jdownloader.extensions.AbstractExtension(init)] -> Init Duration: 159
------------------------Thread: 397:ExtractionExtension.log-----------------------
--ID:397TS:1544405822527-12/10/18 2:37:02 AM -  [org.jdownloader.extensions.extraction.ExtractionExtension(onNewArchive)] -> Archive:test
Type:RAR_SINGLE
Existing:DownloadLink:/media/Downloads/test/test.rar|Complete:true
Complete:true
--ID:397TS:1544405822527-12/10/18 2:37:02 AM -  [org.jdownloader.extensions.extraction.ExtractionExtension(onNewArchive)] -> Caller:Thread[Download: test.rar_uploaded.to,1,]|Archive:test|Complete|Size:1
--ID:397TS:1544405822529-12/10/18 2:37:02 AM -  [org.jdownloader.extensions.extraction.ExtractionExtension(addToQueue)] -> Archive:test
Type:RAR_SINGLE
Existing:DownloadLink:/media/Downloads/test/test.rar|Complete:true
Complete:true

hope this will help anyone




End of Edit

------------------------------------------------------------------------------
Ctest output:
Code:
root@openjdk:/tmp/SevenZipJBinding # ctest sevenzipjbinding-FreeBSD-amd64.jar
Test project /tmp/SevenZipJBinding
      Start  1: JUnit-common
 1/17 Test  #1: JUnit-common ........................   Passed    0.70 sec
      Start  2: JUnit-common-no-privileged-init
 2/17 Test  #2: JUnit-common-no-privileged-init .....   Passed    0.47 sec
      Start  3: JUnit-init-std-1
 3/17 Test  #3: JUnit-init-std-1 ....................   Passed    0.33 sec
      Start  4: JUnit-init-std-2
 4/17 Test  #4: JUnit-init-std-2 ....................   Passed    0.30 sec
      Start  5: JUnit-init-verify-1
 5/17 Test  #5: JUnit-init-verify-1 .................   Passed    0.36 sec
      Start  6: JUnit-init-verify-2
 6/17 Test  #6: JUnit-init-verify-2 .................   Passed    0.35 sec
      Start  7: JUnit-tools
 7/17 Test  #7: JUnit-tools .........................   Passed    0.95 sec
      Start  8: JUnit-snippets
 8/17 Test  #8: JUnit-snippets ......................   Passed    0.72 sec
      Start  9: JUnit-snippets-no-privileged-init
 9/17 Test  #9: JUnit-snippets-no-privileged-init ...   Passed    0.70 sec
      Start 10: JUnit-encoding-utf-8
10/17 Test #10: JUnit-encoding-utf-8 ................   Passed    0.42 sec
      Start 11: JUnit-encoding-cp1252
11/17 Test #11: JUnit-encoding-cp1252 ...............   Passed    0.43 sec
      Start 12: JUnit-encoding-cp1251
12/17 Test #12: JUnit-encoding-cp1251 ...............   Passed    0.43 sec
      Start 13: JUnit-bug-reports
13/17 Test #13: JUnit-bug-reports ...................   Passed    0.74 sec
      Start 14: JUnit-single-file-extraction
14/17 Test #14: JUnit-single-file-extraction ........   Passed  794.64 sec
      Start 15: JUnit-multiple-files-extraction
15/17 Test #15: JUnit-multiple-files-extraction .....   Passed  435.22 sec
      Start 16: JUnit-compression
16/17 Test #16: JUnit-compression ...................   Passed  858.07 sec
      Start 17: JUnit-badarchive
17/17 Test #17: JUnit-badarchive ....................   Passed    4.86 sec

100% tests passed, 0 tests failed out of 17

Total Test time (real) = 2100.10 sec

Steps to reproduce my outcome:
1)Create FreeBSD 11.2 jail from FreeNAS GUI
2)log into jail
Code:
pkg install
pkg update 
pkg install openjdk8
pkg install cmake
pkg install git
cd /tmp
so my system configuration is:
Code:
#freebsd-version
11.2-RELEASE-p4

#uname -a
FreeBSD openjdk 11.2-STABLE FreeBSD 11.2-STABLE #0 r325575+3a9793238ff(freenas/11.2-stable): Thu Nov 15 13:51:02 EST 2018     root@nemesis.tn.ixsystems.com:/freenas-11.2-releng/freenas/_BE/objs/freenas-11.2-releng/freenas/_BE/os/sys/FreeNAS.amd64  amd64

#java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

#cmake -version
cmake version 3.12.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
to create the library I did the following steps
Code:
#git clone https://github.com/borisbrodski/sevenzipjbinding.git SevenZipJBinding
#cd SevenZipJBinding/
#git checkout migrate-to-15.09-try2
#cmake .
#rm CMakeCache.txt
#cmake . -DJAVA_JDK=/usr/local/openjdk8
#make

Last edited by tob1337; 10.12.2018 at 03:21. Reason: found a solution
Reply With Quote