Bug#660719: RFP: Netlogo -- Agent-based programming language and integrated modeling environment
[Petter Reinholdtsen]
> Hi. Did you try to build it on Debian? How hard is it to build on
> Wheezy or unstable?
I gave it a go on Squeeze, and the build failed. The default build
rule expect to use SUN Java 6, and I patched it to use OpenJDK
instead. The build downloaded heaps of supporting libraries, and
finally failed with this error when I tested by running ./nightly.sh:
[info] Compiling 15 Scala sources to /home/pere/src/debian/NetLogo/project/target/scala-2.9.2/sbt-0.12/classes...
[error] /home/pere/src/debian/NetLogo/project/I18n.scala:27: object native2ascii is not a member of package sun.tools
[error] (new sun.tools.native2ascii.Main).convert(
[error] ^
[error] one error found
[error] (compile:compile) Compilation failed
I guess it will take a while to port it to OpenJDK and teach it to
only use packages in Debian. I am not skilled enough with Java
packaging to do so myself. :(
This was the patch I used:
diff --git a/sbt b/sbt
index 9fc45d7..bd9f667 100755
--- a/sbt
+++ b/sbt
@@ -10,7 +10,7 @@ if [[ `uname -s` == *CYGWIN* ]] ; then
else
CURR_DIR=`dirname $0`
if [ `uname -s` = Linux ] ; then
- export JAVA_HOME=/usr/lib/jvm/java-6-sun
+ export JAVA_HOME=/usr
else
if [ `uname -s` = Darwin ] ; then
export JAVA_HOME=`/usr/libexec/java_home -F -v1.6*`
--
Happy hacking
Petter Reinholdtsen
Reply to: