taksan/skype-java-api — Issue #8: Mac OS X (Lion 64 bit, OpenJdk 1.7) issue  
Author: evluhin
Created: 2011-12-24 22:58:31+00:00
State: open

Try to start com.skype.sample.ShowVersion and get an error:

Exception in thread "main" com.skype.SkypeException: Loading libskype.jnilib failed.
~/git/skype-java-api/target/classes/libskype.jnilib: Library not loaded: @loader_path/Skype.Framework Referenced from: ~/git/skype-java-api/target/classes/libskype.jnilib Reason: no suitable image found. Did find: /Users/evluhin/git/skype-java-api/target/classes/Skype.Framework: file too short ~/git/skype-java-api/target/classes/Skype.Framework: file too short
at com.skype.Utils.convertToSkypeException(Utils.java:61)
at com.skype.Utils.getProperty(Utils.java:157)
at com.skype.Skype.getVersion(Skype.java:200)
at com.skype.sample.ShowVersion.main(ShowVersion.java:27)

To fix it just comment line:
writeStreamToFile(skypeFrameworkStream, skypeFramework);

in ConnectorUtils.rehydrateFrameworkAtLibraryPath(String param) method.

because somehow ConnectorUtils.class.getResourceAsStream("/"+"Skype.Framework"); method returns stream with null length and of course when it try to copy from source it copy zero size folder.
I think it actually is not an issue of the skype-api but It would be great to add check if output folder (classes) contains Skype.Framework