The changes in Oracles Java 1.8 is significant. Earlier compiled versions of Adito (also called OpenVPN-ALS) is no longer valid and needs to be recompiled.
If you want to make Adito work on Java 1.8 or newer, follow the guide or download the SVN-installer with signed applet from here.
Please note that description is for Windows users, but the code-changes in step 5 can be implemented to Linux for correct compile.
|Download the JDK from here:Â http://www.oracle.com/technetwork/java/javase/downloads/index.html|
|(Version tested was Java SE Development Kit 8u45; Windows x86; filename: jdk-8u45-windows-i586.exe)|
|Add your JDK-directory\bin to your PATH-settings. If you are unfamiliar, please read this guide: https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html|
|Typical installation directory: %programfiles%\Java\jdk1.8.0_45|
The JDK will also install the JRE (Java Run time), so a simple test after installation is to run “java.exe -version” in a command-prompt
|The SVN-version of Adito can be downloaded from the sourceforge: http://sourceforge.net/p/openvpn-als/code/HEAD/tarball|
|(If you are having trouble getting the version, try downloading TortoiseSVN: http://tortoisesvn.net/downloads.html
Then use the SVN-link to get the R706 version: svn://svn.code.sf.net/p/openvpn-als/code/adito/trunk )
|Typical installation directory: c:\adito|
|Adito project is setup to use ANT for compilation. Download ANT from here: https://ant.apache.org/bindownload.cgi|
|(Tested version was apache-ant-1.9.4-bin.zip). Add the c:\ant\bin directory to the PATH-variable in system. As earlier done in the JDK installation.|
|Â Typical installation directory: c:\ant|
You can test ANT by typing “ant -version” in the command-prompt. It should state “Apache Ant(TM) version 1.9.4 compiled on April 29 2014”.
|Â In the JDK-directoryÂ %programfiles%\Java\jdk1.8.0_45\lib\ locate the the “tools.jar” file
Copy tools.jar to 2 destinations:
|ANT uses the build.xml files to compile each component. Adito source is old and are unaware of java version later than 1.2. Changes made are compile-parameters that will ensure that java 1.8 is targeted.|
|Find build.xml files in these directories and change target=”1.x” to target=”1.8″:
C:\adito\clientcerts\build.xml, line 88
C:\adito\maverick-crypto\build.xml, line 40
C:\adito\maverick-multiplex\build.xml, line 62
C:\adito\maverick-ssl\build.xml, line 83 and 150
C:\adito\maverick-util\build.xml, line 43
C:\adito\ui\build.xml, line 118
Save all the files and you’re ready to compile.
|Open a command-prompt and go to directory c:\adito, enter command: “ANT -projecthelp”
A list of commands will be shown:
cleanÂ Â Â Â Â Â Â Â Â Â Â Â Â Removes compiled files
compileÂ Â Â Â Â Â Â Â Â Â Â Compile Adito.
consoleÂ Â Â Â Â Â Â Â Â Â Â Starts the Adito server in the foreground display all output to the console
distÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Create an executable, ready to distribute version of Adito
helpÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Displays some help.
installÂ Â Â Â Â Â Â Â Â Â Â Run the Adito installation wizard. The server must not be running.
install-agentÂ Â Â Â Â Install Adito Agent.
install-serviceÂ Â Â Install Adito as a service.
javadocÂ Â Â Â Â Â Â Â Â Â Â Generate javadocs for everything
startÂ Â Â Â Â Â Â Â Â Â Â Â Â Starts the Adito in the background
start-using-javaÂ Â Starts the Adito in the foreground without the OS-dependent wrapper
stopÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Stops the running Adito. Note, this currently does not work on all platforms.
sysinfoÂ Â Â Â Â Â Â Â Â Â Â Display some system information
uninstall-serviceÂ Uninstall Adito service.
|Write then “ant compile” to compile. It should end after a minute or two with:
Total time: 51 seconds
Please ignore the warnings and others messages during compile. It did not cause any problems with my installation.
Messages like “[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release” could potential be failing in the future.
To run the installer and first-time setup type: “ant install”. To run Adito normal just run “ant” in the directory, it is the same as “ant start-using-java”.
Wrapper does not work as expected, but my updated installer fixes that.
Please note that a Adito for Java 1.8-installer version is on its way, just waiting for a updated cert.