I have a java class that uses some external lib. It runs a powershell script and does some stuff after that. I want to run the script with Jenkinsfile, and local env via IntelliJ, so the command should be universal for Linux and Windows. How can I execute a command line to run it?
Some things that I've tried: I have created a artifact and tried to execute it by java -jar but nothing
java -jar ./out/artifacts/test_jar/test.jar
I got this
Error: Could not find or load main class APITestRunner
Caused by: java.lang.ClassNotFoundException: APITestRunner
Also I have tried with javac but got an error
error: package my.package does not exist
I have a big root so whould be nice to see any -cp exapmles.
Is that doable? :D