Luft
Luft

Reputation: 185

Distributing my JavaGameEngine (uses Jython)

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


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?

Upvotes: 0

Views: 197

Answers (2)

Frank Wierzbicki
Frank Wierzbicki

Reputation: 1576

See: Distributing my Python scripts as JAR files with Jython?

Though the question is about distributing Python scripts with Jython in a single jar, the same technique will work for distributing extra Java classes in one jar.

Upvotes: 0

Yair Zaslavsky
Yair Zaslavsky

Reputation: 4137

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.

Upvotes: 1

Related Questions