ClassNotFound error in ABserver (ab v1.32)

Discussion regarding the server/client interface (not provided yet)

ClassNotFound error in ABserver (ab v1.32)

Postby zhou » Thu Mar 07, 2019 4:34 am

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.
Attachments
Screenshot from 2019-03-06 12-42-48.png
MssingClass error
Screenshot from 2019-03-06 12-42-48.png (219.77 KiB) Viewed 59346 times
zhou
 
Posts: 1
Joined: Thu Mar 07, 2019 4:17 am

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

Postby betabirds » Thu Apr 23, 2020 8:08 pm

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.
betabirds
 
Posts: 3
Joined: Thu Apr 23, 2020 7:58 pm

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

Postby betabirds » Fri Apr 24, 2020 12:46 am

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
betabirds
 
Posts: 3
Joined: Thu Apr 23, 2020 7:58 pm


Return to Server/client interface

Who is online

Users browsing this forum: No registered users and 1 guest

cron