New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Need some help on a unix script :-)


Post Reply New Thread Subscribe

 
Thread Tools
starrin
Guest
 
Posts: n/a

Hello,

I am trying to create a Unix script to run, now the script I have is phonebook.sh and when I type the

. ./phonebook.sh

from the command line it all works fine. However I want to just double click on it and have it work -- for ease of use;-)

So I changed the extension from .sh to .command and I receive errors.

Here is my script, can someone tell me what I need to do in order to have it double clickable --- thank you so much. These are all java command line commands:


#!/bin/sh
javac -sourcepath source -classpath classes:lib/xerces-1.4.4.jar:lib/log4j-1.2.8.jar:lib/ibx-rt-1.4.0.jar source/com/ibx/commons/example/cmdprocessor/*.java -d classes

javac -sourcepath source -classpath classes:lib/xerces-1.4.4.jar:lib/log4j-1.2.8.jar:lib/ibx-rt-1.4.0.jar source/com/ibx/commons/example/phonebook/dao/*.java -d classes

javac -sourcepath source -classpath classes:lib/xerces-1.4.4.jar:lib/log4j-1.2.8.jar:lib/ibx-rt-1.4.0.jar source/com/ibx/commons/example/phonebook/command/*.java -d classes

javac -sourcepath source -classpath classes:lib/xerces-1.4.4.jar:lib/log4j-1.2.8.jar:lib/ibx-rt-1.4.0.jar source/com/ibx/commons/example/phonebook/*.java -d classes

java -cp classes:config:lib/xerces-1.4.4.jar:lib/log4j-1.2.8.jar:lib/hsqldb.jar:lib/ibx-rt-1.4.0.jar com.ibx.commons.example.cmdprocessor.CommandProces sor phone-book
QUOTE Thanks

Post Reply New Thread Subscribe


« Big Problem IPod+OS | downloading »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting 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 Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Unix VS. Linux dziner Switcher Hangout 27 12-04-2006 02:17 PM
Unix For Mac Os X Help Matt OS X - Operating System 5 08-24-2004 02:32 AM
Unix psychotoe OS X - Development and Darwin 6 06-16-2004 02:46 PM
Apple in Court over UNIX Name schweb Apple Rumors and Reports 8 06-13-2003 10:54 PM

All times are GMT -4. The time now is 10:20 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?