更新了Eclipse,不能删除Jar [英] Updated Eclipse, cannot remove Jar

查看:829
本文介绍了更新了Eclipse,不能删除Jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我的libs文件中删除了一个jar,现在我无法构建该项目,该jar不会消失。



我已经尝试清理该项目,修复有没有人有这个问题?

 

code>描述资源路径位置类型
归档所需库:项目APP中的'C:/apps/APP/libs/imagecrop.jar'无法读取或不是有效的ZIP文件APP Build路径构建路径问题


解决方案

您需要将其从建立路径右键单击您的项目,转到属性 - >构建路径。构建路径包含四个选项卡:



Java构建路径属性页包含四个选项卡:




  • 来源。源文件夹和输出文件夹。如果您最初创建一个没有单独的源文件和输出文件夹的项目,可以在此处进行更改。多个源文件夹可以在一个项目中使用;例如,将应用程序源代码与单元测试分开。


  • 项目。检查工作区中其输出文件夹应该添加到此构建路径的其他项目。


  • 库。该项目所需的其他存档文件的位置。


  • 订单和导出。项目和库出现在构建路径和默认运行时类路径中的顺序;例如,在使用归档库中的相同类之前,使用工作区项目中的类。




转到库选项卡删除您删除的jar文件。



还可以通过右键单击 - 刷新来刷新您的项目,以便它会实现您删除的jar文件。


I deleted a jar from my libs file and now I cannot build the project and the jar will not go away.

I've tried cleaning the project, fixing the android properties now I'm stuck.

Has anyone else had this problem?

Description Resource    Path    Location    Type
Archive for required library: 'C:/apps/APP/libs/imagecrop.jar' in project 'APP' cannot be read or is not a valid ZIP file   APP     Build path  Build Path Problem

解决方案

You need to remove it from your build path. Right click your project, go to Properties->Build Path. The build path contains four tabs:

The Java Build Path properties page contains four tabs:

  • Source. The source and output folders. If you initially create a project without separate source and output folders, you can change it here. Multiple source folders can be used in one project; e.g., to separate application source code from unit tests.

  • Projects. Check-off other projects in the workspace whose output folders should be added to this build path.

  • Libraries. Location of other archive files required by this project.

  • Order and Export. Order in which projects and libraries appear in the build path and the default runtime classpath; e.g., use classes from a workspace project before using the same classes from an archive library.

Go to libraries tab and remove the jar file you deleted.

Also refresh your project by right click -> Refresh so it will realize you deleted jar file.

这篇关于更新了Eclipse,不能删除Jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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