taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 60 forks source link

Not working with Latest Java 1.7.0_40 #42

Open mmkaila opened 10 years ago

mmkaila commented 10 years ago

Hello,

We have used skype-java-api-1.4.jar in one of our application for skype call and was working fine.

If we update our java to 1.7.0_40 then Skype.isInstalled() method returns false.

We have also try with skype-java-api-1.5.jar but no success.

Please suggest.

Thanks Mahesh

mmkaila commented 10 years ago

Issue Fixed.

Solution:

Modified Skype.java

Changed

From

public static boolean isInstalled() {
    String path = getInstalledPath();
    if(path == null) {
        return false;
    }
    return new File(path).exists();
}

To

public static boolean isInstalled() {
    String path = getInstalledPath();
    if(path == null) {
        return false;
    }
    return new File(path.trim()).exists();
}