Semlab : Muri : System : Howto : Forte for Java


Forte is a free Integrated Development Environment (IDE) for Java written by Sun. I like it because it provides the following benefits: All of which makes working with Java quite a bit easier.

Of course all of these features are available separately so if you're already comfortable with the tools you're using, stick with them. If you want to know how to set up Forte, read on.

  1. Install Forte.

    Forte's home on the web is http://www.sun.com/forte/ffj/, or you can find the download files on Muri2 in C:\Downloads\Dev tools\Java, as "forte for Java, community edition".

    Before you install Forte, you need to install the JDK (version 1.3 or newer); you'll find the JDK 1.3 in the same directory on Muri2 if you haven't installed it yet. Then, install Forte by running the above installer file.

  2. Install Java documentation.

    After installing Forte, you'll want the Java documentation. In the same Java directory on Muri2, I've downloaded the JDK 1.3 documentation as j2sdk-1_3_0-update1-doc.zip; unzip this file (with the option to preserve directory structure) to C:\ which will actually put it into C:\jdk1.3\docs.

  3. Fire up Forte and tell it where to find stuff.

    The "stuff" in question at this point is the documentation from step 2, and your source code. Run Forte, and we'll add these to its workspace manager.

    First, run Forte (there should be an icon on the desktop) and find the Explorer window at the left of the screen. Click the Javadoc tab at the bottom, then right-click the "Javadoc" header at the top of the window and choose "Mount directory." Now browse to C:\jdk1.3, highlight the "docs" folder, and click Mount.

    Now for your source code: choose File/Mount Filesystem, and in the resulting dialog box, click the 3rd option "Mount (other file system type)". Make sure it's on CVS, then underneath next to Working Directory, enter the path to your source directory (the one that contains the whole csli hierarchy that you already checked out from CVS). Ignore the rest of the options; the Customize dialog box should let you specify the path to the CVS repository but it's kind of broken and won't let you specify the combination of options we need. Never fear, it will just find it anyway since you've already set up CVS.

    You should now see an entry (if you click the Filesystems tab in the Explorer window) with a little CVS icon and the name of your source directory; if you click the tennis-racket-looking thing to the left, it will fold down and you'll see the "csli" directory. You can keep folding these down to explore deeper and deeper, and you can right-click on each folder (not your source folder, but the csli folder and everything inside it) to get a popup menu with options including a CVS submenu, which will let you do CVS update, commit, and diff (which has a nice graphical view of your changes to the code!), as well as "refresh" and "refresh recursively" options which aren't part of CVS per se but just force Forte to re-update its view of the CVS tree -- similar to "cvs -n update", it will tell you if your files are up-to-date without changing anything.

And that's all the site-specific setup for Forte... read its help files (built-in or on the web) to get started writing code.

Some hints: