Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2014 19:38:40 +0200
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-ports@freebsd.org
Cc:        danilo@FreeBSD.org
Subject:   Cannot build junit
Message-ID:  <535BEF20.6050706@netfence.it>

next in thread | raw e-mail | index | archive | help
Hello.

As per subject, I cannot build java/junit:

 > # cd /usr/ports/java/junit/
 > # make
 >....
> javadoc:
>   [javadoc] Generating Javadoc
>   [javadoc] Javadoc execution
>
> BUILD FAILED
> /usr/ports/java/junit/work/junit-team-junit-c62e2df/build.xml:148: Javadoc failed: java.io.IOException: Cannot run program "/usr/local/openjdk7/bin/javadoc": error=2, No such file or directory
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
>         at java.lang.Runtime.exec(Runtime.java:617)
>         at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)
>         at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
>         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
>         at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1785)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:435)
>         at org.apache.tools.ant.Target.performTasks(Target.java:456)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
>         at org.apache.tools.ant.Main.runBuild(Main.java:851)
>         at org.apache.tools.ant.Main.startAnt(Main.java:235)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
> Caused by: java.io.IOException: error=2, No such file or directory
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:184)
>         at java.lang.ProcessImpl.start(ProcessImpl.java:130)
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
>         ... 21 more


This is on 9.1/i386, and "/usr/local/openjdk7/bin/javadoc" exists and runs.


Any hint?

  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?535BEF20.6050706>