Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseQuickStart_ko
AppFuseSupport_ko
Articles




JSPWiki v2.2.33

[RSS]


Hide Menu

DevelopmentEnvironment_ko


This is version 2. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


이 페이지는 명령창으로부터 AppFuseStrutsResume 를 컴파일/배치하기 위해 개발환경을 셋업하는 방법을 설명한다. 이것을 셋업한후에, 당신은 HowTo Run Ant in Eclipse 를 체크아웃하길 원할지도 모른다. 이것은 내가 셋업에 필요한 것을 가지는 방법과 webapp개발을 위한 기본선과 같이 AppFuse를 사용할때 사용하기 위해 고객에게 설명하는 것이다.

목차

  • [1] 다운로드 - JDKI, J2EE, Tomcat, Ant 그리고 MySQL을 다운로드하기 위한 링크
  • [2] 설치 - 위 패키지들의 압축해제/설치를 위한 위한 위치에서의 상세화된 지시
  • [3] 설정 - 당신의 환경변수를 설정하기 위한 방법
  • [4] 추가적인 팁들 - 내가 사용하길 권하는 다른 툴

다운로드 [#1]

  1. http://java.sun.com로 부터 가장 최근의 JDK(J2SE SDK)를 다운로드하자. 2005년7월12일 기준으로, 가장 최근버전은 1.4.2_08 이다. 만약 당신이 1.4.2_08버전을 사용하고자 한다면, AppFuse는 1.5버전을 사용해야만 한다(AppFuse should work with 1.5 if you'd like to use that). 여기에 jdk 1.5에 대한 my experience이 있다. Cactus는 1.6에서 AppFuse로부터 제거되었고 Cargo(JSP테스트를 위해 사용된)는 Tomcat 5.5.x에서는 작동하지 않는다.
  2. Download the latest Tomcat release from http://jakarta.apache.org/tomcat. At the time of this writing, it's 5.0.28. DON'T get the LE version or you'll have to add DBCP (database connection pool) and JavaMail (for e-mail) JARs.
  3. Download the latest Ant release from http://ant.apache.org. AppFuse 1.6+ requires 1.6.2 or greater.
  4. Download the latest MySQL release from http://www.mysql.com. Currently, this is 4.0.21.

I usually put all these downloads in a "Downloads" folder - in fact, I plan on starting to pack around a CD with all of these libraries on them - nice to have when traveling to new clients and networks are slow.

Install [#2]

Make sure you have WinZip installed (for Windows) or gnutar for OS X before installing these packages.
  1. Create a "Tools" and "SDKs" folder on your hard drive. On Windows, I create these at c:\Tools and c:\SDKs. On *nix, I usually do /opt/dev/tools and opt/dev/sdks.
  2. Create Environment variables for these folders - SDKS_HOME and TOOLS_HOME (optional)
  3. Install the J2SE SDK (a.k.a. JDK) in the SDKs directory - keeping the directory names intact.
  4. Install Tomcat in the Tools directory - I usually name the install directory "jakarta-tomcat-x" where x is the current version (i.e. 5.0.28).
  5. Unzip/Install Ant in the Tools directory - "apache-ant-x" is what I use for the directory name.
  6. Install MySQL in the Tools directory. I usually just leave it named "mysql".
  7. Create a "Source" directory on your hard drive (this is where we'll put all the source code for our projects). On *nix, I usually create a "dev" folder in my home directory.

At this point, you should have a directory structure that looks something like the following:

SDKs -
    - j2sdk-1.4.2_05
Tools - 
    - apache-ant-1.6.2
    - jakarta-tomcat-5.0.28
    - mysql
Source

Now we'll configure all these tools so that your Operating System knows they're installed.

Configure [#3]

I'll only show a Windows example and I'll assume the *nix folks are smart enough to figure it out for their system.

  1. To set Environment Variables in Windows, either go to Control Panel -> System or right-click My Computer -> Properties.
  2. Click on the Advanced Tab and then click the Environment Variables button.
  3. Put focus on the second box (System Variables) by clicking on one of the existing values.
  4. Enter the following variables:
    • HOME = c:\Source
    • SDKS_HOME = c:\SDKs
    • TOOLS_HOME = c:\Tools
    • JAVA_HOME = %SDKS_HOME%\j2sdk-1.4.2_05
    • ANT_HOME = %TOOLS_HOME%\apache-ant-1.6.2
    • CATALINA_HOME = %TOOLS_HOME%\jakarta-tomcat-5.0.28
    • MYSQL_HOME = %TOOLS_HOME%\mysql
    • Append to the PATH variable: %JAVA_HOME%\bin;%ANT_HOME%\bin;%CATALINA_HOME%\bin;%MYSQL_HOME%\bin

You should now be able to open a command prompt and type "java -version", "ant -version" or "mysql" and not get errors.

Additional Tips [#4]

  • I use Cygwin on Windows for running Ant and doing all command line things. I install it in %TOOLS_HOME%\cygwin. In my %HOME%\.profile file, I have the following items that might be useful:
alias ls="ls -CF --color"
alias ll='ls -la'
alias tstart=$CATALINA_HOME/bin/startup.bat
alias tstop=$CATALINA_HOME/bin/shutdown.bat
  • I use Eclipse on Windows for editing .java files. I install it in %TOOLS_HOME%\eclipse. I still use Ant to build and deploy, but the CVS versions of AppFuse and StrutsResume does contain the .classpath and .project files for Eclipse. Additionally, AppFuse has project files for Intellij's IDEA (version 4.5+). To see how you can run Ant in Eclipse, check out my AppFuse with Eclipse HowTo.

If you're starting work at a new client, I also recommend you do the following to help your development process become more efficient. Most of my clients in the last couple years have not had these in place, that's why I recommend them here.

  1. Setup a source control system. I prefer CVS because I'm most familiar with it. A nice addon is CVS Spam for HTML-formatted check-in notifications.
  2. Setup a bug tracking system. Popular (free) choices are Bugzilla and Scarab. The best one I've seen is JIRA (demo), but I've yet to convince a client to shell out the $800 for it.
  3. Setup a Wiki. My favorite is JSPWiki - which is what this site uses. You can also download this template if you like.
  4. Setup a development box to host the source control system, the bug tracking system, and a wiki. Install Tomcat on this box and Anthill for automated testing (I run both AppFuse and Struts-Resume on Anthill at home).
  5. (optional) Install Roller and use it to report your daily status and issues. This will allow your client (or supervisor) to track your progress.


Go to top   More info...   Attach file...
This particular version was published on 06-Nov-2006 13:52:53 MST by DongGukLee.