Problem: Java / ANT / NetBeans

There seems to be a bug in Ant or something. When trying to run a Java program (even simple ‘Hello world’), compilation never ends (the output field is empty in NetBeans) and there is the following error:

java.lang.NoSuchMethodError: org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
	at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:285)
	at org.apache.tools.ant.helper.ProjectHelper2.parseUnknownElement(ProjectHelper2.java:131)
	at org.apache.tools.ant.module.bridge.impl.NbAntlib.process(Unknown Source)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.addCustomDefs(Unknown Source)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(Unknown Source)
	at org.apache.tools.ant.module.run.TargetExecutor.run(Unknown Source)
[catch] at org.netbeans.core.execution.RunClassThread.run(Unknown Source)

I’m using Java Repository, NetBeans 6.8 and Java 1.6 packages (not OpenJDK) from SuSE Update. Downgrading Ant 1.8.2-21.1 (Java-repository) to the 1.7.1-12.1 version (Oss repository) solved the problem.

Hope it will help someone. Maybe additional information would be needed…

I don’t see a Java repository listed anywhere as an openSUSE repo.
Assume then that it’s a Sun/Oracle repo?

In that case, it’s their fault and I doubt that anyone associated with openSUSE can do much about their problem. As you’ve found, the OSS repo is packages that are “official” openSUSE.

Tony

Package repositories - openSUSE

I have the following problem when i try to install ant:

linux-v084:/home/pc16 # sudo zypper install ant
Refreshing service ‘junit.jar’.
Unexpected exception.
Parse error: repoindex.xml[22] Specification mandate value for attribute data-pjax-transient
Please file a bug report about this.
See SDB:Zypper troubleshooting - openSUSE for instructions.

I hope you can help me.

On 05/16/2013 06:26 PM, YACT wrote:
>
> Please file a bug report about this.
> See ‘SDB:Zypper troubleshooting - openSUSE’
> (http://en.opensuse.org/Zypper/Troubleshooting) for instructions.
>
> I hope you can help me.

-=WELCOME=- new poster, but have you filed the bug the output asks for?


dd

Try again.
Your error suggests a problem on the Server side (parsing repoindex.xml).

I just installed ant (something I’ve been meaning to do), and it installed without a problem.

TSU