On Tue, Oct 04, 2005 at 07:03:05PM +0400, Ivan S. Dubrov wrote: > Do not know there to post, so I post here. > > Eclipse 3.1 packages (from http://www.backports.org/~mkoch/) contain a bug - > the plugin org.apache.ant is missing libraries (like ant-jai.jar, etc), but > MANIFEST.MF of the org.apache.ant have them in the classpath. This leads to > the following error when executinf headless Eclipse ant build: > > java.lang.NullPointerException > at > org.eclipse.core.internal.runtime.InternalPlatform.asLocalURL(InternalPlatform.java:206) > at org.eclipse.core.runtime.Platform.asLocalURL(Platform.java:507) > at > org.eclipse.ant.core.AntCorePreferences.addLibraries(AntCorePreferences.java:806) > at > org.eclipse.ant.core.AntCorePreferences.getDefaultAntHomeEntries(AntCorePreferences.java:426) > at > org.eclipse.ant.core.AntCorePreferences.getDefaultAntHome(AntCorePreferences.java:294) > at > org.eclipse.ant.core.AntCorePreferences.restoreAntHome(AntCorePreferences.java:282) > at > org.eclipse.ant.core.AntCorePreferences.restoreCustomObjects(AntCorePreferences.java:189) > at > org.eclipse.ant.core.AntCorePreferences.<init>(AntCorePreferences.java:155) > at > org.eclipse.ant.core.AntCorePlugin.setRunningHeadless(AntCorePlugin.java:225) > at org.eclipse.ant.core.AntRunner.run(AntRunner.java:473) > at > org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) > at > org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) > at org.eclipse.core.launcher.Main.basicRun(Main.java:278) > at org.eclipse.core.launcher.Main.run(Main.java:973) > at org.eclipse.core.launcher.Main.main(Main.java:948) > > Solution: > > Add missing libraries or remove missing classpath entries from the > org.apache.ant/META-INF/MANIFEST.MF
Thanks for reporting this. I removed all missing jars that are missing in Debian from org.apache.ant/META-INF/MANIFEST.MF. This fix will be in the next upload called 3.1.1-1 which will be uploaded to contrib this week. Then it will take some days for the ftp-masters to accept or reject it. I will also upload it to the above page you got this version from. Cheers, Michael -- Escape the Java Trap with GNU Classpath! http://www.gnu.org/philosophy/java-trap.html Join the community at http://planet.classpath.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]