Skip to content Skip to sidebar Skip to footer

Where To Install The Import Modules Used In A Java Program?

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.. package com.larmor.opencv

Solution 1:

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

Solution 2:

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).

Post a Comment for "Where To Install The Import Modules Used In A Java Program?"