This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Running the Java GUI example on Windows 7



Well perhaps I don't understand yet how every thing works with the BLE, but I can at least work with Java.

After downloading the Java Example from :http://processors.wiki.ti.com/index.php/Category:BluetoothLE I've noticed that the example does not work for windows 7 in the current project configuration.(it also state that in the wiki, that "The COM port did not enumerate for me on Windows 7").

After messing a bit with the project, I've managed to get it working with a bit of Maven charm, and Google help, here is the final project:

CC2540-Java-Exmaple.jar

 

Steps:

1. To get the example application to work, you would need a Java IDE (with Maven support installed in case of Eclipse).

2. Unpack the rar into your IDE work space, and associate the project with the IDE.

3. If your IDE has Maven support it would bring the necessary dependencies.

4. Note: the "rxtxSerial.dll" & "rxtxParallel.dll" files in the project root folder, these are ch-rxtx-2.2-20081207-win-x64 as they were downloaded.

5. Note: that there are build path imports both via Maven, and traditional Eclipse build path, since the rxtx-2.2.jar package is not accessible via Maven.

6. If the project does not compile, this means that the JRE defined for the work space is not pointing to a JDK.

7. If you are running Eclipse using Maven you should also specify in the launch command of Eclipse the following parameters: -vm "(Path to JDK installation Bin folder)".

 

Have Fun,

Adam.

  • Thanks Adam,

    I've switched to C Sharp to do GUI development on Windows as we have built up functions to build and parse the commands.  It would be good to have a Java based class library, so let me know if you continue down this road and I can get you in touch with anyone else who tries to build this up.

    -Greg