Where can I find the latest SpiderMonkey jar to use in non-jme3 projects? I have a jme3 client, but I don’t want a jme3 server, however I do want to use SpiderMonkey because I’ve heard it’s a good networking library.
SpiderMonkey is embedded in the jME jar. There is no separate download for just SM and its serializer has some built in references to a handful of JME classes anyway.
You can put the jMonkeyEngine.jar in your server classpath and just not use the other JME stuff. That’s what Mythruna does. On the server side, Mythruna only uses com.jme3.network and com.jme3.math (which is required by SM anyway).
I’m having trouble locating the com.jme3.network.Network class, it doesn’t seem to be in jme3. Did the classes change since the tutorials were updated?
Are you running base ancient alpha 4 or a recent nightly build?
pspeed said:
Are you running base ancient alpha 4 or a recent nightly build?
I'm pretty sure I'm running a nightly build I downloaded a few weeks ago, has it been updated since then?
No spider monkey has been in there for months now.
How are you determining that com.jme3.network.Network is not in jme3?
pspeed said:
No spider monkey has been in there for months now.
How are you determining that com.jme3.network.Network is not in jme3?
When I try to import it the JDK says that class doesn't exist. Do I need a nightly build of the JDK too?
Is it possible that the JDK that I downloaded has a old copy of jme3?
Could be. Depends on how you are including jMonkeyEngine3.jar in your application.
I’ll try replacing the jme3 jar that’s included in the JDK with a nightly build jar.
Ah, that did the trick. However it now seems that this is depreciated:
[java]Client myClient = Network.connectToServer(“localhost”, 6143);
myClient.start();[/java]
What would be the correct syntax? The error it’s giving me is
incompatible types
required: com.jme3.network.connection.Client
found: com.jme3.network.Client
You have a bad import or something. com.jme3.network.connection.Client is the old deprecated version that goes away soon.
pspeed said:
You have a bad import or something. com.jme3.network.connection.Client is the old deprecated version that goes away soon.
Ah, that was the issue. Thanks a ton.