Java 缺少构建路径条目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24095581/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 10:07:56  来源:igfitidea点击:

build path entries are missing

javaeclipse

提问by user3696672

I have copied my project from one system to another,now I am trying to run it,I am having a message in build path that 95 build path entries are missing. I am having main problem with importing some packages like:

我已将我的项目从一个系统复制到另一个系统,现在我正在尝试运行它,我在构建路径中收到一条消息,指出缺少 95 个构建路径条目。我在导入一些包时遇到了主要问题,例如:

import net.sf.jasperreports.engine.JRException;

import net.sf.jasperreports.engine.JRField


import net.sf.jasperreports.engine.*;

import net.sf.jasperreports.engine.design.JasperDesign;

import net.sf.jasperreports.engine.xml.JRXmlLoader;

import com.mysql.jdbc.Connection;

import com.mysql.jdbc.PreparedStatement;


import com.mysql.jdbc.Statement;

import org.krysalis.barcode4j.BarcodeDimension;


import org.krysalis.barcode4j.HumanReadablePlacement;

import org.krysalis.barcode4j.impl.AbstractBarcodeBean;

import org.krysalis.barcode4j.impl.code128.Code128Bean;

import org.krysalis.barcode4j.impl.upcean.EAN13Bean;

import org.krysalis.barcode4j.output.java2d.Java2DCanvasProvider;

import org.jdesktop.swingx.JXTaskPane;

import org.jdesktop.swingx.JXTaskPaneContainer;

import orgimp.pushingpixels.substance.api.SubstanceLookAndFeel;

import org.pushingpixels.substance.api.SubstanceSkin;

回答by Nirav Prajapati

right click on project

右键单击项目

go to properties-->java build path--->Libraries

properties-->java build path--->Libraries

add all library that needs in your project

添加项目中需要的所有库

and also check your java compiler

并检查你的java编译器

go to properties-->java compiler

properties-->java compiler

choose necessary java compiler

选择必要的java编译器

------------------------------- OR ---------------------------------------------

- - - - - - - - - - - - - - - - 或者 - - - - - - - - - ---------------------------

it may be possible that required jar files are not present in your lib folder

您的 lib 文件夹中可能不存在所需的 jar 文件

回答by Abhishek Mishra

if you are using eclipse ,then right click on project

如果您使用的是 eclipse,则右键单击项目

Properties->java build path
now check source all class file src is added or not,
check libraries that all necessary jar is added or not

if yor are running through comand prompt then you need to set path in command line 

回答by user4097032

Try deleting those entries from build path (make sure you leave the jars which eclipse already can find).

尝试从构建路径中删除这些条目(确保保留 eclipse 已经可以找到的 jars)。