Friday, February 25, 2011

Installing MySQL Workbench using command in Fedora Linux

Installing MySQL Workbench, on Fedora 13, is as follows:

Login as root
Open a terminal window in GNOME/KDE or switch to the command line
Issue the command:
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi

Next, issue the command:
yum install http://rpms.famillecollet.com/remi-release-13.rpm

Open the file named remi.repo, found in the directory /etc/yum.repos.d, in a text editor (say vi) and change line no. 5 from:
enabled=0 to enabled=1
This will enable the [remi] repository.
Finally issue:
yum install mysql-workbench
to install MySQL Workbench on Fedora 13.

Henceforth, MySQL Workbench can be launched via a terminal window by issuing mysql-workbench or it can be found under Applications >Programming in GNOME.

Installing MySQL in Fedora Core Linux

Hi Friends,

below are the steps to install MySQL on Fedora Core Linux:

Use yum to install both mysql command line tool and the server:yum -y install mysql mysql-server
Enable the MySQL service:/sbin/chkconfig mysqld on
Start the MySQL server:/sbin/service mysqld start
Set the MySQL root password:mysqladmin -u root password 'new-password'The quotes around the new password are required.

Sunday, February 20, 2011

Videos for using Apache Ant with Eclipse

Setting $PATH variable in Linux

Set the following variables in .bash_profile file in root folder of your linux account:

JAVA_HOME=/usr/local/java
JDK_HOME=$JAVA_HOME
ANT_HOME=/usr/local/ant
PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

Please make sure that you log off and log in back to see changes.

Thanks.

Monday, December 27, 2010

GUI Building Tools for Eclipse





These are some of the Graphical User Interface building tools supported by Eclipse. You just have to follow the link and install the plugin into Eclipse. I personally used them in my projects in CMPE 273, under professor Mike Larkin. I would personally recommend Google's Windows Builder Pro which creates neat and efficient code in the Code Preview. Also the back and forth switching between the UI and Code is pretty fast allowing you to save you time. Please pick one according to your choice.







The one which is the best according to my personal experience while working on University Record System project in CMPE 273 under Professor Mike Larkin:

WindowBuilder Pro User Guide - Google Java Developer Tools

Eclipse 3.6 (Helios)

http://dl.google.com/eclipse/inst/d2gwt/latest/3.6 [Copy this URL to use with Eclipse]


Eclipse 3.5 (Galileo)

http://dl.google.com/eclipse/inst/d2gwt/latest/3.5

[Copy this URL to use with Eclipse]

Eclipse 3.4 (Ganymede)

http://dl.google.com/eclipse/inst/d2gwt/latest/3.4

[Copy this URL to use with Eclipse]


For adding this plugin into Eclipse, Go to Help-> Install New Software ->Click Add -> Paste appropriate plugin link according to your Eclipse version.

Bingo !



Running a RMI Sample Application using Eclipse




For Eclipse: Picture 2 and picture 3 show how to run in eclipse.

1. while configuring external tool give the name of the implementation class .
2. Run the server
3 Run the client .

I am attaching all the screenshots , hope it works

Book for Java Thread Programming

Here is the suggestion for best book for Java Thread Programming:

Java Thread Programming
Paul Hyde
Sams, 1998
ISBN: 0672315858