Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Tuesday, October 21, 2008

Building web applications with java

Building non-trivial web applications with Java is no trivial task.From a high-level, developers are faced with decisions about how they are going to construct user interfaces, where the business logic will reside, and how to persist application data.ach of these three layers has their own questions to be answered. What technologies should be implemented across each layer?How can the application be designed so that it is loosely coupled and flexible to change? Does the architecture allow layers to be replaced without affecting other layers? How will the application handle container level services such as transactions?
Fortunately, there have been developers that have run into these reoccurring problems and built frameworks to address these issues. A good framework relieves developers from attempting to reinvent the wheel for complex problems; it is extensible for internal customization; and it has a strong user community to support it.

For the presentation layer we will use Struts; for our business layer we will use Spring; and for our persistence layer we will use Hibernate.










Saturday, June 7, 2008

how to setup jdk in ubuntu from apt-get

sudo apt-get install sun-java6-jdk

open /etc/profile
write
JAVA_HOME="/usr/lib/jvm/java-6-sun"
PATH=$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME

Thursday, January 3, 2008

how to setup jdk in ubuntu

//how to install jdk in ubuntu
install the bin package of netbeans

//how to set classpath of jdk

open /etc/profile
write
JAVA_HOME="/opt/jdk1.6.0_01"
PATH=$JAVA_HOME/bin:$PATH
export PATH JAVA_HOME

//how to set mysqlconnector of netbeans
start netbeans
open tools->libraries
new library
add jar/folder
give the jar location of mysql-connector.jar
add it
start new project
open projects
open libraries
add library
add jar

//how to install mysqlconnector.jar
install the deb package of libmysql-java_5.0.4+dfsg-2_all.deb
it resides in /usr/share/java/mysql-connector-java-5.0.4.jar

//how to run database related jar file in terminal
java -cp path of mysqlconnector -jar jar file