i have a windows batch script which launches a jar which launches a game written all in Java (its a runescape client). It should work.
The original Batch (WIN):
@echo off @echo Client Is loading...... @echo ----------------------- java -Xmx1000m -cp .;Theme.jar Gui 0 0 highmem members 32 pause the Shell file ive made for OS:
#!/bin/sh echo Your client is loading... echo -------------------- java -Xmx1000m -cp Theme.jar Gui 0 0 highmem members 32 the error in terminal:
Your Client is loading... -------------------- Exception in thread "main" java.lang.NoClassDefFoundError: Gui Caused by: java.lang.ClassNotFoundException: Gui at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) How can i fix it or make a shell script that will do the exact as the Batch and actually run?
-cp .;Theme.jarin batch but-cp Theme.jarin shell file.