Hi,

Am Mittwoch, dem 18.05.2022 um 23:09 +0200 schrieb Jaroslav Tulach:
> If one is using non-GraalVM's node, then the special GraalVM node support 
> shall be inactive (apparently it is not).

I think was never tested with a Linux distribution with java and node
comming from the distribution. There are multiple filters in
GraalVmStartupExtender and this check:

    private static boolean isJavaPlatformBinDir(FileObject dir) {
        if (!"bin".equals(dir.getNameExt())) {
            return false;
        }
        FileObject file = dir.getFileObject("java", BaseUtilities.isWindows() ? 
"exe" : null);
        if (file == null) {
            return false;
        }
        file = dir.getFileObject("node", BaseUtilities.isWindows() ? "exe" : 
null);
        return file != null;
    }

Will fail on linux distribtions. I'm running the distribution node:

/usr/bin/node

So the check will look into /usr/bin, there it will find the node
itself and the currently active java version. This leads to the false
assumption, that this is graalvm, while in reality it is just a plain
normal linux distribution where java and node have nothing in common.

Greetings

Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to