How to use 3rd party packages in Java

前端 未结 3 1631
既然无缘
既然无缘 2020-12-09 17:06

I\'m developping my first Java application which actually needs a 3rd party package and now I\'m lost as to how to actually use it. The packages I need are from VLCJ so that

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 17:35

    You need to add the jar file to the search path of javac when you compile your project; and you need to make the jar available at runtime-- it needs to be in the classpath of the java process that runs your program.

    If you are using an IDE, you usually update these paths in the project settings.

提交回复
热议问题