Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PotreeConverter command unable to run from Java on Linux #665

Open
mghildiy opened this issue Aug 26, 2024 · 0 comments
Open

PotreeConverter command unable to run from Java on Linux #665

mghildiy opened this issue Aug 26, 2024 · 0 comments

Comments

@mghildiy
Copy link

In my java app I want to run potree converter using ProcessBuilder. I am able to do so successfully on windows:

String[] potreeConverterCommand = {
                    "cmd.exe", "/c",
                    potreeConverterPath,
                    pdalOutput, "-o", potreeOutputPath,
                    "--generate-page", "index"
            };

ProcessBuilder processBuilder = new ProcessBuilder(potreeConverterCommand);
Process process = processBuilder.start();
int exitCode = process.waitFor();
logger.info("Exit code for potreeconverter:"+exitCode);

For docker container, I replace "cmd.exe", "/c" with "/bin/bash", "-c". But things don't work. It keeps giving exitcode 127.
potreeConverterPath points to PotreeConverter script, and it exists as checked by:

Files.exists(Paths.get(potreeConverterPath))

pdalOutput points to input .las file and this too exists.

potreeOutputPath is the directory where I want PotreeConverter to write its output, and its parent directory too exists.

Am I missing something in context of linux?

@github-staff github-staff deleted a comment from mghildiy Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@mghildiy and others