Using Struts Console Inside Borland JBuilder


Using Struts Console as a Stand-Alone Application

Most often, Struts Console is used as an IDE plugin because of the convenience of working seamlessly inside one tool. However, Struts Console can just as easily be run as a stand- alone application. Before running Struts Console as a stand-alone application, though, you must set the JAVA_HOME environmental variable. Many Java development kit (JDK) distributions set this for you when you install them; however, if it is not set on your machine, you must set it before you run Struts Console. The JAVA_HOME variable must be set to the directory where you have your JDK installed. For example, if you have JDK 1.5.0_07 installed at c:\java\jdk1.5.0_07, your JAVA_HOME variable should be set to c:\java\ jdk1.5.0_07.

Once you have set the JAVA_HOME environmental variable, you are ready to run Struts Console. Simply navigate to the directory where you installed Struts Console (e.g., c:\java\ struts-console-5.0) and then navigate into the bin directory. The bin directory contains two files: console.bat and console.sh. If you are on a Microsoft Windows machine, run console. bat. However, if you are on Linux, Unix, or Macintosh, run console.sh.

Note 

On Linux, Unix, and Macintosh you have to set the executable flag on the console.sh file before it can be executed.

Once Struts Console is up and running, you can open an existing configuration file or create a new configuration file for editing. Figure A-1 shows Struts Console in action as a stand-alone application. Notice that open files have an Editor and a Source tab at the bottom. The Source tab shows you the source XML for the configuration file. Unlike many of the Struts Console IDE plugins, you cannot edit the XML source directly. This, however, may be a new feature in the future.

image from book
Figure A-1: Struts Console in action as a stand-alone application



Struts. The Complete Reference
Struts: The Complete Reference, 2nd Edition
ISBN: 0072263865
EAN: 2147483647
Year: 2004
Pages: 165
Authors: James Holmes

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net