Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Aleco

macrumors regular
Original poster
Aug 7, 2009
158
194
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
 
Try '.:Theme.jar' rather than '.;Theme.jar', as Windows uses ';' as the classpath separator char while Unix uses ':'.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.