Giter Site home page Giter Site logo

Comments (4)

rjp avatar rjp commented on May 27, 2024 1

Alright, perfect, the file() part made it work, thanks.

I did try putting the include file next to the parent (what I'd consider "adjacent to" but I guess there's a different meaning in the linked documentation.)

from bluemap.

TBlueF avatar TBlueF commented on May 27, 2024

BlueMap uses the latest version of the Configurate-HOCON library to load the configs.

An already known bug with include is that relative paths are relative to the working-directory of the java-application instead of relative to the including file.
However, your path seems to be absolute.

Have you made sure, that the java-process actually has access-rights to the file you are trying to include?
If you don't want it to fail silently, you will need to add required(..) around the path, e.g.:
include required("/data/minecraft/2024.poi.ov").
Can you please add that required(..) and see if it then throws an error with more information about the problem? :)

from bluemap.

rjp avatar rjp commented on May 27, 2024

Aha, yes, should have thought of that. Adding that gives the error of java.io.IOException: resource not found on classpath: data/minecraft/20 24.poi.ov.conf. Moving the file to various places near the Minecraft server jar and changing the path to relative also gives the same error.

Using jinfo on the process gives me java.class.path=fabric-server-mc.1.20-loader.0.15.3-launcher.1.0.0.jar. I've restarted the server with various -cp, -classpath, CLASSPATH= variants but it doesn't seem to get picked up.

As for access, it definitely has rights because it's running as me.

(Apologies, my Java knowledge is minimal, hence the floundering)

from bluemap.

TBlueF avatar TBlueF commented on May 27, 2024

Okay, it looks like it's trying to read the file from the classpath-resources instead of the file-system.
As described here it does that as a fallback.

To make sure it is searching for a file on the file-system please try using include required(file("/data/minecraft/2024.poi.ov")) and see if that also gives you an error.

Also, if this gives you an error again, please include the full error + stacktrace :)

from bluemap.

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.