Page 1 of 1

What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 9:34 am
by luarocks
I have latest default jre installed from default repositories.

Code: Select all
java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.20.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.20.04, mixed mode, sharing)


What next?

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 10:34 am
by Taipion
did you simply try running the .jar instead?

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 12:33 pm
by luarocks
Taipion wrote:did you simply try running the .jar instead?

No. Where can I get it?

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 12:39 pm
by luarocks
Ok, I tried to change download link from account page, replacing jnlp to jar: game.salemthegame.com/java/salem.jar and this file exists.

Now when I run
Code: Select all
java -jar salem.jar
I get error:

Code: Select all
Error: Unable to initialize main class haven.MainFrame
Caused by: java.lang.NoClassDefFoundError: javax/media/opengl/awt/GLCanvas

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 12:49 pm
by luarocks
Very interesting. The game use classes from Haven and Hearth (haven.MainFrame) but seems doesn't work on OpenJDK, when Haven itself works with no problems.

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 1:10 pm
by luarocks
... Or maybe I just downloaded not full client. I have no idea.

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 6:31 pm
by Taipion
luarocks wrote:... Or maybe I just downloaded not full client. I have no idea.


I'm not that familiar with linux, but it should be easy to get a java 1.6, get the 1.6 client version (like, the 1.6 version of mine...) and run it with that java,
at least I think I remember you needed to use that on linux, or maybe it was on mac...

You should be able to find something on the forums about this.
Just mind that the forum search itself is crap, so I'll lend you some magic here...
...go to google and type:
site:forum.salemthegame.com "whatever you're searching for"

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 8:14 pm
by luarocks
Thanks for the advice, but it looks like the game only works on the Oracle version of Java. This is a proprietary version and you need to register on the Oracle website, agree with their terms and subscribe to their spam to download it. I don't want to do this.

Other Java games, like Haven, Minecraft, Pixel Dungeon works perfect on OpenJDK. I don't understand why is this one so special :(

Re: What I suppose to do with salem.jnlp?

PostPosted: Tue May 11, 2021 9:00 pm
by Taipion
luarocks wrote:Thanks for the advice, but it looks like the game only works on the Oracle version of Java. This is a proprietary version and you need to register on the Oracle website, agree with their terms and subscribe to their spam to download it. I don't want to do this.

Other Java games, like Haven, Minecraft, Pixel Dungeon works perfect on OpenJDK. I don't understand why is this one so special :(


Yes, it might have been, "oracle version" rings a bell...

If you don't want their stuff, you can just use a fake email to register, or ... just copy that java folder from someone else, and make a batch file to start Salem, using that java folder instead of your actually installed version.