--- Welcome to 7-Zip-JBinding README file ---
7-Zip-JBinding is a free cross-platform java binding of 7-Zip free compress/decompress library (http://www.7-zip.org/, http://p7zip.sourceforge.net/)
License Info
GNU LGPL information
License notes
Documentation
Version number guide lines
Compile 6.1 Compile on Linux 6.2 Compile on Windows
Developer notes 7.1 Applying new 7-Zip release
7-Zip-JBinding and 7-Zip/p7zip binaries are licensed under GNU LGPL. For more information about 7-Zip source code licenses please see 7-Zip read me file. For more information about p7zip source code please see p7zip read me file.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
You can support development of 7-Zip by registering.
7-Zip/p7zip/7-Zip-JBinding is free software distributed under the GNU LGPL. If you need license with other conditions, write to http://www.7-zip.org/support.html
The documentation provided in multiple ways:
ReleaseNotes.txt Summary of the included features. Found in each distribution and online (http://sevenzipjbind.sourceforge.net/)
Small introduction + collection of code snippets Online: http://sevenzipjbind.sourceforge.net/first_steps.html Also a copy of the archived web page is included in each distribution (website.zip)
JavaDoc Provided as a seperate archive within each distribution (javadoc.zip) Also JavaDoc is included in both archived web page within the distribution (website.zip) and online
The scheme for the 7-Zip-JBinding version numbers is:
<7-Zip/p7zip version> - <7-Zip-JBinding major version>.<7-Zip-JBinding minor version><release stage><impl. stage>
7-Zip/p7zip version - version of the underlying 7-Zip and p7zip libraries.
7-Zip-JBinding major version - major version of 7-Zip-JBinding base on the specified 7-Zip/p7zip version, beginning from 1 7-Zip-JBinding minor version - major version of 7-Zip-JBinding base on the specified 7-Zip/p7zip version, beginning from 0
release stage:
impl stage: (implementation stage) Optional. Information about implemented and not implemented features.
Examples: 4.65-1.0alpha - Alpha release of 7-Zip-JBinding version 1.0 based on 7-Zip/p7zip version 4.65 4.66-1.01rc - Release candidate of 7-Zip-JBinding version 1.1 based on 7-Zip/p7zip version 4.66 4.66-1.01beta - Release candidate of 7-Zip-JBinding version 1.1 based on 7-Zip/p7zip version 4.66 4.66-2.3-extr-only - Stable release of 7-Zip-JBinding version 2.3 based on 7-Zip/p7zip version 4.66 without compression features. 4.66-2.3 - Stable release of 7-Zip-JBinding version 2.3 based on 7-Zip/p7zip version 4.66
Please note, you will need a source code distribution to compile 7-Zip-JBinding.
Hint: for more examples how to compile 7-Zip-JBinding see "
6.1 Compile on Linux
a) Download source package from http://sourceforge.net/projects/sevenzipjbind/files/
and extract it into some
Optionally you can checkout a master (current development version) from GIT repository $ git clone git://sevenzipjbind.git.sourceforge.net/gitroot/sevenzipjbind/sevenzipjbind SevenZipJBinding or $ git clone https://github.com/borisbrodski/sevenzipjbinding.git SevenZipJBinding
$ cd SevenZipJBinding
$ git checkout Release-4.65-1.02rc-extr-only
b) You will need the CMake (2.6 or higher) to configure 7-Zip-JBinding for your system. You can check the version of your CMake by typing: $ cmake --version
If you don't have cmake installed or cmake version isn't sufficient you can download and install CMake from official web site: http://www.cmake.org/
On Debian or Ubuntu Linux you can install cmake by typing $ sudo apt-get install cmake
c) The next step is to run CMake. Both in-source and out-of-source methods are supported. Here is example of in-source build: $ cmake .
Where
On some Linux distributions you will need to set JAVA_JDK cmake option to your Java JDK 1.5 or higher. You can use a GUI CMake
tool 'cmake-gui', edit 'CMakeCache.txt' file with your favorite text editor or just delete 'CMakeCache.txt' file
and restart CMake with a -DJAVA_JDK parameter:
$ cmake . -DJAVA_JDK=
If everything goes right, you will get an overview of chosen tools and build options.
d) Now type to compile 7-Zip-JBinding $ make
e) After make succeeds either run tests by typing $ ctest or $ ctest -D Experimental to submit test results to the dashboard (http://my.cdash.org/index.php?project=7-Zip-JBinding)
RUNTIME_JAVA_OPTS environment variable passes options to the test java process.
Run tests in Verbose-Mode:
$ RUNTIME_JAVA_OPTS="-DTEST_TRACE=1" ctest
Run tests in specified profile
$ RUNTIME_JAVA_OPTS="-DTEST_PROFILE=MINIMAL" ctest
For example, run tests on armel 256MB RAM architecture:
$ RUNTIME_JAVA_OPTS="-DTEST_ON_LOW_MEMORY=1" ctest
To directly see the standard output of the running tests, use
$ RUNTIME_JAVA_OPTS=-DTEST_TRACE=true ctest -VV
To Run specified test first list all available tests with
$ ctest -N
then specify a range of tests to execute. The following will execute tests #2, #3, #4 and #5
$ ctest -I 2,5
f) Build a binary package by typing $ make package
g) Running tests on a machine with low memory (like 256M on ARM armel):
6.2 Compile on Windows Both MinGW and Cygwin environments can be used to compile 7-Zip-JBinding. Using MinGW to compile 7-Zip-JBinding is recommended and is much easier. The steps are:
a) Download and install MinGW from the official web site: http://www.mingw.org/
b) Download and install CMake from the official web site: http://www.cmake.org/
c) Download and extract 7-Zip-Binding source package from http://sourceforge.net/projects/sevenzipjbind/files/
d) Open cmd console, go into the directory with extracted 7-Zip-Binding source and type
D:...> cmake -G"MinGW Makefiles" .
e) Type
D:...> mingw32-make.exe
f) Type 'ctest' to run tests or 'mingw32-make.exe package' to build a binary package
6.3 Compile with DockCross
DockCross - cross compiling toolchains in Docker images: https://github.com/dockcross/dockcross
DockCross allows easy cross-platform compilation for different Linux/Windows architectures, line Linux ARMv5 (armel), ARMv5 (armhf), ... To compile 7-Zip-JBinding on Linux with DockCross:
a) Install DockCross according to installation instructions on the home page (https://github.com/dockcross/dockcross)
b) Check out or copy 7-Zip-JBinding source code to your build directory
$ git clone https://github.com/borisbrodski/sevenzipjbinding.git SevenZipJBinding
c) Copy JDK to your build directory to make it visible to the container.
$ cp -r
If you have any troubles with 7-Zip-JBinding please, ask for help. Use forum or issue tracker on sourceforge: Forum: http://sourceforge.net/forum/?group_id=210915 Tracker: http://sourceforge.net/tracker/?group_id=210915
7 Developer notes
7.1 Binding new 7-Zip release
TODO describe this
Have fun!