How to Install Java Without Admin Privileges
If you do not have Admin Privileges on your work computer and you've tried to install Java so that you can try some Java Programming, you don't have to go to your Administrator for help. If you've tried installing Java the "normal" way--by double-clicking a JRE installer file--you know that Admin Privileges are required. However, all Java needs to run is to know where certain files are located on the computer. This means that if you install the necessary Java files to a USB drive at home, you can bring in the USB drive and use Java without ever getting your Administrator involved.
Things You'll Need
- USB Portable Drive
Insert your portable USB drive into your home computer's USB slot.
On your home computer, navigate to the "Download Java JDK" link in the resources section.
Click the red "Download" button. When asked to log-in, click "Skip this step." Click "Save file" to download the file to your computer.
Double-click the ".exe" file you downloaded to begin the installation wizard for Java SE 6. Click "Accept" to the License Agreement.
On the Custom Setup page, click the small hard-drive buttons next to "Source Code," "Public JRE," and "Java DB" and for each select "Don't install this feature now."
Click the "Change..." button on the bottom right corner, then from the drop down menu, under "Look in:" select your portable usb drive. Click "Create New Folder" button in the in the top right corner (the folder icon), and name the new folder "JDK". Select the JDK folder and click "OK."
Click "Next" and wait while Java installs.
Open Notepad by going to "Start," "Programs," "Accessories" "Notepad."
In Notepad, copy-paste the following two-line batch script:set Path=%~d0\JDK\bin;%PATH%cmd
Click "File," "Save as," navigate to your USB drive root directory, and type "RunMeForJava.bat" as the name of your file and click "Save."
Insert your USB drive into the computer where you do not have Administrator privileges and double-click the ".bat" file in your USB root directory. A Command Prompt window will open. Type "javac" (without the quotes) to see that Java works and is fully installed.