Results 1 to 6 of 6

Thread: Problem: Java / ANT / NetBeans

  1. #1
    Join Date
    Mar 2011
    Location
    Czech Republic
    Posts
    17

    Default 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:

    Code:
    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...

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,447
    Blog Entries
    2

    Default Re: Problem: Java / ANT / NetBeans

    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

  3. #3
    Join Date
    Mar 2011
    Location
    Czech Republic
    Posts
    17

    Default Re: Problem: Java / ANT / NetBeans


  4. #4

    Question Re: Problem: Java / ANT / NetBeans

    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 SDBypper troubleshooting - openSUSE for instructions.

    I hope you can help me.

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Problem: Java / ANT / NetBeans

    On 05/16/2013 06:26 PM, YACT wrote:
    >
    > Please file a bug report about this.
    > See 'SDBypper 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


  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,447
    Blog Entries
    2

    Default Re: Problem: Java / ANT / NetBeans

    Quote Originally Posted by YACT View Post
    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 SDBypper troubleshooting - openSUSE for instructions.

    I hope you can help me.
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •