Ant build with Eclipse Mars error due to missing classpath link

I recently switched to Eclipse Mars and installed the JDK 8u51. I use the JBoss Tools plugin with my Eclipse and have a couple Ant files to create my projects.

If I double-clicked the build file in the Ant view, my project would not be built. Instead, I get this error message:

The archive: C:/Program%20Files%20(x86)/Eclipse%20Mars/plugins/org.eclipse.swt.win32.win32.x86_64_3.104.0.v20150528-0211.jar which is referenced by the classpath, does not exist.

I checked the file system and the JAR is actually there. Any ideas how I could fix this? Maybe it's spaces ( %20) in the path name?

Unfortunately, I do not know where this addiction comes from. In the Configuration of external tools, it is under Additional tasks and support , but I can not edit the entry there. I also did not find another dialog where I can configure this link.

+4
source share
3 answers

Eclipse 4.5.1 was released on October 2, and Error 470390 was fixed .

An update fixes this problem.

+1
source

Having the same problem with Eclipse Mars, it turned out that the problem was with the material "% 20" and not with the can.

You can work in a different folder than "Program Files" (install eclipse somewhere else, ...) or create a symbolic link so that ant can see the existing repository as it knows it. Run the following command at an elevated command prompt ( Start > Type cmd > Right click and Run as administrator)

mklink /d c:\Program%20Files%20(x86) "c:\Program Files (x86)"

(and the same for the Eclipse Mars directory, which you can also rename to remove the space)

+10
source

.

+1

Source: https://habr.com/ru/post/1598169/


All Articles