Issue 24154 - Compilation error in "scripting" framework SRC680_m19
Summary: Compilation error in "scripting" framework SRC680_m19
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Martin Hollmichel
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-07 04:29 UTC by oldfield
Modified: 2004-02-20 11:04 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description oldfield 2004-01-07 04:29:38 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
Comment 1 pavel 2004-01-07 08:36:13 UTC
Install Ant - it is compulsory.

configure should change the checking for ant.

Kevin?

BTW: do we really want to make it compulsory?
Comment 2 pavel 2004-01-07 09:03:19 UTC
Ken, I'm sorry. I did it again. Two beers for you now...
Comment 3 oldfield 2004-01-07 09:34:50 UTC
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.
Comment 4 pavel 2004-01-07 09:52:45 UTC
Which version of ant do you use? The newer ones do not work...

Could you please try jakarta-ant-1.5.1-bin.zip?
Comment 5 oldfield 2004-01-07 10:04:51 UTC
[root@support SRC680_m19]# ant -version
Apache Ant version 1.5 compiled on July 9 2002

seems to be 1.5 already.
Comment 6 pavel 2004-01-07 19:34:49 UTC
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?
Comment 7 oldfield 2004-01-08 00:52:18 UTC
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.
Comment 8 pavel 2004-01-08 05:02:50 UTC
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.
Comment 9 Martin Hollmichel 2004-02-07 16:57:40 UTC
mark as fixed in 680m24.

feel free to reopen if problem still present.
Comment 10 Martin Hollmichel 2004-02-20 11:04:04 UTC
close issue.