Struts Tutorial «Prev  Next»


Downloading Struts

Step 1 - Setup Java Development Kit (JDK)

You can download the latest version of SDK from Oracle's Java site: Download latest version of JDK
You will find instructions for installing JDK in downloaded files, follow the given instructions to install and configure the setup. Finally, set PATH and JAVA_HOME environment variables to refer to the directory that contains java and javac, typically
java_install_dir/bin and java_install_dir 

respectively. If you are running Windows and installed the SDK in
C:\Program Files\Java\jdk-11.0.8
you should be inputting the following line in your C:\autoexec.bat file.
Struts can be found as a subproject of the Jakarta project (https://struts.apache.org). For Struts documentation, install notes, and downloads, see the Struts Home page
 set PATH=C:\jdk1.5.0_20\bin;%PATH%
set JAVA_HOME=C:\jdk1.5.0_20
Alternatively, on Windows
  1. You can right-click on My Computer, Select Properties, then Advanced, then Environment Variables. Then, you would update the PATH value and press the OK button.
  2. On Unix (Solaris, Linux, etc.), if the SDK is installed in /usr/local/jdk1.5.0_20 and you use the C shell, you would put the following into your .cshrc file.

setenv PATH /usr/local/jdk1.5.0_20/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.5.0_20

Alternatively, if you use an Integrated Development Environment (IDE) like Borland JBuilder, Eclipse, IntelliJ IDEA, or Sun ONE Studio, compile and run a simple program to confirm that the IDE knows where you installed Java, otherwise do proper setup as per the given document of IDE.