I'm trying to develop an app that uses Bluetooth technology, so I need javax.bluetooth & javax.obex & javax.microedition packages. I've downloaded it but I don't know how to properly place it and where so the Java can see it while compilation. How do I integrate it?
Asked
Active
Viewed 128 times
1 Answers
1
It depends on what tool you're using to create your jar. For example: Maven, Eclipse or IntelliJ. Usually you can find an answer that is relevant to your build method by simply googling it.
However, if you want to permenantly add them to your JDK, you'll have to paste them in your JDK's integrated jre into the following folder: \jre\lib\ext
For me that would be: C:\Program Files\Java\jdk1.8.0_231\jre\lib\ext
As you can see, I added RXTX (a serial comm library) to mine and I can now use it in my code.

Wai Ha Lee
- 8,598
- 83
- 57
- 92

cc959
- 103
- 1
- 12
-
1I'm not using any IDE, the thing is these packages are not in the standard edition so I need to integrate it separately. I know that I can just place it in my project's package but it would be a bad design and I would have to do it again when I need it in the next project. – LighOfDarkness Feb 22 '20 at 18:28
-
Ah, so you want to add them to your JDK's library? Wait, I'll add that to my response... – cc959 Feb 22 '20 at 18:33
-
Done with the modification! – cc959 Feb 22 '20 at 18:44