5

After updating to the latest eclipse mars release

Version: Mars Release Candidate 1 (4.5.0RC1)
Build id: 20150521-1252

I am not able to start any Ant Script. It always results in the following error:

ErrorDialog

First I checked if the path is really correct, and made sure that the specific jar org.eclipse.swt.win32.win32.x86_64_3.104.0.v20150513-1901.jar exists at the given location, which it does. After some digging I noticed the following within the external tools configurations:

ExternalToolsConfiguration

Somehow I think eclipse is not able to resolve the classpath with the given '%20' tag within the url to the library. Usually there is just a blank. Restoring the defaults always fills in the '%20' for this specific library.

So I created a copy of eclipse at a location without blanks and all works fine again.

Unfortunatly I would prefer keeping the location at it is, so is there a way to correctly resolve the classpath for Additional Tasks & Support?

crusam
  • 6,140
  • 6
  • 40
  • 68

3 Answers3

4

There is one other "fix" that's basically an easier workaround.

If you go to your Ant build configuration (under External Tools, then highlight your configuration and select the JRE tab) and change from running an external JRE to the top button, that is, "Run in the same JRE as the workspace", this will make it work.

Robert Longson
  • 118,664
  • 26
  • 252
  • 242
Thomas Adkins
  • 412
  • 3
  • 6
  • 1
    This should be the accepted answer, because it's easy, explains why some build.xml might be executable, while others not and is tracable if you already version your launch files like I do. Thanks! – Thorsten Schöning Aug 31 '15 at 13:18
  • 1
    Eclipse 4.5.1 was released and the bug is now fixed. – user1438038 Oct 05 '15 at 07:39
1

This is a known bug in Eclipse Mars:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=470390

Update: Eclipse 4.5.1 was released on October the 2nd and the bug has been fixed. An Eclipse update will resolve this issue.

user1438038
  • 5,821
  • 6
  • 60
  • 94
0

I resolved this by moving C:\Program Files\eclipse to C:\eclipse

Answer also found here, Eclipse Mars: ANT Task references missing SWT library

Community
  • 1
  • 1
Samuel Ng
  • 11
  • 1