Ubuntu开发Struts2应用(1、环境搭建MyEclipse+MySQL)

2012年01月14日 JAVA, Linux, Ubuntu 暂无评论

本系列文章带来的是在Ubuntu11.10下开发Struts2程序学习过程所记录的滴滴点点,当中所写的也许不能算是学习的好教程,但所涉及的知识点相信会对学习Struts2有一定的帮助。

首先是在Ubuntu11.10搭建开发环境,相信大部分开发者都是在XP下完成的,比较少涉及Linux平台,如果你是用Ubuntu系统的,那可以看看本节内容。

1、安装myeclipse(由于myeclipse已经自带了Tomcat,所以我们不需要再去下载Tomcat了。)
最新的myeclipse已经是myeclipse10了,不过我这里用的myeclipse9.1。
下载地址:http://www.linuxsight.com/blog/2525
安装方法:
linuxsight@linuxsight-ODM:~/桌面$ chmod +x myeclipse-9.1-offline-installer-linux.run

linuxsight@linuxsight-ODM:~/桌面$ ./myeclipse-9.1-offline-installer-linux.run
Starting installer - please wait...
- Preparing install engine
- Extracted install engine
- Detected JVM architecture: 32 bit
- Launching install engine; waiting for completion
- Exited install engine

安装完在unity可以迅速找到myeclipse

Ubuntu开发Struts2应用(1、环境搭建MyEclipse+MySQL)

启动myeclipse

Ubuntu开发Struts2应用(1、环境搭建MyEclipse+MySQL)

版本为myeclipse9.1

Ubuntu开发Struts2应用(1、环境搭建MyEclipse+MySQL)

已经自带了Tomcat6。

Ubuntu开发Struts2应用(1、环境搭建MyEclipse+MySQL)

2、下载Struts2

下载地址:http://struts.apache.org/2.x/
目前最新版本是Struts2.3.2,而在myeclipse9.1所带的是Struts2.2.1。如果想使用myeclipse9.1自带的,就可以不必去下载最新的版本。

3、安装MySQL

sudo apt-get install mysql-server

Ubuntu开发Struts2应用(1、环境搭建MyEclipse+MySQL)

给我留言