NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


Installing and Configuring the Java SDK
Topic: Web   Posted:2004-01-24
Printer Friendly: Print

spacerspacer
Grab the sdk from java.com. For us, we are going to install this on Lobstora, which is a GNU/Linux box. Just make the binary executable and run it:

[root@srv-1 opt]# chmod 700 j2*.bin
[root@srv-1 opt]# ./j2sdk-1_4_2_03-linux-i586.bin

We like putting this in /opt with a symlink to j2sdk.

[root@srv-1 opt]# ln -s j2sdk1.4.2_03 j2sdk
[root@srv-1 opt]# ls -l
total 20
lrwxrwxrwx    1 root     root           13 Jan 24 11:03 j2sdk -> j2sdk1.4.2_03
drwxr-xr-x    9 root     root         4096 Jan 24 09:32 j2sdk1.4.2_03
drwx------    2 root     root        16384 Jan 19 13:29 lost+found
[root@srv-1 opt]#

Let's set up the environment variables and the path in /etc/profile:

JAVA_HOME="/opt/j2sdk"
PATH="$PATH:/opt/j2sdk/bin"
export PATH JAVA_HOME USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
[root@srv-1 opt]# source /etc/profile
[root@srv-1 opt]# set
.
.
.
JAVA_HOME=/opt/j2sdk
.
.
.
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/opt/j2sdk/bin
.
.
.
[root@srv-1 opt]# java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
[root@srv-1 opt]# 

Looking good.




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS