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
Switcher Hangout The place for switchers to discuss their new machines, and how to work with OS X. General support can be had here for newbie stuff, like "How do I restart my new iMac?" :)

help me convert something, please.


Post Reply New Thread Subscribe

 
Thread Tools
krrose27

 
Member Since: Apr 25, 2007
Posts: 15
krrose27 is on a distinguished road

krrose27 is offline
I have two .bats written for windows that i have n clue how to reqrite for a mac. I also have linux versions. I will post all four.

Compile.bat
Code:
@echo off

echo Compiling Randoms

cd Randoms

javac -cp .;./../jars/impsoft.jar;./../jars/swt.jar;./../jars/jython.jar;./../plugins/ *.java

echo Compiling Scripts

cd ..\Scripts

javac -cp .;./../jars/impsoft.jar;./../jars/swt.jar;./../jars/jython.jar;./../plugins/ *.java

echo Compiling iScar PLugins

cd ..\iscarplugins

javac -cp .;./../jars/impsoft.jar;./../jars/swt.jar;./../jars/jython.jar *.java

echo Compiling Plugins

cd ..\plugins

javac -cp .;./../jars/impsoft.jar;./../jars/swt.jar;./../jars/jython.jar *.java

pause
run.bat
Code:
java  -Xmx500m -cp ./;./plugins -Xbootclasspath/p:"%~dp0jars\impsoft.jar";"%~dp0jars\swt.jar" -Xbootclasspath/a:"%~dp0jars\impsoft.jar";"%~dp0jars\log4j-all-1.3alpha-8.jar";"%~dp0jars\swt.jar";"%~dp0jars\bcel.jar";"%~dp0jars\regexp.jar";"%~dp0jars\ePascal.jar";"%~dp0jars\log4j-1.2.13.jar";"%~dp0jars\jython.jar" Main 

pause
compile.sh
Code:
echo Compiling Randoms

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Randoms/*.java

echo Compiling Scripts

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Scripts/*.java

echo Compiling iScar PLugins

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar iscarplugins/*.java

echo Compiling Plugins

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar plugins/*.java
run.sh
Quote:
java -Xmx500m -cp "./":"./plugins" -Xbootclasspath/p:"./jars/impsoft.jar":"./jars/swt-linux.jar" -Xbootclasspath/a:"./jars/impsoft.jar":"./jars/swt-linux.jar":"./jars/bcel.jar":"./jars/regexp.jar":"./jars/jython.jar":"./jars/log4j-1.2.13.jar" Main
If anyone could convert a set to a runable type on mac, or show me how. Id greatly appreciate it.
QUOTE Thanks
cazabam

 
cazabam's Avatar
 
Member Since: Jun 06, 2006
Posts: 1,153
cazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of light
Mac Specs: MacBook 2.0GHz White, 512MB RAM, 60GB HDD

cazabam is offline
The .sh ones will run on the mac just fine - it uses Bash just like most Linux distributions. I think you'll need to install the developer tools from your original install disks to get javac, but other than that you're good to go.
QUOTE Thanks
krrose27

 
Member Since: Apr 25, 2007
Posts: 15
krrose27 is on a distinguished road

krrose27 is offline
what do i do to run them?
QUOTE Thanks
krrose27

 
Member Since: Apr 25, 2007
Posts: 15
krrose27 is on a distinguished road

krrose27 is offline
like if i just type in ./compile get back some long error

Quote:
kevin-roses-computer:~/Desktop/nexus kevinrose$ ./compile.sh
Compiling Randoms
javac: invalid flag: Randoms/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Compiling Scripts
javac: invalid flag: Scripts/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Compiling iScar PLugins
javac: invalid flag: iscarplugins/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Compiling Plugins
error: cannot read: plugins/*.java
1 error
kevin-roses-computer:~/Desktop/nexus kevinrose$ compile.sh
-bash: compile.sh: command not found
kevin-roses-computer:~/Desktop/nexus kevinrose$ no like the compile doesnt even work
-bash: no: command not found
kevin-roses-computer:~/Desktop/nexus kevinrose$ /Users/kevinrose/Desktop/nexus/compile.sh
Compiling Randoms
javac: invalid flag: Randoms/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Compiling Scripts
javac: invalid flag: Scripts/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Compiling iScar PLugins
javac: invalid flag: iscarplugins/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system

Compiling Plugins
error: cannot read: plugins/*.java
1 error
QUOTE Thanks
krrose27

 
Member Since: Apr 25, 2007
Posts: 15
krrose27 is on a distinguished road

krrose27 is offline
If anyone has any clue why this happens itd be appricated.
QUOTE Thanks

Post Reply New Thread Subscribe


« How big the partition for OS X and Windows and Date? | What made you decide to buy a Macbook »
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

All times are GMT -4. The time now is 05:21 AM.

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?