My Java and Eclipse web reference

       My reference guide to Java programming and Eclipse environment setup.

Edited by Lim Siong Boon, last dated 16-Feb-2010.

email:    contact->email_siongboon  

website: http://www.siongboon.com


Topic Discussion Overview

  1. Setup Eclipse & Java
  2. Java Coding Example
  3. Java Webservice & Flex 3
  4. Java Servlet
  5. Apache Ant
  6. eXist (XML database)
  7. JUnit
  8. Java programming on Andriod


 

Introduction










The main concept in writing Java codes, is the understanding of object oriented programming (OOP). Java being a 100% OO programming language is quite fun to designed your software with. As simple as it seems to be, in fact took me years to learn what OO really means. It has been years, since 1997 since I first pick up the book on object oriented, and I am still learning as of today. I would think OO rather an art of designing software. There is no right or wrong, but a good OO designer is the one who can make a difficult software easy and fast to program. OO is really about memory management.

Among all the electronics hardware web pages that I have written, I find writing article about Java is rather difficult. I need to categorised a topic for section, else I may end up writing messy or end up writing the whole Java text book. Most Java program I wrote is rather low level, hardware oriented. Writing Java for low level application posed quite a number of challenges. Why? Java is not design for low level access. Any direct access to I/O is generally not available to Java. This is for the reason of security and compatibility issue, operating across different operating system platform. Here I will present some of the problem I face doing Java with the mindset of a C++ programmer. For now, this page will be more of my own frequent used Java references.

I hope to make this page useful to new Java programmer like I am.



Download you need for your developments


eclipse.gifeclipse.png

Java IDE, Eclipse, http://www.eclipse.org/downloads/


java-logo.gifsun-microsystems.gif

Java SDK, http://java.sun.com/javase/downloads








1. Setup Eclipse & Java

- Setting up Eclipse and Java environment for development.


2. Java Coding Example

- Java language reference & commonly used source code.


3. Java Webservice & Flex 3

- Flex 3, Java webservice project step by step.


4. Java Servlet

- Learn Java Servlet step by step


5. Apache Ant

- Manage your java project with Apache Ant


6. eXist (XML database)

- Write a database using XML structure


7. JUnit

- http://www3.ntu.edu.sg/home/ehchua/programming/java/JUnit_Ant.html (Very good NTU website on Java, by Chua Hock Chuan)

JUnit java code testing (by Chua Hock Chuan).pdf

8. Java programming on Andriod

- http://www3.ntu.edu.sg/home/ehchua/programming/android/Android_HowTo.html (Very good NTU website on Andriod, by Chua Hock Chuan)

How to Install Android SDK and Get Started (by Chua Hock Chuan).pdf


Useful Tools


java2html

Convert your java source code to HTML, RTF, TeX and XHTML with syntax highlighting.
1) open up the java2html_50.zip file ->.
2) double click on java2html.jar to execute the application program.
3) input files or source code text to convert them into html codes.

references:
http://www.java2html.de/

example: Input text source code
public class Example
{
    public void Example()
    {
    }

    public static void main(String args[])
    {
    }
}

example: Output results in HTML format
public class Example
{
  public void Example()
  {
  }

  public static void main(String args[])
  {
  }
}











Keyword: Java, Eclipse, library, configuration, shortcut