AlpineWeb Home
Search: For:   ~ Advanced Search  

  Support Home     Documentation     Knowledgebase     Help Desk     Blog 

Hosting > Virtual Private Servers > FreeBSD VPS > Administration > Advanced > Java > Saturday, May 17, 2008

Java


Java is a programming language developed by Sun Microsystems which offers developers the ability to write platform-independent programs. One of the biggest advantages to the platform independent approach to programming is that programs can run as applets in a client's browser, rather than having to run on the server.

Java1 is available as a default program on your VPS2 and can be found in the /usr/local/bin directory on your server.

Installing Java2

Due to the nature of the Java2 license, there are several steps that you must go through in order to install Java on your VPS2.
  1. Dowload the J2SDK version 1.3.1 from http://www.sun.com/software/java2/download.html. You will be required to register with Sun before downloading the J2SDK. Once you have downloaded the file, save it on your VPS2 in the /var/distfiles/ directory (you may need to make the directory first).
  2. Download the Linux JDK from http://javadl.sun.com/webapps/download/Display?BundleID=7163 and copy it into the /var/distfiles/ directory of your VPS2
  3. Download the BSD patch for the JSDK from http://www.eyesbeyond.com/freebsddom/java/jdk13.html and install it in the /var/distfiles/ directory of your VPS2.
  4. Once both the files have been placed in the /var/distfiles directory, install java by running the following commands as root from your VPS2 shell prompt.
    # cd /ports/java/jdk13
    # make
    It will take several minutes for make to build and install Java and all the dependencies.
In order for your Java programs to find the Java compiler, you will need to indicate the full path to java in the program, or add the path to your shell's PATH.


Technical Support
° Getting Started Guides
  FreeBSD
° Basic Hosting Help
° Signature Hosting Help
° VPS v1 Help
° VPS v2/3 Help
° MPS v2/3 Help
  Linux
° VPS v3 Help
° MPS v3 Help
  SaaS
° Sugar CRM
  DNS
° Domain Name Service
° Domain Registration
° Help Desk
° Knowledgebase
° Support Policies
° Disclaimer

° AlpineWeb Home
° Compare Hosting Plans
° Network Topology

° Rates & Fees
° Order Center




  Home | Site Map | Customer Backroom Copyright  ©  1997-2008  AlpineWeb Design