Page 1 of 1

ClassNotFound error in ABserver (ab v1.32)

PostPosted: Thu Mar 07, 2019 4:34 am
by zhou
Hi,

I have followed the step from instruction and successfully opened AB game at Chrome v65. However, when I enter java -jar ABserver, It reminded me a ClassNotFound error in WebSocket.
Can someone help me about this? Thank you.

Re: ClassNotFound error in ABserver (ab v1.32)

PostPosted: Thu Apr 23, 2020 8:08 pm
by betabirds
Hi, I'm having the same issue and have found out that it is related to the java version you are runing. There hav been changes in java 13 to the way you can use class-path in the Manifest file. Thar might be the problem. I have not yet soled it, but if you have a solution, please post it.

Re: ClassNotFound error in ABserver (ab v1.32)

PostPosted: Fri Apr 24, 2020 12:46 am
by betabirds
Hi, I have finally soleved this problem. You have to remote one sigle line from the Manifest.MF in the abServer.jar file. The new Manifest should read like this:

Manifest-Version: 1.0
Rsrc-Class-Path: ./ json-simple-1.1.1.jar WebSocket.jar commons-codec-
1.7.jar matlabcontrol-4.0.0.jar Jama-1.0.2.jar jar-in-jar-loader.zip
commons-io-2.4.jar
Rsrc-Main-Class: server.ABServer
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader

i.e. it should not contain "Class-Path: ."

Make sure that you include the necesary jars/zips/ libraries in you enviroment variable for CLASS-PATH instead.

Alternative you can as i wrote earlier use a older version of Java, but if you wan to use java 13, the fix above should work.
see: https://www.oracle.com/technetwork/java ... DK-8211941