Deal of the Day

Home » Main » Manning Forums » 2008 » Algorithms of the Intelligent Web

Thread: Getting The Soure Code and BeanShell to Run On A Mac

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Pages: 1 - Last Post: Oct 4, 2010 5:31 PM by: lukemorris Threads: [ Previous | Next ]
phillips1021

Posts: 66
Registered: 9/5/05
Getting The Soure Code and BeanShell to Run On A Mac
Posted: Oct 1, 2010 9:44 AM
  Click to reply to this thread Reply

It seems the authors hate Mac computers so they didn't take the time to test their source code and BeanShell on Mac. Here is what I had to do so far to get the BeanShell and Source code to run on my Mac.

You'll need to change this line in file /iWeb2/src/iweb2/util/config/iWeb2Config.java

if (osName.startsWith("Linux") ) {

to

if (osName.startsWith("Linux") || osName.startsWith("Mac")) {

Do the above before running the ant build.

Then after a successful ant build you'll need to modify the bsc.sh file:

Modify the bsc.sh file to be unix formatted instead of windows.


using vi open bsc.sh on your computer

execute this command in vi
:set fileformat=unix

make sure this line is IWEB2_HOME=/iWeb2 (note the / and the case of each letter - this is needed if you've copied the iWeb2 folder to your root)

:wq (to save and exit)

you then should be able to execute the script using ./bsc.sh

BTW to exit from the BeanShell use exit();

Bruce Phillips
University of Kansas

lukemorris

Posts: 5
From: NY
Registered: 9/20/10
Re: Getting The Soure Code and BeanShell to Run On A Mac
Posted: Oct 4, 2010 5:31 PM   in response to: phillips1021 in response to: phillips1021
  Click to reply to this thread Reply

Bruce:

This is so nice!
And, thank you for this.

Before this post, I almost give up run it by using BeanShell, I just put what I need into Eclipse project and modify what I need and run it. Also good.

Thanks again!

Legend
Gold: 300 + pts
Silver: 100 - 299 pts
Bronze: 25 - 99 pts
Manning Author
Manning Staff
Manning Developmental Editor