help me convert something, please.

Joined
Apr 25, 2007
Messages
15
Reaction score
0
Points
1
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
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.
 
Joined
Jun 6, 2006
Messages
1,153
Reaction score
94
Points
48
Your Mac's Specs
MacBook 2.0GHz White, 512MB RAM, 60GB HDD
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.
 
OP
K
Joined
Apr 25, 2007
Messages
15
Reaction score
0
Points
1
like if i just type in ./compile get back some long error

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
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top