Results 1 to 5 of 5
  1. #1


    Member Since
    Apr 25, 2007
    Posts
    15
    help me convert something, please.
    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.

  2. #2

    cazabam's Avatar
    Member Since
    Jun 06, 2006
    Posts
    1,153
    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.

  3. #3


    Member Since
    Apr 25, 2007
    Posts
    15
    what do i do to run them?

  4. #4


    Member Since
    Apr 25, 2007
    Posts
    15
    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

  5. #5


    Member Since
    Apr 25, 2007
    Posts
    15
    If anyone has any clue why this happens itd be appricated.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New convert here
    By motoburn in forum Switcher Hangout
    Replies: 8
    Last Post: 02-10-2013, 11:11 AM
  2. New convert!
    By Jaytron in forum Switcher Hangout
    Replies: 6
    Last Post: 04-30-2010, 04:08 AM
  3. New convert here...
    By mungolee in forum Switcher Hangout
    Replies: 5
    Last Post: 05-09-2007, 10:36 AM
  4. Yet another convert...
    By Gryphonz in forum Switcher Hangout
    Replies: 7
    Last Post: 01-26-2005, 09:22 AM
  5. Another convert
    By Eddy4763 in forum Switcher Hangout
    Replies: 2
    Last Post: 01-25-2005, 01:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •