Where to install the import modules used in a java program?

前端 未结 2 1872
孤街浪徒
孤街浪徒 2021-01-26 09:46

For a program the import headers are showing errors. From where can i download the importing packages? The import instance of the program is shown below..

packag         


        
相关标签:
2条回答
  • 2021-01-26 10:08

    All the java.awt and javax.swing classes are part of the standard Java platform.

    The javax.media classes are part of the Java Media Framework. You'd have to download and install that separately.

    The MatchTemplate thing seems to come from here.

    To find where a package come from, look through the Java SE API documentation or search for the package name on Google.

    You need to put the relevant JAR files to your classpath while compiling and running your application which uses these classes (except if they are classes in the standard Java platform; these will be automatically available).

    0 讨论(0)
  • 2021-01-26 10:11

    Most of those classes are available in JSE, but it looks like it's also using JMF. You can download JMF from here: JMF Download

    You don't install modules, you just add jars/classes to the classpath. How you do that depends on if you are using an IDE or not. This article can give you some insight on how things work: PATH and CLASSPATH

    0 讨论(0)
提交回复
热议问题