Jumat, 26 Agustus 2011

Restore Glassfish Server 3 in Netbeans 6.9.1 on Ubuntu 10.04

When I made a web application with Netbeans yesterday, I've got a little problem when start the server. For the information, I use Netbeans 6.9.1, and Glassfish server 3 bundled with it. The problem I faced that the port 8080 was already use by other program, so I must change the port to start the server. I follow the instruction from this,but the server was gone. And the project had a warning of resolve server problem.
From my analisys, I must add a new server to Netbeans, especially for Glassfish server. When I add the Glassfish Server 3, and search for the installation path directory, there was a warning "glassfish does not have a usable default domain". But I checked in the directory, there was a domain. In my opinion, may be the permission problem. So, I add the permission to the glassfish installation directory where located in /usr/local/glassfish-3.0.1 with command
$ sudo chmod -R 777 /usr/local/glassfish-3.0.1/
And I add server again, the problem was solved.

Sabtu, 20 Agustus 2011

A little Documentation from My Experience Developing Android on Devkit8000 (part 1)

This is my little documentation from my experience developing android in devkit8000. Actually, I focuss on developing application for Android with Android SDK and Eclipse in Ubuntu 10.04.
So, I just need an Eclipse IDE, JDK 5 or 6, and android SDK, yup, that's all tools for developing Android in my case. Ok lets start, for the first time I'll install JDK 6 in my PC. These are the steps:
1. Open Terminal
2. Edit /etc/apt/sources.list with your favorite editor. In example:
$ sudo gedit /etc/apt/sources.list
And then delete the '#' in front of the line below:
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
3. Update repository
$ sudo apt-get update
4. Installing sun java
$ sudo apt-get install sun-java6-jdk
5. For testing your java installation you can run this command:
$ java -version

This is the end of part 1, and for the next part I'll write how to install Android SDK and make emulator for Android.

Sabtu, 13 Agustus 2011

Translate Indonesian-English for Mobile Application

This is a little mobile application with J2ME code to translate from Indonesian to English. I use google translate API to translate the language. Here is the link for the API Google Translate API JavaME.
The Application is quite simple. And this is the capture of application
Tampilan Awal
Input Bahasa Indonesia
Output Bahasa Inggris

We can modify this to translate to different language. We can add option to this application to setting the language.
This is the jar file
TranslateIndo-Eng
If you want the source, you can contact me at nangdul56@gmail.com or ym: nang_dul@yahoo.com.