Click here to Skip to main content
15,895,256 members
Home / Discussions / Java
   

Java

 
GeneralRe: Odd String/Vector behavior Pin
David Crow19-Sep-08 7:15
David Crow19-Sep-08 7:15 
Questionhow to send live recording audio Pin
manju23reddy17-Sep-08 21:17
manju23reddy17-Sep-08 21:17 
Questionsimple web cam chat application Pin
Matthew Dally17-Sep-08 17:12
Matthew Dally17-Sep-08 17:12 
QuestionDownloading Bank Account Info... Pin
bane7313-Sep-08 7:36
bane7313-Sep-08 7:36 
QuestionSwing:JDialog Pin
shwetabhas12-Sep-08 10:21
shwetabhas12-Sep-08 10:21 
AnswerRe: Swing:JDialog Pin
toxcct14-Sep-08 22:10
toxcct14-Sep-08 22:10 
QuestionSSN Validation Pin
Sudheer.kumarmatta9-Sep-08 20:16
Sudheer.kumarmatta9-Sep-08 20:16 
Questionproblem in bluetooth programming in java Pin
manju23reddy8-Sep-08 20:09
manju23reddy8-Sep-08 20:09 
hi i have the below code to start bluetooth over PC to accept data from mobile

but when i compile i will get the following errors

i have widcom bluetooth stack and bluecove.jar and intelbth.dll(i placed this in system32)

<br />
/**<br />
 *<br />
 * @author manjunath<br />
 */<br />
public class PC_Bluetooth implements Runnable<br />
{<br />
    private LocalDevice m_LocalDevice;<br />
    String connectionURL = "btspp://localhost:393a84ee7cd111d89527000bdb544cb1;" + "authenticate=false;encrypt=false;name=RFCOMM Server";<br />
    StreamConnectionNotifier server = null;<br />
    StreamConnection conn = null;<br />
    public Thread t1 = null;<br />
    <br />
     public  void startServer()<br />
    {<br />
        if (t1 != null)<br />
            return;<br />
        t1 = new Thread(this);<br />
        t1.start();            <br />
    }<br />
    public void PC_Bluetooth()<br />
    {<br />
      <br />
    }<br />
    public void config_bluetooth()<br />
    {<br />
        try<br />
        {<br />
            m_LocalDevice = LocalDevice.getLocalDevice();<br />
            m_LocalDevice.setDiscoverable(DiscoveryAgent.GIAC);<br />
            server = (StreamConnectionNotifier)<br />
            Connector.open(connectionURL);<br />
            conn = server.acceptAndOpen();            <br />
        }<br />
        catch (Exception e)<br />
        {<br />
            System.out.println(e.getMessage());<br />
        }<br />
        <br />
    }<br />
     public void run()<br />
    {<br />
        try<br />
        {<br />
            config_bluetooth();<br />
                  <br />
        }<br />
        catch (Exception e)<br />
        {<br />
            System.out.println(e.getMessage());<br />
        }<br />
          <br />
    }<br />
    <br />
}<br />
<br />
<br />
and the exceptions are:<br />
init:<br />
deps-jar:<br />
compile:<br />
run:<br />
here to do..all<br />
BlueCove version 2.0.2 on widcomm<br />
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: getProperty0<br />
        at com.sun.midp.Configuration.getProperty0(Native Method)<br />
        at com.sun.midp.Configuration.getProperty(Configuration.java:34)<br />
        at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91)<br />
        at javax.microedition.io.Connector.open(Connector.java:158)<br />
        at javax.microedition.io.Connector.open(Connector.java:138)<br />
        at javax.microedition.io.Connector.open(Connector.java:120)<br />
        at pc_interface.PC_Bluetooth.config_bluetooth(PC_Bluetooth.java:42)<br />
        at pc_interface.PC_Bluetooth.run(PC_Bluetooth.java:56)<br />
        at java.lang.Thread.run(Thread.java:595)<br />
BlueCove stack shutdown completed<br />
BUILD SUCCESSFUL (total time: 3 seconds)<br />
<br />
<br />
please suggest me...<br />
<br />

QuestionAbstract Data Types Pin
Kevin Marois8-Sep-08 16:51
professionalKevin Marois8-Sep-08 16:51 
AnswerRe: Abstract Data Types Pin
toxcct8-Sep-08 21:05
toxcct8-Sep-08 21:05 
GeneralRe: Abstract Data Types Pin
Kevin Marois10-Sep-08 8:37
professionalKevin Marois10-Sep-08 8:37 
GeneralRe: Abstract Data Types Pin
toxcct10-Sep-08 9:16
toxcct10-Sep-08 9:16 
AnswerRe: Abstract Data Types Pin
Reagan Conservative18-Sep-08 11:42
Reagan Conservative18-Sep-08 11:42 
QuestionSession problem Pin
Mogaambo1-Sep-08 20:01
Mogaambo1-Sep-08 20:01 
AnswerRe: Session problem Pin
tiantian_hello23-Sep-08 15:17
tiantian_hello23-Sep-08 15:17 
QuestionJAVA and J2EE Pin
pearlugi28-Aug-08 23:37
pearlugi28-Aug-08 23:37 
AnswerRe: JAVA and J2EE Pin
toxcct1-Sep-08 19:25
toxcct1-Sep-08 19:25 
JokeRe: JAVA and J2EE Pin
CPallini19-Sep-08 1:58
mveCPallini19-Sep-08 1:58 
JokeRe: JAVA and J2EE Pin
toxcct19-Sep-08 2:06
toxcct19-Sep-08 2:06 
GeneralRe: JAVA and J2EE Pin
CPallini19-Sep-08 2:50
mveCPallini19-Sep-08 2:50 
QuestionJava Design Patterns: A Tutorial's CD-ROM Pin
aecordoba28-Aug-08 5:54
aecordoba28-Aug-08 5:54 
AnswerRe: Java Design Patterns: A Tutorial's CD-ROM Pin
CPallini19-Sep-08 2:52
mveCPallini19-Sep-08 2:52 
GeneralRe: Java Design Patterns: A Tutorial's CD-ROM Pin
aecordoba19-Sep-08 3:02
aecordoba19-Sep-08 3:02 
GeneralRe: Java Design Patterns: A Tutorial's CD-ROM Pin
CPallini19-Sep-08 3:06
mveCPallini19-Sep-08 3:06 
GeneralRe: Java Design Patterns: A Tutorial's CD-ROM Pin
Rajesh R Subramanian28-Sep-08 19:34
professionalRajesh R Subramanian28-Sep-08 19:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.