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

前端 未结 2 1876
孤街浪徒
孤街浪徒 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).

提交回复
热议问题