Code Monkey home page Code Monkey logo

Comments (8)

gnardin avatar gnardin commented on July 4, 2024

@charon-1-1
I tested running the simulator on my own computer and it does work fine. Can you please provide us further information about the environment (computer, OS, Java version, etc) where you are trying to run the simulator? Additionally, please share the log files that you can find on the logs directory, so we can help you solve the issue.

from rcrs-server.

charon-1-1 avatar charon-1-1 commented on July 4, 2024

Thank you very much for your help!
computer: HP
OS: Ubuntu 18.04.6 LTS (virtual machine)
Java version: openjdk version "17.0.2" 2022-01-18
gardle version: Gradle 4.4.1
git version 2.17.1
git version 2.17.1
logs:
logs.zip
error

from rcrs-server.

modaresimr avatar modaresimr commented on July 4, 2024

@gnardin
I think the problem is with the config of types.cfgwhich mentioned ../jars

from rcrs-server.

gnardin avatar gnardin commented on July 4, 2024

@charon-1-1 and @modaresimr

Looking at the log files, the exception is related to Java. See the snippet I copied from kernel-out.log file.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2393) at java.base/java.lang.Runtime.load0(Runtime.java:755) at java.base/java.lang.System.load(System.java:1953) at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)

@charon-1-1
I have a similar configuration than yours. The only difference is the Ubuntu version, I am using version 20.04. But the Java and Gradle are the same. In my computer it does not cause any error.

I noticed, however, that you are probably using an older version of the simulator (v1.5) since you are launching the start.sh script from the boot directory while in the new version (v2.0) the script is launched from the scripts directory.

The older version of the simulator (v1.5) is not compatible with Java 17. You can switch back to Java 11 or you can update to the new version of the simulator. You can clone the new version of the simulator using git clone https://github.com/roborescue/rcrs-server.git.

Please let us know if the problem persists.

from rcrs-server.

charon-1-1 avatar charon-1-1 commented on July 4, 2024

Thank you for your reply, actually we have tried the new server, we have tried many on Ubuntu20.04, but we ran into the same problem. It was strange that the team members could run the server successfully with the same operation in the same environment as us, but I and several other members had this problem and were bothered by it for a long time.
Here is the log file from the new server:
logs.zip

from rcrs-server.

gnardin avatar gnardin commented on July 4, 2024

@charon-1-1
It seems it is something related to your environment setup.

Can you please install the OpenJDK 17 JDK as indicated below?
sudo apt install openjdk-17-jdk

You may have the headless, but not the JDK installed.

After installing, test on the new simulator since the old one is not tested with the Java 17.

Please let us know if the problem persists.

from rcrs-server.

charon-1-1 avatar charon-1-1 commented on July 4, 2024

Wow, that should be the question. We reinstalled jdK17 according to your instructions and successfully started the server. Thank you very much! We have been using Ubuntu's prompts for JDK installation, which does have -headless.
Thank you again from the bottom of my heart.

from rcrs-server.

gnardin avatar gnardin commented on July 4, 2024

Please let us know if you have any further problem.

from rcrs-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.