Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am a bit new with the Sikulli tool so please bear with my ignorance.

I have written a Sikulli program on windows using Java to automate the Skype application, which works fine on Windows.

Now I want to test the compatibility of this program on Ubuntu server as is the requirement specified by the client.

I am creating an executable jar out of my project and with the necessary code changes(Location changes for the Skype application on Ubuntu) and trying to run it on Ubuntu machine.

Is it possible to execute the same code out there for sikulli tool because when I try to run it on Ubuntu? I am getting null pointer exception where I am trying to open the Skype application.

The code will look something like this::

public static void main(String[] args) {

    Screen mScreen = new Screen();
    SikuliScript browser = null;

    try {
        browser = new SikuliScript();
    } catch (AWTException e1) {
        // TODO Auto-generated catch block
    // Opening the skype app for the specified desktop application

The last line in the code gives error as below:

Exception in thread "main" java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NullPointerException
    at org.sikuli.script.App.open(App.java:73)
    at org.sikuli.script.App.open(App.java:24)
    at org.sikuli.script.SikuliScript.openApp(SikuliScript.java:50)
    at com.mindtree.sikuli.SikuliDemo.main(SikuliDemo.java:35)
... 5 more

Can anyone help me with this?

Also is the way I am trying to locate the Skype app providing the path is correct or not?


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.