back       next

Java

Importing existing SSL key and certificate for tomcat

  1. Convert key and cert to a single pkcs12 format.

    openssl pkcs12 -export -inkey <pathto>/key.txt -in <pathto>/cert.txt -out cert.pkcs12

  2. Remove existing tomcat aliased PrivateKeyEntry from cacerts.

    keytool -delete -alias tomcat -keystore <pathto>/cacerts

  3. Use java-1.6 keytools to import PKCS12 keystoretype into existing cacerts keystore file.

    keytool -importkeystore -destkeystore cacerts -srckeystore cert.pkcs12 -srcstoretype PKCS12

  4. Note the alias of the newly imported PrivateKeyEntry, which would normally be 1.

    keytool -list -keystore <pathto>/cacerts | grep PrivateKeyEntry

  5. Change the alias to tomcat.

    keytool -changealias -alias 1 -destalias tomcat -keystore <pathto>/cacerts

Lomboz Eclipse on Linux -- Fedora Core 5

Lomboz is an open source and free J2EE development environment built on the Eclipse open source platform and the Web Tools Platform (WTP) projects.

  1. Download and install the latest java sdk.
    # cd /usr/local
    # sh /path/to/jdk-1_5_0_07-linux-i586.bin
    # ln -s /usr/local/jdk-1_5_0_07 /usr/local/java
    # ln -s /usr/local/java/bin/java /usr/bin/java
    # ln -s /usr/local/java/bin/javac /usr/bin/javac
    
  2. Download and install the Eclipse SDK:

    $ wget http://download.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-SDK-3.1.2-linux-gtk.tar.gz
    # tar -C /opt -xvzf eclipse-SDK-3.1.2-linux-gtk.tar.gz
    # chown -R root:root /opt/eclipse
    
  3. Download and install Lomboz and prerequisites all in one package:

    $ wget http://download.forge.objectweb.org/lomboz/lomboz-wtp-emf-gef-jem-3.1.2.zip
    # cd /opt
    # unzip /path/to/lomboz-wtp-emf-gef-jem-3.1.2.zip
    

    Note: Say "yes" to any prompt to replace existing file while unzipping.

  4. Start lomboz eclipse:
    $ /opt/eclipse/eclipse
    

Learning Java using Web Resources...

Below are some of the excellent web resources I have utilized to get me started on Java. Hope this helps others too.

  1. MITs Open Courseware: 1.00 Introduction to Computers and Engineering Problem Solving, Fall 2002
  2. Sofia Project: Introduction to Java Programming
  3. Bruce Eckels Free eBook from MindView.net: Thinking in Java, 3rd Edition

OpenSource Tomcat Book

Tomcat is the reference implementation of the Java Server Pages(JSP) and Java Servlet specifications. This means it is the most standards compliant Java server available.

Despite Tomcat's popularity, it suffers from a common shortcoming among open source projects: lack of complete documentation. There is documentation distributed with Tomcat mirrored at jakarta.apache.org. However, there is also an open source effort to write a Tomcat book at tomcatbook.sourceforge.net

Java Search Applet - HouseSpider !!

HouseSpider is an Java applet that adds indexing and search capability to your web site. It can search by two methods, by spidering through your site or by searching a cached index file. Spider-searching is slow, but very easy to set up and requires no maintenance. Cache-searching requires only a little more attention to set-up and is very fast, sometimes even faster than server-hosted cgi programs. HouseSpider also supports compression (in zip-format) of the index file. HouseSpider has 100% support for i18n (internationalization). It is already translated to several languages. And best of all - it is free!

Object Oriented Concepts

Object Oriented Concepts: The basic building blocks.

Syndicate content