Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.java > #1820

bluetooth

Newsgroups fr.comp.lang.java
Date 2021-04-07 05:12 -0700
Message-ID <d03b2481-8fc0-486c-ade0-d1a508a805a7n@googlegroups.com> (permalink)
Subject bluetooth
From remy aumeunier <remy.aumeunier@gmail.com>

Show all headers | View raw


bonjour 

a partir de 
***********
import javax.bluetooth.*;
import java.io.IOException;

public class ScanBluetools {

	public static void main(String args[])
	{
		try {
		LocalDevice device = LocalDevice.getLocalDevice();
        System.out.println("Address : " + device.getBluetoothAddress());
        System.out.println("Name : " + device.getFriendlyName());
		} catch (Exception e){System.out.println(e);}
	}
}
***********
puis sous windows dans une console dos 

C:\...\java\test>javac -classpath ".\microemu-jsr-82-2.0.1.jar" ScanBluetools.java

C:\...\java\test>java -classpath ".\microemu-jsr-82-2.0.1.jar;." ScanBluetools
java.lang.RuntimeException: Not implemented
        at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:31)
        at ScanBluetools.main(ScanBluetools.java:10)
java.lang.RuntimeException: Not implemented

C:\...\java\test>


une idee ?? a mon avis il manque quelque chose comme un binaire ou une dll peut etre

merci pour tous retour

cdl remy



Back to fr.comp.lang.java | Previous | Next | Find similar


Thread

bluetooth remy aumeunier <remy.aumeunier@gmail.com> - 2021-04-07 05:12 -0700

csiph-web