Terminal Java Help

Discussion in 'Mac Apps and Mac App Store' started by Aleco, Aug 7, 2009.

  1. Aleco macrumors regular

    Joined:
    Aug 7, 2009
    #1
    I'm trying to convert this Batch File originally written in Windows (obviously), it runs a Jar file which has many parameters after. Here it is:
    Code:
    @echo off
    start javaw -Xmx1000m -cp .;Theme.jar Gui 0 0 lowmem members 32
    exit
    
    I know off the bat the @echo off, start, javaw command doesn't work but for some reason when I run this command:
    Code:
    java -Xmx1000m .;Theme.jar Gui 0 0 lowmem members 32
    
    I get the following error:
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: /
    -bash: Theme.jar: command not found
    
    If there is anyone that can help me, it would be appreciated. I personally do not like Java =/

    -Alec
     
  2. Aleco thread starter macrumors regular

    Joined:
    Aug 7, 2009
  3. gwynevans macrumors newbie

    Joined:
    Jul 29, 2009
    #3
    Try '.:Theme.jar' rather than '.;Theme.jar', as Windows uses ';' as the classpath separator char while Unix uses ':'.
     

Share This Page