Adding a Third Party Library to Java Applet

前端 未结 2 883
一个人的身影
一个人的身影 2020-12-06 21:14

I have a Java Applet that needs a 3rd party library, but how do I add the jar to the classpath and reference it to the Java Applet?

My third party library is org.apa

2条回答
  •  臣服心动
    2020-12-06 21:51

    Do you want to embed your applet into a website / HTML with the applet tag?

    
    
    

    Deploying With the Applet Tag

    To compile it in console use:

    javac -classpath C:\dev\YourClass.java C:\dev\3thParty.jar
    

    Compiling the Example Programs

提交回复
热议问题