netbeans

Install NetBeans

wget http://installit.googlecode.com/hg/install.netbeans.sh -O - | bash -

#!/bin/bash

# install Java JDK
wget http://installit.googlecode.com/hg/install.java-jdk.sh -O - | bash -

# download and install netbeans from homepage
URL=http://download.netbeans.org/netbeans/7.1/final/bundles/netbeans-7.1-ml-javase-linux.sh

wget ${URL} -O /tmp/netbeans-linux.sh
sudo bash /tmp/netbeans-linux.sh --silent

# fix permissions
sudo chmod o+r /usr/local/glassfish-*/glassfish/domains/domain1/config/*

OPTIONAL: install MySQL driver
apt-get install libmysql-java

# OLD
# fix ubuntu locale settings for german
#sed -i 's|en_US.UTF-8|de_DE.UTF-8|g' /etc/scim/global

# disable compiz effects (Visual Effects (System > Preferences > Appearance > Visual Effects => none)
metacity --replace &

Create GWT MySQLConn project under Netbeans

# HowTo
1. install Netbeans: http://www.panticz.de/install_netbeans
1.1 install http://www.panticz.de/install-GWT4NB
2. install GWT: http://www.panticz.de/install_gwt
3. install MySQL driver: http://www.panticz.de/install_mysql_driver
4.

GWT + MySQL + Netbeans Demo

# INFO
url : jdbc:mysql://localhost:3306/Bible
user: gwt-examples
pass: password
 
# create database and user
mysql -u root -p
create database Bible;
CREATE USER 'gwt-examples' IDENTIFIED BY 'password';
grant all on Bible.* to 'gwt-examples'@'%' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'192.168.1.10' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'localhost' identified by "password";
commit;
quit;
 
# get gwt examples 
cd ${HOME}
svn checkout http://gwt-examples.googlecode.com/svn/trunk/ gwt-examples
 
# fill database
wget http://ken

NetBeans

Configure Oracle DB access
1. Services > Databases > Drivers > New Driver...
add
~/.netbeans/6.1/config/Databases/Driver/ojdbc14.jar
ok

2. Services > Databases > Drivers > Oracle > Connect using
Database URL: jdbc:oracle:thin:@192.168.0.1:1521:XE
Username: USER
Password: PASS

Copy config files
mkdir -p ~/.netbeans/6.1/config/Databases/Driver
cp ojdbc14.jar ~/.netbeans/6.1/config/Databases/Driver/
cp jdbc_oracle_thin__192_168_1_1_15.xml ~/.netbeans/6.1/config/Databases/Connections/jdbc_oracle_thin__192_168_1_1_15.xml

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!


Syndicate content