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 » Fri 28. Jan 2011, 21:56

Hello All,
After a long hiatus, I tried updating my jReality installation following the usual instructions at http://www3.math.tu-berlin.de/jreality/ ... t-tutorial

On Windows / cygwin, with:

Java 1.6.0_16
and
Apache Ant version 1.8.1 compiled on April 30 2010

I encountered the following error:

Buildfile: C:\jReality\jr\build.xml

init:

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

audio:
[javac] C:\jReality\jr\build.xml:303: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable
builds
[javac] Compiling 45 source files to C:\jReality\jr\build\audio
[javac] C:\jReality\jr\src-audio\de\jreality\audio\jack\JackAmbisonicsStereoDecoder.java:9: package de.jreality.plugin does not exist
[javac] import de.jreality.plugin.JRViewer;
[javac] ^
[javac] C:\jReality\jr\src-audio\de\jreality\audio\jack\JackAmbisonicsStereoDecoder.java:30: cannot find symbol
[javac] symbol : variable JRViewer
[javac] location: class de.jreality.audio.jack.JackAmbisonicsStereoDecoder
[javac] JRViewer.getLastJRViewer();
[javac] ^
[javac] 2 errors

BUILD FAILED
C:\jReality\jr\build.xml:303: Compile failed; see the compiler error output for details.

Total time: 2 seconds


Before I start debugging, I wanted to check whether this is a known, or repeatable, bug.
Thank you very much,
Norman

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

Re: Error installing with ant

Post by Andre » Fri 28. Jan 2011, 22:00

Thx for reporting this Bug. I have the same problems. I'll start fix it asap and I'll also build a new release.

Best Andre

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

Re: Error installing with ant

Post by Andre » Fri 28. Jan 2011, 22:17

Should be fixed now.

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

Re: Error installing with ant

Post by NormanGraf » Fri 28. Jan 2011, 23:38

Wow! Thanks Andre. That was fast, and on a Friday afternoon.
In case it can be of any use to others, here's a shell script I use to update my jReality installation. As written, it should work in a cygwin shell on Windows. For linux, simply change the classpath file separators from ";" to ":". It presupposes (but doesn't check) that ant is available, and that JAVA_HOME is defined.
Thanks again,
Norman

Code: Select all

#
# Simple script to aid in updating a jReality installation
# Follows command-line instructions at:
#
# http://www3.math.tu-berlin.de/jreality/mediawiki/index.php/JReality-release-with-ant-tutorial
#
# 2011-01-26
# Norman Graf
#

#
# create a working directory
#
mkdir  `date '+%Y-%m-%d'`

echo $JAVA_HOME
ant -version

#
# get the latest snapshot and build the release
#
cd jr
svn update

ant release

cd release
cp -v * ../../`date '+%Y-%m-%d'`

#
# build the tutorials
#
cd ../../`date '+%Y-%m-%d'`

wget http://www3.math.tu-berlin.de/jreality/download/latest/jReality-tutorial.zip
unzip jReality-tutorial.zip

wget http://www3.math.tu-berlin.de/jreality/download/latest/jReality-3rd-party.zip
unzip jReality-3rd-party.zip

cd tutorial

rm de/jreality/tutorial/audio/MinimalExample.java
rm de/jreality/tutorial/misc/JLinkExample.java

rm de/jreality/tutorial/viewer/GLJPanelViewerExample.java

export CLASSPATH="../jReality.jar;../lib/jrworkspace.jar;../lib/beans.jar"

javac de/jreality/tutorial/*/*.java

#
# Now to setup and run
#

cd ..
# what we had before:
export CLASSPATH="jReality.jar;lib/jrworkspace.jar;lib/beans.jar"
# 3rd party libs:
export CLASSPATH="$CLASSPATH;lib/xstream.jar;lib/xpp3.jar"
# more 3rd party libs:
export CLASSPATH="$CLASSPATH;lib/colorpicker.jar;lib/bsh.jar;lib/jterm.jar"
# vr data (textures, sky boxes)
export CLASSPATH="$CLASSPATH;lib/vrData.jar"

export CLASSPATH="$CLASSPATH;tutorial"

# test an example
java de.jreality.tutorial.geom.Cube05

Post Reply