LighOfDarkness
LighOfDarkness

Reputation: 39

How to integrate external packages in java?

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?

Upvotes: 1

Views: 166

Answers (1)

cc959
cc959

Reputation: 113

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

My Folder

As you can see, I added RXTX (a serial comm library) to mine and I can now use it in my code.

Upvotes: 1

Related Questions