Error on "rebuildjar.sh"

18 views
Skip to first unread message

Renato Oliveira

unread,
Feb 10, 2010, 10:33:43 AM2/10/10
to EtherPad Open Source Discussion
I thougt my etherpad's service was almost running, but... ther is
another error.

./bin/rebuildjar.sh
using JAR fastjar...
unzipping JARs...
making cached JAR....
compiling...
compiling with 'fsc'...
compiling common...
Note: net.appjet.common/util/HttpServletRequestFactory.java uses or
overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: net.appjet.common/util/HttpServletRequestFactory.java uses
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:24: error: type mismatch;
found : java.lang.Class
required: Class[_]
var cls: Class[_] = obj.getClass;
^
/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:42: error: type mismatch;
found : java.lang.Class
required: Class[_]
cls = cls.getSuperclass;
^
/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:51: error: value printf is not a member of
java.io.PrintWriter
out.printf("%30s: %s\n", name+prefix, String.valueOf(value));
^
three errors found
which: no growlnotify in (/home/etherpad/scala-2.7.7.final/bin/:/usr/
kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/
bin:/usr/sbin:/usr/bin:/root/bin)


Can anybody help?

Thanks

John McLear

unread,
Feb 10, 2010, 10:34:21 AM2/10/10
to etherpad-open-...@googlegroups.com
java -version returns what?

Renato Oliveira

unread,
Feb 10, 2010, 10:45:21 AM2/10/10
to etherpad-open-...@googlegroups.com
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)


2010/2/10 John McLear <john...@gmail.com>

John McLear

unread,
Feb 10, 2010, 10:51:32 AM2/10/10
to etherpad-open-...@googlegroups.com
install the correct version of java - see www.mclear.co.uk search for etherpad

Tiago Serafim

unread,
Feb 10, 2010, 10:55:23 AM2/10/10
to etherpad-open-...@googlegroups.com
You have to use the sun-java-sdk 1.6.


On Wed, Feb 10, 2010 at 1:45 PM, Renato Oliveira <cpdvi...@gmail.com> wrote:
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-46)




--
Tiago Serafim

lijun

unread,
Feb 17, 2010, 2:08:01 AM2/17/10
to EtherPad Open Source Discussion
I also need some hints on this... It seems that I have a very similar
problem, but my java version is new :

java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)

And the error message I get when running bin/rebuildjar.sh is

Note: net.appjet.common/util/HttpServletRequestFactory.java uses or
overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: net.appjet.common/util/HttpServletRequestFactory.java uses
unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:24 error: identifier expected but '_' found.


var cls: Class[_] = obj.getClass;
^

/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:24 error: ']' expected but ';' found.


var cls: Class[_] = obj.getClass;
^

/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:28 error: 'val' expected but identifier found.
for(i <- 0 until Array.getLength(obj)) {
^
/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:31 error: illegal start of simple pattern
}
^
/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:30 error: '<-' expected but '}' found.
}
^
/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:34 error: 'val' expected but identifier found.
for (f <- cls.getDeclaredFields) {
^
/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:43 error: illegal start of simple pattern
}
^
/usr/local/etherpad/trunk/infrastructure/net.appjet.common/rhino/
rhinospect.scala:42 error: '<-' expected but '}' found.
cls = cls.getSuperclass;
^
8 errors found


On Feb 10, 10:55 am, Tiago Serafim <tsera...@gmail.com> wrote:
> You have to use the sun-java-sdk 1.6.
>

stelund

unread,
Feb 17, 2010, 10:34:15 AM2/17/10
to EtherPad Open Source Discussion
I had the same issue but solved it by adding the scala bin path to my
PATH environment. I think it used some of the systems scala 2.3
binary.

export PATH=/home/stelund/Download/scala-2.7.7.final/bin:$PATH

Stefan

John McLear

unread,
Feb 17, 2010, 12:22:42 PM2/17/10
to etherpad-open-...@googlegroups.com
http://www.mclear.co.uk/2009/12/installing-etherpad-on-debian.html <-- refer to that doc for installation if possible

phoebebright

unread,
Feb 22, 2010, 10:42:55 AM2/22/10
to EtherPad Open Source Discussion
John,

I am having the same errors as lijun. Am installing on Ubuntu Hardy
and my version is java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)

It was not clear to me from your post if it had to be 1.6.0_17 or
whether 06 would be ok.

Have zero knowledge of java and having got this far am hoping there is
a simple fix!

Phoebe,

John McLear

unread,
Feb 22, 2010, 1:28:19 PM2/22/10
to EtherPad Open Source Discussion
We sent a session working on this.

The fault was fixed by updating java and scala to match my version.

Renato Oliveira

unread,
Mar 1, 2010, 12:36:17 PM3/1/10
to EtherPad Open Source Discussion
This is my problem:

org.mozilla.javascript.EvaluatorException: syntax error
(syntaxerror.js#17)
at
org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:
109)
at
org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:
96)
at org.mozilla.javascript.Parser.addError(Parser.java:146)
at org.mozilla.javascript.Parser.reportError(Parser.java:160)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2464)
at org.mozilla.javascript.Parser.memberExpr(Parser.java:1950)
at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1808)
at org.mozilla.javascript.Parser.mulExpr(Parser.java:1737)
at org.mozilla.javascript.Parser.addExpr(Parser.java:1718)
at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1698)
at org.mozilla.javascript.Parser.relExpr(Parser.java:1672)
at org.mozilla.javascript.Parser.eqExpr(Parser.java:1628)
at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1617)
at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1606)
at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1595)
at org.mozilla.javascript.Parser.andExpr(Parser.java:1583)
at org.mozilla.javascript.Parser.orExpr(Parser.java:1571)
at org.mozilla.javascript.Parser.condExpr(Parser.java:1554)
at org.mozilla.javascript.Parser.assignExpr(Parser.java:1539)
at org.mozilla.javascript.Parser.expr(Parser.java:1518)
at org.mozilla.javascript.Parser.statementHelper(Parser.java:
1245)
at org.mozilla.javascript.Parser.statement(Parser.java:708)
at org.mozilla.javascript.Parser.parse(Parser.java:401)
at org.mozilla.javascript.Parser.parse(Parser.java:338)
at
org.mozilla.javascript.optimizer.ClassCompiler.compileToClassFiles(ClassCompiler.java:
161)
at net.appjet.bodylock.compilationutils
$.compileToBytes(bodylock.scala:188)
at net.appjet.bodylock.Compiler
$.compileSingleFile(bodylock.scala:265)
at net.appjet.bodylock.Compiler$$anonfun$main
$2.apply(bodylock.scala:288)
at net.appjet.bodylock.Compiler$$anonfun$main
$2.apply(bodylock.scala:277)
at scala.Iterator$class.foreach(Iterator.scala:414)
at scala.runtime.BoxedArray
$AnyIterator.foreach(BoxedArray.scala:45)
at scala.Iterable$class.foreach(Iterable.scala:256)
at scala.runtime.BoxedArray.foreach(BoxedArray.scala:24)
at net.appjet.bodylock.Compiler$.main(bodylock.scala:277)
at net.appjet.bodylock.Compiler.main(bodylock.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at scala.tools.nsc.ObjectRunner$$anonfun$run
$1.apply(ObjectRunner.scala:75)
at scala.tools.nsc.ObjectRunner
$.withContextClassLoader(ObjectRunner.scala:49)
at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:74)
at scala.tools.nsc.MainGenericRunner
$.main(MainGenericRunner.scala:154)
at
scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)

P.S.:

# java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)

Run on DEBIAN LENNY.


Thanks for help.

Tiago Serafim

unread,
Mar 1, 2010, 12:41:23 PM3/1/10
to etherpad-open-...@googlegroups.com
OpenSDK doesn't work. You have to use Sun's SDK.

Charlie Cheever

unread,
Apr 13, 2010, 6:50:44 PM4/13/10
to EtherPad Open Source Discussion
you probably are using an outdated version of scala. downloading the
latest version directly and using that will likely fix this error for
you.
Reply all
Reply to author
Forward
0 new messages