Error installing with ant

Problems with Java, jogl, etc?
Post Reply
NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Error installing with ant

Post by NormanGraf » Thu 2. Sep 2010, 00:10

I tried installing jReality following the instructions at:

http://www3.math.tu-berlin.de/jreality/ ... t-tutorial

The build failed with the appended error message.
Any advice on how to proceed (either by providing the missing
files or disabling the building of the audio files) would be
appreciated.
Thanks.


> ant release

Buildfile: build.xml

init:

core:

audio:
[javac] Compiling 45 source files to /jReality/jr_release/jr/build/audio
[javac] /jReality/jr_release/jr/src-audio/de/jreality/audio/puredata/PureDataHub.java:3: package org.puredata.core does not exist
[javac] import org.puredata.core.PdBase;
[javac] ^
[javac] /jReality/jr_release/jr/src-audio/de/jreality/audio/puredata/PureDataHub.java:4: package org.puredata.core.utils does not exist
[javac] import org.puredata.core.utils.PdUtils;
[javac] ^
[javac] /jReality/jr_release/jr/src-audio/de/jreality/audio/puredata/PureDataHub.java:13: cannot find symbol
[javac] symbol : variable PdBase
[javac] location: class de.jreality.audio.puredata.PureDataHub
[javac] private final static int BLOCKSIZE = PdBase.blockSize();
[javac] ^
[javac] /jReality/jr_release/jr/src-audio/de/jreality/audio/puredata/PureDataHub.java:99: cannot find symbol
[javac] symbol : variable PdBase
[javac] location: class de.jreality.audio.puredata.PureDataHub
[javac] PdBase.openAudio(0, nChannels, sampleRate, 1);
[javac] ^
[javac] /jReality/jr_release/jr/src-audio/de/jreality/audio/puredata/PureDataHub.java:100: cannot find symbol
[javac] symbol : variable PdUtils
[javac] location: class de.jreality.audio.puredata.PureDataHub
[javac] PdUtils.computeAudio(true);
[javac] ^
[javac] /jReality/jr_release/jr/src-audio/de/jreality/audio/puredata/PureDataHub.java:141: cannot find symbol
[javac] symbol : variable PdBase
[javac] location: class de.jreality.audio.puredata.PureDataHub
[javac] PdBase.processRaw(inBuffer, outBuffer);
[javac] ^
[javac] 6 errors


BUILD FAILED
/jReality/jr_release/jr/build.xml:301: Compile failed; see the compiler error output for details.

Total time: 3 seconds

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Error installing with ant

Post by Andre » Thu 2. Sep 2010, 08:31

This problem should be solved now. I've excluded the two classes PureDataHub.java and PdExamples.java and have written a mail to the author. It seems that there is a missing library.

NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Re: Error installing with ant

Post by NormanGraf » Thu 2. Sep 2010, 18:36

Thank you very much for your prompt action and reply. I am now able to build successfully on linux.
However, on Windows I experienced the following error with the javadoc target.
I was able to build the release by turning the javadoc target into a no-operation, but wanted to
report this in case it is not specific to my installation.
I'm looking forward to working through the tutorials.
Thanks again.


C:\jReality\jr>..\..\apache-ant-1.8.1\bin\ant release
Buildfile: C:\jReality\jr\build.xml

init:

core:
[javac] C:\jReality\jr\build.xml:275: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

audio:
[javac] C:\jReality\jr\build.xml:301: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

tools:
[javac] C:\jReality\jr\build.xml:287: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

backends-share:
[javac] C:\jReality\jr\build.xml:309: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

io:
[javac] C:\jReality\jr\build.xml:337: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

proxies:
[javac] C:\jReality\jr\build.xml:393: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

jogl:
[javac] C:\jReality\jr\build.xml:409: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

soft:
[javac] C:\jReality\jr\build.xml:401: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

renderman:
[javac] C:\jReality\jr\build.xml:447: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

ui:
[javac] C:\jReality\jr\build.xml:353: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

portal:
[javac] C:\jReality\jr\build.xml:463: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

gpgpu:
[javac] C:\jReality\jr\build.xml:424: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

swing:
[javac] C:\jReality\jr\build.xml:317: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

sunflow:
[javac] C:\jReality\jr\build.xml:455: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

vr:
[javac] C:\jReality\jr\build.xml:366: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

examples:
[javac] C:\jReality\jr\build.xml:379: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

plugin:
[javac] C:\jReality\jr\build.xml:472: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

tutorial:
[javac] C:\jReality\jr\build.xml:485: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds

dist:

release-jar:

release-src:
[mkdir] Created dir: C:\jReality\jr\release\tmp\src
[copy] Copying 1231 files to C:\jReality\jr\release\tmp\src
[zip] Building zip: C:\jReality\jr\release\jReality-src.zip
[delete] Deleting directory C:\jReality\jr\release\tmp

javadoc:
[javadoc] Generating Javadoc
[javadoc] Javadoc execution

BUILD FAILED
C:\jReality\jr\build.xml:500: Javadoc failed: java.io.IOException: Cannot run program "C:\jdk1.6\bin\javadoc.exe": CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
at org.apache.tools.ant.taskdefs.Javadoc.execute(Javadoc.java:1758)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
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: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 21 more

Total time: 30 seconds

NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Re: Error installing with ant

Post by NormanGraf » Thu 2. Sep 2010, 18:51

Adding

Code: Select all

 useexternalfile="true" 
to the javadoc target on line 500 of build.xml solves the previously posted problem on Windows using ant 1.8.1.
Apologies for the multiple posts.

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Error installing with ant

Post by Andre » Fri 10. Sep 2010, 18:43

NormanGraf wrote:Adding

Code: Select all

 useexternalfile="true" 
to the javadoc target on line 500 of build.xml solves the previously posted problem on Windows using ant 1.8.1.
Apologies for the multiple posts.
Thanks for your solution. I've added it and tried to compile the api at a linux system. Seems to work -> Is now commited

Regards
Andre

Post Reply