pavement

Java

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (making it purty)
Line 8: Line 8:
  
 
You will need:
 
You will need:
# about 2 gigs free disk space. Check that you have this by running [[df]]
+
1. about 2 gigs free disk space. Check that you have this by running [[df]]
# to update your ports tree -- see [[cvsup]] and [[Updating_the_ports_tree]]
+
2. to update your ports tree -- see [[cvsup]] and [[Updating_the_ports_tree]]
# to download the following files:
+
3 to download the following files:
  bsd-jdk14-patches-6.tar.gz from <a href="http://www.eyesbeyond.com/freebsddom/java/JDK14SCSLConfirm.html>Eyesbeyond.com</a>
+
  bsd-jdk14-patches-6.tar.gz  
  j2re-1_4_2_06-linux-i586.bin from <a href="http://java.sun.com/j2se/1.4.2/download.html">Sun's j2se JRE page</a>
+
    from <a href="http://www.eyesbeyond.com/freebsddom/java/JDK14SCSLConfirm.html>Eyesbeyond.com</a>
  j2sdk-1_4_2-bin-scsl.zip from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
+
  j2re-1_4_2_06-linux-i586.bin  
  j2sdk-1_4_2-mozilla_headers-unix.zip from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
+
    from <a href="http://java.sun.com/j2se/1.4.2/download.html">Sun's j2se JRE page</a>
  j2sdk-1_4_2-src-scsl.zip from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
+
  j2sdk-1_4_2-bin-scsl.zip  
  j2sdk-1_4_2_06-linux-i586.bin from <a href="http://java.sun.com/j2se/1.4.2/download.html">Sun's j2se JDK page</a>
+
    from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
# to enable linux compatibility -- you can do this via [[sysinstall]]  
+
  j2sdk-1_4_2-mozilla_headers-unix.zip  
# add the following line to your [[/etc/fstab]]:
+
    from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
 +
  j2sdk-1_4_2-src-scsl.zip  
 +
    from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
 +
  j2sdk-1_4_2_06-linux-i586.bin  
 +
    from <a href="http://java.sun.com/j2se/1.4.2/download.html">Sun's j2se JDK page</a>
 +
4. to enable linux compatibility -- you can do this via [[sysinstall]]  
 +
5. add the following line to your [[/etc/fstab]]:
 
  linprocfs  /compat/linux/proc  linprocfs  rw  0  0
 
  linprocfs  /compat/linux/proc  linprocfs  rw  0  0
# to run [[linprocfs]] -- you may need to do this:
+
6. to run [[linprocfs]] -- you may need to do this:
 
  kldload linprocfs
 
  kldload linprocfs
 
  mount /compat/linux/proc
 
  mount /compat/linux/proc
# place the files you downloaded in the third step in /usr/ports/distfiles
+
7. place the files you downloaded in the third step in /usr/ports/distfiles
# go into the jdk14 dir:
+
8. go into the jdk14 dir:
 
  samizdata# cd /usr/ports/java/jdk14
 
  samizdata# cd /usr/ports/java/jdk14
# and install it:
+
9. and install it:
 
  samizdata# make install
 
  samizdata# make install
  

Revision as of 21:51, 25 December 2004

Installing Java 1.4.2 SDK, the quick and dirty way.

NOTE THAT THERE ARE LICENSING ISSUES WITH JAVA TECHNOLOGIES FROM SUN.COM AND FreeBSD -- IT IS YOUR RESPONSIBILITY TO RECONSILE THESE AS THEY PERTAIN TO YOUR USE OF JAVA

Installing Java 1.4.2 SDK, the quick and dirty way.

NOTE THAT THERE ARE LICENSING ISSUES WITH JAVA TECHNOLOGIES FROM SUN.COM AND FreeBSD -- IT IS YOUR RESPONSIBILITY TO RECONSILE THESE AS THEY PERTAIN TO YOUR USE OF JAVA

You will need: 1. about 2 gigs free disk space. Check that you have this by running df 2. to update your ports tree -- see cvsup and Updating_the_ports_tree 3 to download the following files:

bsd-jdk14-patches-6.tar.gz 
   from <a href="http://www.eyesbeyond.com/freebsddom/java/JDK14SCSLConfirm.html>Eyesbeyond.com</a>
j2re-1_4_2_06-linux-i586.bin 
   from <a href="http://java.sun.com/j2se/1.4.2/download.html">Sun's j2se JRE page</a>
j2sdk-1_4_2-bin-scsl.zip 
   from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
j2sdk-1_4_2-mozilla_headers-unix.zip 
   from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
j2sdk-1_4_2-src-scsl.zip 
   from <a href="http://www.sun.com/software/communitysource/j2se/java2/download.html">This page at sun.com</a>
j2sdk-1_4_2_06-linux-i586.bin 
   from <a href="http://java.sun.com/j2se/1.4.2/download.html">Sun's j2se JDK page</a>

4. to enable linux compatibility -- you can do this via sysinstall 5. add the following line to your /etc/fstab:

linprocfs   /compat/linux/proc   linprocfs   rw   0  0

6. to run linprocfs -- you may need to do this:

kldload linprocfs
mount /compat/linux/proc

7. place the files you downloaded in the third step in /usr/ports/distfiles 8. go into the jdk14 dir:

samizdata# cd /usr/ports/java/jdk14

9. and install it:

samizdata# make install


See http://taosecurity.blogspot.com/2004/11/installing-java-on-freebsd-in-january.html for a similar method of doing this.

Personal tools