Well after getting all the help I could ever hope for, from you guys (thank y’all btw), I have come across a small issue. When trying to run my engine on another machine(runs flawlessly on MY computer), it gives me “java.lang.NoClassDefFoundError: org/python/util/PythonInterpreter”. My engine uses jython for scripting, however nobody has jython installed, nor setup the classpath, so is there a way for me to distribute my Java/Jython powered engine on any machine without any hassle to the users?
I don’t need my app to be ONE jar only when I distribute, but is this achievable?
Thanks for any reply 😀
In the folder I wish to distribute, I have the jython jar, game engine class files, scripts, sounds, and whatever images I need. I even tried installing jython on the second computer, and after all this…It still didn’t work 🙁 is it this computer?
You need to include the relevant jars containing jython in your packaging of the game (for example – RPM, tar.gz, msi – depends on the OS you’re using).
Then, you should have some script running your game (using java command line) and include the jython jars at the classpath.