On 12/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi!
> Am Kenny from the Open Swahili Localization Project (
> www.kilinux.udsm.ac.tz)
> I faced the following problem during the Building process of OpenOffice
> 2.0
> I use a computer with FEDORA CORE 4 and i have download jdk1.5.0_06 and
> configure the doconfigure file by specifying the following line about
> with-java as follows
>
> --with-jdk-home=/usr/java/jdk1.5.0_06
>
> After running again the
>
> ./doconfigure ./doconfigure 2>&1 | tee -a logs/kilinux20051213
>
> The following errors appears during the compilation of 74 source file
> Try to pass through the lines below to see clear what was going on during
> the compailation
>
> compile:
> Compiling 74 source files to
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/classes
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:137:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                 this.superClassName = Type.getInternalName( superClass );
>                                       ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:185:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                         interfaceNames[i]=Type.getInternalName(
> interfaces[i] );
>                                           ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:362:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.or
> g.objectweb.asm match
>                                 Type.getType(Object.class),
>                                 ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:363:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                 new Type [] {
>                                     ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:364:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                         Type.getType(String.class),
>                                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:365:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                         Type.getType(Object [].class),
>                                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:366:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                         Type.getType(Interpreter.class),
>                                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:367:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                         Type.getType(CallStack.class),
>                                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:368:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                         Type.getType(SimpleNode.class),
>                                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:369:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                                         Type.getType(Boolean.TYPE)
>                                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/ClassGeneratorUtil.java:361:
> reference to Type is ambiguous, both class java.lang.reflect.Type in
> java.lang.reflect and class bsh.org.objectweb.asm.Type in
> bsh.org.objectweb.asm match
>                         Type.getMethodDescriptor(
>                         ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/Reflect.java:129:
> warning: [deprecation] getAssignableForm(java.lang.Object,java.lang.Class)
> in bsh.Types has been deprecated
>                                 tmpArgs[i] = Types.getAssignableForm(
> args[i], types[i] );
>                                                   ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/Remote.java:143:
> warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has
> been deprecated
>                 sb.append( URLEncoder.encode( text ) );
>                                      ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/AWTConsole.java:223:
> warning: [deprecation] getPeer() in java.awt.Component has been deprecated
>                 ((java.awt.peer.TextComponentPeer
> )getPeer()).setCaretPosition(
>                                                   ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/AWTConsole.java:328:
> warning: [deprecation] show() in java.awt.Window has been deprecated
>                 f.show();
>                  ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/ClassBrowser.java:412:
> warning: [deprecation] show() in java.awt.Window has been deprecated
>                 f.show();
>                  ^
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/src/bsh/util/Util.java:83:
> warning: [deprecation] show() in java.awt.Window has been deprecated
>         win.show();
>            ^
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 11 errors
> 6 warnings
>
> BUILD FAILED
>
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell/unxlngi6.pro/misc/build/BeanShell/build.xml:176:
> Compile failed; see the compiler error output for details.
>
> Total time: 10 seconds
> dmake:  Error code 1, while making 'ANTBUILD'
> '---* tg_merge.mk *---'
> dmake:  Error code 255, while making
> './unxlngi6.pro/misc/build/so_built_ooo_beanshell'
> '---* tg_merge.mk *---'
>
> ERROR: Error 65280 occurred while making
> /kilinux/ooo2-build/ooo_3/linux-build-ooo2/build/ooo680-m3/beanshell
> make: *** [stamp/build] Error 1
>
>
> :/Kenny
>

Kenny,

OOo currently doesn't build with JDK 1.5, you will need to download and
install J2SDK 1.4.2_10 (I think that's the latest version).

If you aren't a Java person you can probably ignore the rest of this email.

The problem you're getting here is that Sun added a Type class into
java.lang.reflect that coflicts with a built in Type class in beanshell.
If you're interested, this particular problem can be fixed by modifying the
beanshell source adding an:

import bsh.org.objectweb.asm.Type;

to the import statements at the top of all of the classes with this problem.

Unfortunately there's a lot more work to be done, including changing the ant
buildfiles to compile with -source 1.4 and target 1.4 (again this wouldn't
fix your problem with beanshell) and only works on things that use ant. To
add further insult to injury there's a piece of code somewhere (I forget
where) that tries to configure an http proxy that relies on a class in the
sun packages that's been removed in JDK 1.5. It should be possible to
replace this, but it isn't documented which makes it difficult to replace.

Simon

Reply via email to