This is a step by step of what I did to set up a developer environment for my MSc. The reason for bogging this is two fold
- 1 it is a way for me to make notes of what I am doing
- 2 thought it would be nice to share my experience.
WARNING: This is a live step by step of what I am doing. So scroll to the bottom of this blog to find out if I was successful.
Step 1
A clean install of Ubuntu Deskop 9.04.
Update the system
Step 2
lets do the easy things first and install Ubuntu Server and LAMP
Click System --> Administration --> Synaptic Package Manager
This brings up the Synaptic Package Manager
Click Edit --> Mark Packages by Task
put a check mark or tick in Basic Ubuntu Server and LAMP
then click OK
then click Mark
then click Apply
Type a new password for MySQL
Open a browser a type in http://localhost to check that the web server is working.
Step 3
Set up the Sun Java SDK
In the Synaptic Package Manager search for sun-java6-jdk
click on the check box and mark for installation.
I also marked the following for installation
- sun-java6-demo
- sun-java6-doc
- sun-java6-plugin
Click apply then you may have time for make a quick cuppa while it is installing.
Agree to the license terms (Read it if you want to, it is your decision)
A note about the java6-doc pops up during the installation.
Go to http://java.sun.com/javase/downloads
look for java se6 documentation and download it and follow the download instructions and save the file to your desktop.
Open up the terminal and type cd Desktop/
Type the following:
sudo chown root.root jdk-6u10-docs.zip
sudo mv jdk-6u10-docs.zip /tmp
go back to the installation and press return to try again.
The installation should finish and you can click on close.
Step 4
Check the Java being used.
Type java -version and you should get something similar to the following:
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3.0-b02, mixed mode, sharing)
If you have made it this far give yourself a pat patty on the back backy.
You can closed the Synaptic Package Manager now.
Step 5
I will now download and install Glassfish and Eclispe manually because using the Synaptic Package Manager causes an issues. The package I am using can be found at the following link
http://download.java.net/glassfish/eclipse/
make sure you down load the linux package without jdk1.6 because it is already install *duh*
save the file to the desktop.
This is a massive file. I am wondering if this is the best way to do it. There seems to be very little information on how to install this on Ubuntu... mmmmmmmm, decisions decisions decisions.
16 minutes to go, time to chant "Why are we waiting.. Whhyyy are we waaaiting oohhhh why are we waiting... etc etc etc"
Dunno if I will have time to finish the set up tonight. I am off for a pint with the mates soon. *sigh*
I think the installation should be a separate step so here we go
Step 6
Once the the files have downloaded open the terminal and type
cd Desktop
then type
tar -zxvf glassfish-tools-bundle-for-eclipse-nojdk-1.0.tar.gz
That will start unpackaging the files.
Using the GUI:
Go to your desktop and rename the folder glassfish.
Move the glassfish folder to your home folder
Go in to the glassfish folder and double click on eclipse and that should start the application running.
It will ask you for the location of the Java JDK location.
Browse to /usr/lib/jvm/java-6-sun and click ok.
In Eclipse go to the server window and you should see two servers already set up. Right click on Bundled Glassfish v2.1 and choose Start.
The Eclipse server should now be running.
Open up a browser and type in http://localhost:8082/
You should see a page informing you that Glassfish is now running *Wicked* :-)
Stop the server before you go any further by right clicking and choosing stop.
Step 7
Now we'll add eclipse to the menu.
Right click on applications and choose edit menus
Choose the Programming Menu (Or what ever you prefer)
Click the new menu item button
Type in Eclipse for Menu Name
For command click the browse button and go to the directory where you installed eclipse and choose the eclipse file that starts the application (Hope you know what I mean)
Add Eclipse bundled with Glassfish in to the comments.
Click on the icon, click browse, go to the glassfish folder and click open you should see the icon.xpm image. Select the image and click OK.
Close the windows and you should now have the eclipse menu item.
Step 8
Lets install the GWT. I'm impressed how everything is going so far.... give yourself a patty on the backy.
This is fairly straight forward.. I am gonna take a break and hand you over to the following link
http://code.google.com/eclipse/docs/install-eclipse-3.4.html
No point me repeating an excellent user guide.
As the moment the installation is going well. Just need to be patience and hope nothing has crashed :-@
/**
* For some reason every time I restart eclipse it keeps asking me for the location of the JDK... mmmmm... note to self find a way to * stop eclipse asking this question.
*/
Once Eclipse has restarted. Do the following tutorial
http://code.google.com/webtoolkit/tutorials/1.6/create.html
and if the defaults stuff works that well done.
Summary
This is not a tutorial, it is my note of how I set up the developer environment. I do hope you find it useful and I hope someone will use this guide to produce a bona fida tutorial.
Work that needs to be done
Sort out the application start up so it locates the Java JDK automatically.
Sort out how to deploy GWT on Glassfish instead of TomCat
Hope you enjoyed this as much as I did.
So long now folks
Take care and don't forget to share your experience so others may learn.
/**********************************************************************************
* Updated information
*/
There were issues when I tried to run project. A solution was provided from
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9...
As soon as I type the following in the terminal
sudo apt-get install libstdc++5
The default application worked.
NOTE TO SELF find out what the heck libstdc++5 is.
/*********************************************************************************/

Recent comments
3 weeks 4 days ago
3 weeks 5 days ago
5 weeks 3 days ago
9 weeks 3 days ago
24 weeks 5 days ago