Apache OpenOffice (AOO) Bugzilla – Issue 24154
Compilation error in "scripting" framework SRC680_m19
Last modified: 2004-02-20 11:04:04 UTC
Here's the error, all the rest compiled smoothly: == BEGIN == /extra/SRC680_m19/scripting/source/protocolhandler ------------- /extra/SRC680_m19/scripting/java ------------- java -Xmx128m org.apache.tools.ant.Main -Djava.home=/usr/local/java -Dant.home=/usr/local/ant -Dprj=.. -Dprjname=scripting -Ddebug=off -Doptimize=on -Dtarget=scriptruntimeforjava -Dsolar.update=on -Dout=../unxlngi4.pro -Dinpath=unxlngi4.pro -Dproext=.pro -Dsolar.bin=/extra/SRC680_m19/solver/680/unxlngi4.pro/bin -Dsolar.jar=/extra/SRC680_m19/solver/680/unxlngi4.pro/bin -Dsolar.doc=/extra/SRC680_m19/solver/680/unxlngi4.pro/doc -f build.xml -emacs Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main dmake: Error code 1, while making 'ANTBUILD' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /extra/SRC680_m19/scripting/java
Install Ant - it is compulsory. configure should change the checking for ant. Kevin? BTW: do we really want to make it compulsory?
Ken, I'm sorry. I did it again. Two beers for you now...
I've ANT installed, and I check LinuxIntelEnv.Set which I've "source" before the dmake, and it does contain the following line: setenv ANT_HOME "/usr/local/ant" does that mean "configure" did detect that and the compilation will use it? Thanks.
Which version of ant do you use? The newer ones do not work... Could you please try jakarta-ant-1.5.1-bin.zip?
[root@support SRC680_m19]# ant -version Apache Ant version 1.5 compiled on July 9 2002 seems to be 1.5 already.
Could you please try cp /usr/local/ant/{lib/,}ant.jar There was a bug in the past - see releases and thread about cws1216 in December. Does it work after copying it?
I executed the command that you recommended in the "scripting" directory, and then the error becomes: == BEGIN == compile: Compiling 25 source files to /extra/SRC680_m19/scripting/unxlngi4.pro/class This version of java does not support the classic compiler; upgrading to modern /extra/SRC680_m19/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java:33: package bsh does not exist import bsh.Interpreter; ^ /extra/SRC680_m19/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java:44: cannot resolve symbol symbol : class Interpreter location: class com.sun.star.script.framework.provider.beanshell.ScriptEditorForBeanShell private Interpreter sessionInterpreter; ^ /extra/SRC680_m19/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java:93: package bsh does not exist import bsh.BshClassManager; ^ /extra/SRC680_m19/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java:94: package bsh does not exist import bsh.Interpreter; .. . . . . . . /extra/SRC680_m19/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java:242: cannot resolve symbol symbol : class JavaScriptException location: class com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript._ScriptProviderForJavaScript catch (JavaScriptException jse) { ^ /extra/SRC680_m19/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java:251: cannot resolve symbol symbol : variable Context location: class com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript._ScriptProviderForJavaScript Context.exit(); ^ 34 errors BUILD FAILED file:/extra/SRC680_m19/scripting/java/build.xml:114: Compile failed; see the compiler error output for details. Total time: 6 seconds dmake: Error code 1, while making 'ANTBUILD' == END == apparently, something is still missing. Thanks a lot for your help.
The bug connected with bad pah to ant.jar is already fixed in CVS. The problem with bsh is probably related to beanshell not present in your tree. Please see 23464 for details.
mark as fixed in 680m24. feel free to reopen if problem still present.
close issue.