在哪里安装Java程序中使用的导入模块? [英] Where to install the import modules used in a java program?

查看:260
本文介绍了在哪里安装Java程序中使用的导入模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于程序,导入标题显示错误.我可以从哪里下载导入包?该程序的导入实例如下所示.

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.samples;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Panel;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;

import javax.media.Buffer;
import javax.media.CaptureDeviceInfo;
import javax.media.CaptureDeviceManager;
import javax.media.Manager;
import javax.media.MediaLocator;
import javax.media.Player;
import javax.media.control.FrameGrabbingControl;
import javax.media.format.VideoFormat;
import javax.media.util.BufferToImage;
import javax.swing.JButton;
import javax.swing.JComponent;

import com.larmor.opencv.MatchTemplate;

这一切都在java库中吗?即使是,请告诉我如何安装Java库中没有的软件包/模块.

would this all be in the java library? Even if yes pls tell me how to install packages/modules that are not in the java library..

推荐答案

这些类中的大多数在JSE中都可用,但看起来它也在使用JMF.您可以从此处下载JMF: JMF下载

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

您无需安装模块,只需将jar/类添加到类路径即可.如何执行此操作取决于是否使用IDE.本文可以为您提供一些有关工作原理的见解: PATH和CLASSPATH

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

这篇关于在哪里安装Java程序中使用的导入模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆