QUOTE(Koji Hisano @ Thu Dec 14 2006, 13:09) [snapback]331083[/snapback]
In my environment (Skype 3.0.0.190), it works fine.
What's your Skype version?
I was using skype 2.5 version.
Now i am using Swings for the GUI instead of SWT and i want some clarifications.
In skype4Java readme.txt file it was written that i need to include swt.jar all the time and since i dont want swt, do i have any alternative ?? Because all the time it gives Swt std error(
java.lang.UnsatisfiedLinkError: no swt-win32-3232 in java.library.path) which is not at all related to my project.
I am using a Jlist in a frame which gets my friends list and displays in the list. But the application just hangs up, when it encounters Skype code stmt. I am including the code for convenience, please let me know if i am doing something wrong.
CODE
import com.skype.Skype;
import com.skype.SkypeException;
import com.skype.ChatMessageListener;
import com.skype.SkypeExceptionHandler;
import com.skype.User;
import com.skype.Chat;
import com.skype.ChatMessage;
import com.skype.ChatMessageAdapter;
import com.skype.ContactList;
import com.skype.Friend;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.applet.*;
public class skypeConfInitiator extends Applet
{
public void init()
{
super.init();
System.out.println("hi");
Skype.setSkypeExceptionHandler(new SkypeExceptionHandler()
{
public void uncaughtExceptionHappened(Throwable e)
{
System.out.println("hi error");
System.exit(1);
}
});
System.out.println("hi2");
try
{
Skype.setDeamon(false); // <-- going to infinite loop here
Skype.setDebug(true);System.out.println("hi3");
// Skype.setDebug(false);
if(Skype.isInstalled())
{
System.out.println("Skype is Installed" );
if(Skype.isRunning())
{
System.out.println("Skype is Running" );
}
}
}
catch(SkypeException e)
{
System.exit(1);
}
}