Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Good news for anyone who wants to use Forte under Mac OS X

Good news for anyone who wants to use Forte under Mac OS X
Thread Tools
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jul 26, 2002, 09:24 PM
 
I far prefer Project Builder for Java development in general, but there's no doubt that Forte is useful and powerful, especially if you need to use a Swing interface. And, unlike JBuilder, it's free. It's also unsupported on Mac OS X, and to the casual developer attempting to download and install it, numerous and irritating hurdles present themselves. However, all the problems are solvable, and the last piece of the puzzle has fallen into place just today. So for anyone who is interested, here is how to get Forte working - without having to go through the command line or XWindows or anything - on Mac OS X. It Worked For Me™.

Step 1 - Getting Forte
Download "Sun One Studio 4.0 Community Edition" (Forte 4.0, in other words) from <a href="http://wwws.sun.com/software/sundev/jde/buy/index.html" target="_blank">http://wwws.sun.com/software/sundev/jde/buy/index.html</a>

Step 2 - Installing Forte
While the jar file that you download works fine if you double-click it and starts the installer, it will fail to find a suitable Java home because Mac OS X Java uses a non-standard directory structure. To fool the installer into working, create the "/Library/Java/Home/jre" and "/Library/Java/Home/jre/bin" directoryies. /Library/Java/Home should already exist, or there's something drastically wrong with your system. Installing Forte should now go without a hitch.

Step 3 - Running Forte
You can do this from the command line, but that is tedious and, even if you use a .command file, requires you to leave a Terminal window open while Forte is running. The workaround for this is to use an Applescript application to start Forte. Open Script Editor and create an script with just the following line of text:
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">do shell script &quot;/Applications/forte4j/bin/runide.sh -ui com.apple.mrj.swing.MacLookAndFeel -fontsize 10</pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">Call it "Forte" or something, save it as an application, and put it wherever you want. Note: This assumes that you have installed Forte in /Applications/forte4j; if this is not the case, change the script accordingly.

Step 4 - Configuring External Web Browser
This has been the sticking point for a while now; Forte uses web pages extensively, both internally and externally. It has its own (awful) Swing browser, but the two external browser options - External (UNIX) and External (Command Line) - would not work on OS X. At least, not out of the box. John Windberg has created a workaround that will allow you to use any external browser - even respecting your system settings! For the full details, go to <a href="http://forte.sun.com/ffj/articles/macOSX.html" target="_blank">http://forte.sun.com/ffj/articles/macOSX.html</a>
However! Unfortunately, the script given in that article is ever-so-slightly incorrect, and will fail to work, causing frustration and possibly exploding of heads. To fix it, simply replace the line </font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">#!/bin/tcsh</pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">with </font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">#!/bin/sh</pre><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">. The reason for this is that tcsh does not recognise variables in the same way as sh, so $1 will contain nothing whatsoever. Opening an empty URL is not very useful.

That's about it! You now have a double-clickable Forte which integrates with your system (and, indeed, installs in the first place). I hope that someone finds this useful, and if you have any further questions, feel free to post them.
[vash:~] banana% killall killall
Terminated
     
Junior Member
Join Date: May 2002
Location: Australia
Status: Offline
Reply With Quote
Jul 31, 2002, 08:13 PM
 
Thanks for this, it actually works, I always wanted to try SUN Forte. I have used netbeans and I had thought that Forte was its big brother, but Forte is in fact from NetBeans. So I will be sticking with NetBeans, all I can see difference that I can see is that Forte has a nicer SUN splash screen.

It is nice, of this thing to work. I hope SUN brings Forte Support for OSX, still, SUN needs the Macintosh as much as we need them.
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Jul 31, 2002, 08:48 PM
 
You can also use the NetBeans launcher (a carbon wrapper for runide.sh that surpresses the terminal window) available as part of the NetBeans OS X package.

Simply remove the NetBeans directory from the App bundle, then it will prompt you for the directory when you launch it. At that time, point it to your Forte directory.

I have been using FFJ Enterprise Edition like this for quite some time.

I also made a Duke icon, and have this in my runide.sh:

append to jreflags:

-Xdock:name=\"Forte for Java Enterprise Edition 4.0\" -Xdock:icon=/Applications/forte4j/bin/icons/duke.icns"

This makes the Dock icon into my Duke icon, and makes the Dock name correct.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Aug 1, 2002, 05:30 AM
 
Ooh, useful. I'll try that at some point, when less tired.
[vash:~] banana% killall killall
Terminated
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:36 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2