cvs commit: hints java.txt

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Mon Jul 8 17:55:29 PDT 2002


timothy     02/07/08 17:55:29

  Modified:    .        java.txt
  Log:
  Updates by author.
  
  Revision  Changes    Path
  1.5       +35 -38    hints/java.txt
  
  Index: java.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/java.txt,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- java.txt	11 Jun 2002 18:19:30 -0000	1.4
  +++ java.txt	9 Jul 2002 00:55:29 -0000	1.5
  @@ -17,9 +17,14 @@
   package used to develop and run applications written in the
   Java programming language.
   
  +This hint describes the process of installing a binary version
  +of the Java Software Development Kit. Should you wish to install
  +from source instead, I encourage you to read the Java From Scratch
  +hint.
  +
   This hint assumes that you are logged in as root. The SDK will
   be installed in the /opt directory. Paths will be appended to
  -your ~/.profile file.
  +your ~/.bash_profile file.
   
   
   DOWNLOAD
  @@ -35,8 +40,8 @@
   DEPENDENCIES
   ============
   
  -You must have libstdc++-libc6.1-1.so.2 installed before you can
  -run the programs in the SDK. There are three installation
  +You must have libstdc++-libc6.1-1.so.2 installed in /usr/lib/ before
  +you may run the programs in the SDK. There are three installation
   options:
   
   A. Create a symbolic link to a similar library
  @@ -52,6 +57,8 @@
   
   	http://www.linuxfromscratch.org/~timothy/misc/libstdc++-libc6.1-1.so.2
   
  +	Thanks go out to conathan for providing this binary library.
  +
   
   INSTALL
   =======
  @@ -68,61 +75,51 @@
   
   	rm j2sdk*.bin
   
  -Login to a user account.
  +Let us rename the directory now.
   
  +	mv j2sdk* j2sdk
   
  -PATHS [1.3.1_03]
  -=====
  +Login to a user account.
   
  -	cat >> ~/.profile << "EOF"
  -	PATH=$PATH:/opt/jdk1.3.1_03/bin
  -	MANPATH=$MANPATH:/opt/jdk1.3.1_03/man/man1
  -	export PATH MANPATH
  -	EOF
  +	su - <USER_NAME>
   
   
  -PATHS [1.4.0]
  +PATHS
   =====
   
  -	cat >> ~/.profile << "EOF"
  -	PATH=$PATH:/opt/j2sdk1.4.0/bin
  -	MANPATH=$MANPATH:/opt/j2sdk1.4.0/man/man1
  -	export PATH MANPATH
  -	EOF
  +Type the following, so that your PATH and MANPATH point to the SDK:
   
  +cat >> ~/.bash_profile << "EOF"
   
  -TEST
  -====
  +PATH=$PATH:/opt/j2sdk/bin
  +MANPATH=$MANPATH:/opt/j2sdk/man/man1
   
  -	cat > Testing.java << "EOF"
  -	public class Testing {
  -	public static void main (String[] args) {
  -	System.out.println("I love Java!");
  -	}
  -	}
  -	EOF
  +export PATH MANPATH
   
  -	javac Testing.java &&
  -	java Testing
  +EOF
  +source ~/.bash_profile
   
   
  -BOTH
  +TEST
   ====
   
  -Both SDKs can be installed on the same machine.
  +To make sure the SDK is working, we write a test program:
   
  -	cat >> ~/.profile << "EOF"
  -	PATH=$PATH:/usr/local/bin/jbin
  -	export PATH
  -	EOF
  +cat > Testing.java << "EOF"
   
  -As root, to switch to 1.3.1_03:
  +public class Testing {
   
  -	ln -sf /opt/jdk1.3.1_03/bin /usr/local/bin/jbin
  +public static void main (String[] args) {
  +System.out.println("I love Java!");
  +}
   
  -As root, to switch to 1.4.0:
  +}
  +EOF
   
  -	ln -sf /opt/j2sdk1.4.0/bin /usr/local/bin/jbin
  +Compile and run Testing.java by typing:
  +
  +	javac Testing.java &&
  +	java Testing
   
   
   LICENSES
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe hints' in the subject header of the message



More information about the hints mailing list