Saturday, March 13, 2010

Building GUI applications

There are various open source plugins available for developing GUI application. Here I am consider about Eclipse IDE. The easiest way to develop GUI is to use the Visual Editor, I will recommend that it is easy to use the Visual Editor plug-in with Eclipse 3.3 Europa.

More on RMI

I am writing this post the usage of IntelliJ IDEA users, who need to run RMI application using the IDE.
For the IntelliJ IDEA user-
First go to the settings-> compiler -> rmi compiler -> enable it

Then you have to set the VM parameters (run config) for the class that

need to compile and run as a RMI application. Following is how to do it.

c: - indicate the disk drive where your project located
out - indicate the out folder of your project

Folliwing code description shows how to run RMI registry from the source code. Before all the RMI logic start initialize this code and you will not need to run the rmi registry manually in your computer.

Process rmi = null;
rmi = Runtime.getRuntime().exec("rmiregistry");
catch (IOException ex){
//exception handling logic here
catch (InterruptedException exc){
//exception handling logic here

Wednesday, February 17, 2010

For Eclipse users

For the people who are using Eclipse Galileo 3.5. You can install new updates for RMI using the following procedure.
Main menu -> Help -> Install Software ->
it will automatically download the most recent RMI plugin for you. Then restart the Eclipse IDE to apply changes.


Recently I involved in developing java RMI application for our Final year project. There I had learnt RMI from the scratch.
There is good tutorial available in this site. Which shows the steps as demos. Anyone easily learnt RMI from here.