Not able to run the Compiled jar created from netbeans

Asked by Muhammed

Dear Guys,

I am new to sikuli. I had downloaded the latest Sikuli-Setup 1.0.1 and Installed the package for developing the program in Netbeans and Eclipse IDE. After that I had started a project in Netbeans and pointed the refernce Sikuli-Java.jar as mentioned in the document of Sikuli site. I had done small code to open a software and Tested in IDE, it works fine. When I try to run the Jar file created after the compilation of the program in Netbeans (jar file in dist folder inside the project folder) its not executing.

Can anybody help me this.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

I guess you are running the created jar file on command line using the recommended
java -jar mytest.jar

You have to add the class path for sikuli-java.jar:
java -cp path-to-sikuli-java.jar -jar mytest.jar

Revision history for this message
Muhammed (muhammed-k) said :
#2

Thank you for your support, now its working fine.

Previously i was just double clicking the jar, because in that jar class path was already mentioned in the manifest file. But it didn't work. When i execute the jar from command prompt specifying the class path it works.

Now I am using a batch file to execute, how can i hide the console window?