← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676008]: API in Java, running JAR displays API::JavaScriptRunner 1.1.4

 

Question #676008 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676008

    Status: Answered => Open

Dado is still having a problem:
in the end I was able to fix it someway, but it's a workaround not a real solution.
I don't have experience in Java nor in Intellij Idea so probably is something stupid that I'm making wrong, 
the problem is that in the final JAR that I'm producing (using JAR Artifact in the IDE) I have a META-INF folder that is coming from the sikulixapi.jar library, and inside that folder there is this manifest:

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven 3.5.2
Built-By: travis
Build-Jdk: 11.0.1
Main-Class: org.sikuli.script.Sikulix

as you can see the main class is "org.sikuli.script.Sikulix" that I
suspect is what is running now.

The problem so is that in my final JAR I don't find the Manifest I have
in the IDE that is correct and point to my class as Main-Class , but
there is Sikulixapi Manifest.

As a workaround I solved opening the sikulixapi.jar file and changed the
manifest to point to my class but this is more a workaround than a
solution, very dirty!

any suggestion please?

thanks
bye
Dado

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.