MacNN Forums (http://forums.macnn.com/)
-   Mac Desktops (http://forums.macnn.com/mac-desktops/)
-   -   Running batch files on Mac (http://forums.macnn.com/65/mac-desktops/402050/running-batch-files-on-mac/)

 
skeebo Oct 21, 2009 01:09 AM
Running batch files on Mac
Here is the download for the game/program i'm trying to run: http://www.mediafire.com/?zwlmmmmijtd

If that link doesn't work try http://www.multiupload.com/TEJGKVDR2F


okay hi everyone i'm new to the forums and new to macs as i just recently purchased one. My question is similar to the one here: http://forums.macnn.com/82/applicati...-files-mac-os/

except...my .bat coding is different:

@echo off
cd Source
start java -Xmx512m -cp .;Theme Gui
@echo on.

i did everything that they did on that fourm, and replaced
Code:

/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Xmx500m EGUI
with
Code:

/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Xmx512m -cp .;Theme Gui
and when i press enter/return in the terminal i end up getting
Code:

Last login: Tue Oct 20 23:58:44 on ttys000
susan-crewss-macbook-pro:~ Susan$ /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java -Xmx512m -cp .;Theme Gui
Usage: java [-options] class [args...]
          (to execute a class)
  or  java [-options] -jar jarfile [args...]
          (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available (implies -server, only for x86_64)
    -client          to select the "client" VM
    -server          to select the "server" VM
    -jvm          is a synonym for the "client" VM  [deprecated]
    -hotspot          is a synonym for the "client" VM  [deprecated]
                  The default VM is client.
                 
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image
-bash: Theme: command not found
susan-crewss-macbook-pro:~ Susan$

i have no idea what to next if i'm even doing this correctly. can someone please help me?

EDIT - i think this is in the wrong section...i'll re-post it in the correct section...sorry
 
All times are GMT -4. The time now is 02:28 PM.

Copyright © 2005-2007 MacNN. All rights reserved.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2014, vBulletin Solutions, Inc.


Content Relevant URLs by vBSEO 3.3.2