-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tonka Loading Error #33
Comments
Hi @Toejam123 👋 you are fully correct, the problem seems to be an incompatible Java version. If you downloaded beanshooter from the release section, it is compiled for Java 8 ( In your example, the server is probably running Java 7 or even older. To make beanshooter working here you need to compile it for Java 7 (or older) too. Here are the steps to fix the issue:
I cannot guarantee that this will resolve the issue, as beanshooter and its dependencies may include code that is not Java 7 compatible. However, it would be interesting to know that. So, if you give it a try, please report your experiences 🙃 Best |
Unfortunately, it was unsuccessful. Looks as if the beanshooter jar file isn't compatible. This was the versions that I was using (Java 1.7 was halted once I tried compiling with maven):
Getting the same error once I try to run the jar file:
|
Here's my suggestions: If the server run jdk 7, you can But if the server run jdk 6 or lower, you may find that IDEA does not support such low versions of jdk (either does the maven). https://stackoverflow.com/questions/4597866/java-creating-jar-file |
Thanks for sharing your experiences. @Toejam123 when the server runs Java 7, you need to compile the tonka bean with Java 7. Any build using Java 8 (regardless of the minor version) will not work. @peter5he1by described a possible workflow. I will check whether it is possible to compile the tonka bean per default with Java 7 within my release workflows. If it is, I will adopt it :) |
@qtc-de Any update on this perhaps? I'm still seeing Java 7 environments often enough so this would definitely be great to have support for. |
For some reason, I'm unable to deploy Tonka. I was able to download / load the file successfully with:
java -jar beanshooter-4.1.0-jar-with-dependencies.jar mlet load 127.0.0.1 1234 tonka http://127.0.0.1 --jmxmp
The unsupported version error makes me think the tonka jar file is not compatible with the current java version running on the server. Would you have any ideas on how to resolve?
The text was updated successfully, but these errors were encountered: