Saturday, October 20, 2007

Set up Java Development Environment on Ubuntu Linux

System Requirements:
  • Ubuntu 8.04
  • NetBeans IDE 6.1
  • GlassFish V2 UR2
Install JDK on Ubuntu Linux
  1. Download Java SE 6 Documentation(jdk-6-doc.zip) from http://java.sun.com/javase/downloads/index.jsp
  2. Copy the file jdk-6-doc.zip to /tmp
  3. Open the "Synaptic Package Manager".
  4. Install the sun-java6-jdk, sun-java6-source, sun-java6-doc and sun-java6-demo packages.
  5. You can now delete jdk-6-doc.zip, if you wish.
Install NetBeans and GlassFish
  1. Download NetBeans IDE 6.1 All Bundles edition (include Base IDE, Java SE, Web & Java EE, Mobility, UML, SOA, Ruby, C/C++, GlassFish V2 UR2 and Apache Tom) from www.netbeans.org
  2. Run ./netbeans-6.1-ml-linux.sh to start NetBeans installer wizard.
  3. Click the "Customize" button on the first screen of the installer wizard and check the Apache Tomcat 6.0.16.
  4. Install the NetBeans IDE to: /usr/local/netbeans-6.1
    JDK for the NetBeans IDE: /usr/lib/jvm/java-6-sun
  5. GlassFish V2 UR2 Installation
    Install GlassFish to: /usr/local/glassfish-v2ur2
    JDK for GlassFish application server: /usr/lib/jvm/java-6-sun
    Admin Username: admin
    Admin Password: adminadmin
    HTTP Port: 8080
    HTTPS Port: 8181
    Admin Port: 4848
  6. Install Apache Tomcat to: /usr/local/apache-tomcat-6.0.16
  7. Finish
Uninstall NetBeans and GlassFish
  1. Shut down the IDE.
  2. In the IDE installation directory, run the uninstall.sh file.
  3. To uninstall GlassFish/Tomcat together with the IDE, at the Summary page make sure that the correct versions are listed and check the appropriate checkboxes.
  4. At the Summary page, click Uninstall.
  5. After uninstallation completes, click Finish.
Start JavaDB
  1. NetBeans IDE > Services > Databases > Java DB
  2. Right-click > Start Server
References

No comments: