0

Based on this thread, I'm trying to execute Java code on Windows using Nifi's ExecuteStreamCommand processor

ExecuteStreamProcessor configuration

I get the following error (Java could not load or find the main class):

Executable command java ended in an error: Erreur : impossible de trouver ou charger la classe principale -jar test.jar

Running java -jar test.jar on the command line works just fine

Test.java:

public class Test
{
    public static void main(String[] args)
    {
        System.out.println("Hello world");
    }
}

Maniphest file:

Manifest-version: 1.0
Main-Class: Test

Nifi version: 1.11.0

Thx in advance

dams
  • 309
  • 1
  • 4
  • 13

1 Answers1

0

As Yury Nevinitsin suggested, changing argument delimiter to space symbol solved the issue

Command Arguments: The arguments to supply to the executable delimited by the ';' character.

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.9.0/org.apache.nifi.processors.standard.ExecuteStreamCommand/

maxime G
  • 1,660
  • 1
  • 10
  • 27
dams
  • 309
  • 1
  • 4
  • 13