Hi,
l have got a solution to solve my probleme.
This is what l did I do not no if it is the good way but it can help somebody and l need your appreciation on that
1-I create a new codenameone projet using the netbeans IDE called MHTalk
2-I download the websocket lib by using the codenameone extension manager tool
3-I select "Refresh Libs" after finishing download the lib
4-I select the project on netbeans I "right click the mouse" and select "Build"
5-After the build is done I execute the project and it work verry well
6-This is the code of my MHTalk project
package com.mhsoft.mhtalk;
import com.codename1.components.SpanLabel;
import com.codename1.ui.Display;
import com.codename1.ui.Form;
import com.codename1.ui.Dialog;
import com.codename1.ui.Label;
import com.codename1.ui.plaf.UIManager;
import com.codename1.ui.util.Resources;
import com.codename1.io.Log;
import com.codename1.io.websocket.WebSocket;
import com.codename1.ui.Button;
import com.codename1.ui.Command;
import com.codename1.ui.Container;
import com.codename1.ui.TextField;
import com.codename1.ui.Toolbar;
import com.codename1.ui.events.ActionEvent;
import com.codename1.ui.layouts.BorderLayout;
import com.codename1.ui.layouts.BoxLayout;
import java.io.IOException;
/**
* This file was generated by <a href="
https://www.codenameone.com/">Codename One</a> for the purpose
* of building native mobile applications using Java.
*/