MacNN Forums (
-   Mac Desktops (
-   -   Running batch files on Mac (

skeebo Oct 21, 2009 12:09 AM
Running batch files on Mac
Here is the download for the game/program i'm trying to run:

If that link doesn't work try

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: .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

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

/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

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.
                  set a system property
                  enable verbose output
    -version      print product version and exit
                  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
                  enable assertions
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
                  load native agent library by full pathname
                  load Java programming language agent, see java.lang.instrument
                  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 03:36 PM.

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

Content Relevant URLs by vBSEO 3.3.2