简体   繁体   English

在Java构建路径中删除.jar或将路径从E:更改为F:

[英]Delete .jar in java build path or change path from E: to F:

I'm working on a Java project on a Windows 10 laptop in which I added external archives. 我正在Windows 10笔记本电脑上的Java项目中进行工作,并在其中添加了外部档案。 I located my workspace on a USB-stick. 我将工作区放在USB记忆棒上。 This works fine on my laptop. 这在我的笔记本电脑上工作正常。

On my Windows 10 PC, I get the following error: 在Windows 10 PC上,出现以下错误:

Project '' is missing required library: 'E:\jar.jar'

E:\\ is a disk-drive on my PC. E:\\是我的PC上的磁盘驱动器。

Now I tried to add the same external archive again, but that does not solve it. 现在,我尝试再次添加相同的外部存档,但这并不能解决。 I want to either delete the path-reference or move it, so it works again. 我想删除路径参考或移动它,因此它可以再次工作。

I also work on this project on Linux, but I don't program on the same workspace (I copy and paste the code between them) and I know that on Linux you mount a USB-stick like a CD, which may also have caused the problem. 我也在Linux上从事该项目的工作,但是我不在同一工作区编程(我在它们之间复制并粘贴代码),并且我知道在Linux上您安装了USB记忆棒(如CD),这也可能导致问题。

Project => Properties => Java Build Path => Libraries => Add JAR ...

I managed to solve my probem, this is how: 我设法解决了我的问题,方法是:

under build path - configure build path there is libraries which lets u delete the entries. 在构建路径下-配置构建路径下,有一些库可让您删除条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM