I am working on j2se bluetooth program which acceps connection from clients or (bluetooth devices).
I encountered an runtime exception in my application which says UnsatisfiedLinkError.
I googled about it but thought posting here might get an detailed explanation & solution..

The error goes like this..

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.midp.Configur
ation.getProperty0(Ljava/lang/String;)Ljava/lang/String;
        at com.sun.midp.Configuration.getProperty0(Native Method)
        at com.sun.midp.Configuration.getProperty(Configuration.java:34)
        at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91)

        at javax.microedition.io.Connector.open(Connector.java:158)
        at javax.microedition.io.Connector.open(Connector.java:138)
        at javax.microedition.io.Connector.open(Connector.java:120)
        at SampleSPPServer.startServer(SampleSPPServer.java:26)
        at SampleSPPServer.main(SampleSPPServer.java:60)
BlueCove stack shutdown completed

Thanks in Advance...

Recommended Answers

All 3 Replies

explanation

possible solution: add a try-catch block

Try-catch is already placed . But still the same error.

then handle the excepion in a better way. look at what may cause this exception, and write your code in such a way, that either it is impossible to get this exception, or at least, that the propability of this exception being thrown to be minimized.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.