I'm currently working in a controlled environment where I don't have administrator rights. I am looking for some way to install the Java Development Kit (JDK) on this machine anyway.
Is this possible? If so, how?
I'm currently working in a controlled environment where I don't have administrator rights. I am looking for some way to install the Java Development Kit (JDK) on this machine anyway.
Is this possible? If so, how?
You can install it in a per-user location, and place the path to JDK in the Path environment variable. You could use a setup authoring tool like Advanced Installer or InstallShield, of free tools like WiX or NSIS.
That should make it accessible to other apps searching for the JDK tools. Not the best way, but can't see any other choice in lack of admin privileges.
I know this is a late answer, but here goes.
Alex Kasko maintains unofficial OpenJDK 7 installers for Windows, Linux, and Mac OS X. You can download them here.
He writes:
With default settings installers do not require administrator privileges.
Note that you can no longer get security updates for the JRE 7 unless you pay Oracle for a support contract. Even if you use OpenJDK 7, you should probably not use the JRE 7: it's rather old. You should probably always use the newest JRE instead, for security reasons.
I don't know whether or not Alex has built any unofficial OpenJDK 8 builds or not. But GitHub user "codespotx" definitely has. Please see here.
Maybe you shouldn't install any of the software I've linked to, after all. Please see this link for more details.
Maybe not so good idea, but you can try to download Processing, it is a Java covered programming language as it contains a portable version of Java JDK. You can erase everything except Java an use it.
You can download the JDK and extract it. You will find a tools.zip
file that you need to extract in a folder under the user path. Then you have to locate all the .pack
files (they are in \lib
and \jre\lib
folders) and unpack them in the same folders with the unpack200
command, available itself in the \jre\bin
folder.
I created a script to do this that just asks you the folder where you unzipped tools.zip
and then it executes all the necessary commands.
Here you can find the whole procedure and the script:
echo off
REM Author: Molinari Davis - www.davismol.net
REM Version: 0.1
REM Date: 29/08/2014
if "%1"=="/processFile" goto processFile
SET /P commandPath=Insert the jdk folder path:
SET commandName=\jre\bin\unpack200.exe
FORFILES /p %commandPath% /s /m *.pack /c "cmd /c call "%~f0" /processFile @path"
goto :EOF
:processFile
SET outputName=%2
SET outputName=%outputName:pack=jar%
SET fullCommand=%commandPath%%commandName% %2 %outputName%
REM echo %fullCommand%
%fullCommand%
if %ERRORLEVEL% GEQ 1 (
echo ERROR in extraction of file: %outputName%
) else (
echo Extracted file: %outputName%
)
tar xzvf file.tar.gz
any other tar extractor will also workNow extracted JDK folder will be created in same folder.