Wednesday, January 26, 2011

Enviromental Variables

Setting up Environmental Variables is critical to having the software development kits working properly.  It allows a developer to by in any directory and still have command access to developers tools.

For Windows:
  1. Click Start
  2. Right click my Computer and select Properties
  3. On the left menu of the system properties select "Advanced System Properties"
  4. A new box will load and select the "Advanced" Tab and click the "Environmental Variables" button towards the bottom of this window.
  5. An Environmental Variables window loads up and this is where we enter our new system variables
  6. In the System Variables section click the "New..." button to add a new environmental variable
  7. In the new box window that pops up there are 2 input sections.
  8. For the Variable Name and the Variable Path fields I entered the following
    1. Name:ANT_HOME
      Path: C:\Development\apache-ant-1.8.2;
    2. Name:APPENGINE_HOME
      Path:C:\Development\appengine-java-sdk-1.4.0;
    3. Name:CLASSPATH
      Path:%CLASSPATH%;%JAVA_HOME%\lib;%ANT_HOME%\lib;%GWT_HOME%;%APPENGINE_HOME%\lib;
    4. Name:GWT_HOME
      Path:C:\Development\gwt-2.1.1;
    5. Name: PATH
      Path: %PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%GWT_HOME%;%APPENGINE_HOME%\bin%;
  9. I clicked okay to close the windows and save the variables. 
  10. To test to make sure my variables were working I opened up a command prompt and typed in java -version and the following is what should be displayed:
    C:\Users\open>java -version
    java version "1.6.0_23"
    Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
    Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

Installing GWT, GWT Designer, App Engine

I started out by visiting http://code.google.com/webtoolkit/download.html and scrolling down to the GWK SDK.  I clicked on the  Download GWT SDK link (http://google-web-toolkit.googlecode.com/files/gwt-2.1.1.zip) and Google prompted me to download the gwt.zip file.

1)  After the download was complete I extracted the GWT files into my C:\Development directory

Apache Ant

I visted the Apache Ant website at http://ant.apache.org/ivy/download.cgi and downloaded the zip file apache-ivy-2.2.0-bin.zip from the URL http://www.gtlib.gatech.edu/pub/apache//ant/ivy/2.2.0/apache-ivy-2.2.0-bin.zip .

  1. After I downloaded the .zip file I extracted the items my C:\Development\
  2. I then Added the Apache Ant to my Enviromental Variables

Java ME (Mobile Edition) 3

My Java Mobile Edition 3 installation experience.

To start off I visited the http://www.oracle.com/technetwork/java/javame/downloads/sdk30-jsp-139759.html
and scrolled down to view this tall, gray, and rectangular box.  I verified that my platform I will be installing this on was Windows and the language used by the application is English. 

  1. I clicked "Continue" to start the download of Java ME 3.
  2. I was redirected to another page where Oracle has asked me to register with them and to read the terms and conditions of this product.  I just bypassed this by clicking continue.
  3. I was redirected to the actual download page with the link http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/sun_java_me_sdk-3_0-win.exe?BundledLineItemUUID=uZqJ_hCyRskAAAEtHy5KP8Q1&OrderID=IVGJ_hCybaoAAAEtFC5KP8Q1&ProductID=r21IBe.ofQgAAAEgwpMzLqHu&FileName=/sun_java_me_sdk-3_0-win.exe  I was at school when I downloaded this so the time taken to get this 116 MB file was within seconds.
  4. After the download was complete I ran the installation file.
  5. I was asked to read the terms and conditions again. So I checked the box and proceeded by clicking Next. The installation then began.
  6. The installation gave me the option of which directory I would like to install the application in. I chose C:\Java_ME_platform_SDK_3.0
  7. The installation took about 5 minutes to complete.
  8. I then ran the application to make sure that everything worked and the installation was credible.

Sunday, January 23, 2011

Installing Java SDK 6

In order to develop Java applications I need to install a SDK (software development kit).  These are the steps I took to get this installed and working.

1) I went to the Oracle website to download the Java 6 SDK package.
     http://www.oracle.com/technetwork/java/javase/downloads/index.html
2)  I then clicked the "Download JDK" button under the this specific version of Java:
     Java Standard Edition 6 Update 23
3)  After clicking this button you will be redirected to a page where you must select which platform you will be developing on.  Selected your Operating system, check the I agree box and click OK.  After you click OK you will be redirected to another page instructing you to click a link to continue downloading the appropriate kit based on which platform you selected.
4)  When the download is complete I ran the executable file I downloaded and followed the on screen instructions to prepare my system for proper installation. Depending on the speed of your system the installation should take a few minutes to install.