You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Mechtilde <oo...@mechtilde.de> on 2020/12/07 06:48:57 UTC

Re: Source and target of Java version (Was: Review of PR 109)

Hello,

Con someone give me a hint where and how can I change the source option
and the target option for the Java version.

Kind regards

Mechtilde

Am 06.12.20 um 13:57 schrieb Mechtilde:
> Hello,
> 
> i was asked to text the PR 109 https://github.com/apache/openoffice/pull/109
> 
> I tried to do it under Debian 10.
> 
> gcc 8.3
> java 11
> 
> I didn't have a running system wizh gcc >=7 and Java 8
> 
> I get this error message
> 
> compile-bj:
> /home/mechtilde/openoffice/main/saxon/unxlngx6.pro/misc/build/src/build.xml:385:
>  warning: 'includeantruntime' was not set, defaulting to
> build.sysclasspath=last
> ; set to false for repeatable builds
> Compiling 834 source files to
> /home/mechtilde/openoffice/main/saxon/unxlngx6.pro
> /misc/build/src/temp/j/classes
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.4
> error: Source option 1.4 is no longer supported. Use 6 or later.
> error: Target option 1.4 is no longer supported. Use 1.6 or later.
> 
> BUILD FAILED
> /home/mechtilde/openoffice/main/saxon/unxlngx6.pro/misc/build/src/build.xml:385:
> Compile failed; see the compiler error output for details.
> 
> Total time: 2 seconds
> dmake:  Error code 1, while making
> './unxlngx6.pro/misc/build/so_built_saxon'
> 
> So, epm, beanshell, hsqldb, rhino, apache-common and bean can't be build.
> 
> If you need more inforamtione please give me a hint.
> 
> Kind regards
> 

-- 
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


Re: Source and target of Java version (Was: Review of PR 109)

Posted by Mechtilde <oo...@mechtilde.de>.
Hello Peter

I build with Java 11

and HSQLDB is the one of the next candidates :(

Kind regards

Mechtilde

Am 07.12.20 um 19:16 schrieb Peter Kovacs:
> Hi Mechtilde,
> 
> With which version do you build? Java 11?
> 
> I try currently with Java 14 and I have another Issue with hsqldb. And
> that you can not solve without an update.
> 
> Benashell error I can confirm, but I do not have a solution for this at
> this time.
> 
> 
> On 07.12.20 19:00, Mechtilde wrote:
>> Hello Peter,
>>
>>
>> Am 07.12.20 um 07:57 schrieb Peter Kovacs:
>>> Hi Mechtilde,
>>>
>>> check main/saxton/saxton-9.0.0.7-bj.patch
>>>
>>> line 147 and 148
>>>
>>> +    <property name="build.compiler.source" value="1.4"/>
>>> +    <property name="build.compiler.target" value="1.4"/>
>> thanks, yes this works I changed it from 1.4 to 1.6.
>>
>> Now It stop at the next step building Beanshell
>>
>> In
>> /home/mechtilde/openoffice/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/build.xml
>>
>>
>> I bumped source and target from 1.5 to 1.6 and then I get the following
>> error message.
>>
>> BUILD FAILED
>> /home/mechtilde/openoffice/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/build.xml:182:
>>
>> Compile failed; see the compiler error output for details.
>>
>> Total time: 4 seconds
>> dmake:  Error code 1, while making 'ANTBUILD'
>> dmake:  Error code 255, while making
>> './unxlngx6.pro/misc/build/so_built_ooo_beanshell'
>>
>> 1 module(s):
>>     beanshell
>> need(s) to be rebuilt
>>
>> Reason(s):
>>
>> ERROR: error 65280 occurred while making
>> /home/mechtilde/openoffice/main/beanshell
>>
>> which I don't understand
>>
>> A hint again?
>>
>> Kind regards
> 

-- 
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


Re: Source and target of Java version (Was: Review of PR 109)

Posted by Peter Kovacs <pe...@apache.org>.
Hi Mechtilde,

With which version do you build? Java 11?

I try currently with Java 14 and I have another Issue with hsqldb. And 
that you can not solve without an update.

Benashell error I can confirm, but I do not have a solution for this at 
this time.


On 07.12.20 19:00, Mechtilde wrote:
> Hello Peter,
>
>
> Am 07.12.20 um 07:57 schrieb Peter Kovacs:
>> Hi Mechtilde,
>>
>> check main/saxton/saxton-9.0.0.7-bj.patch
>>
>> line 147 and 148
>>
>> +    <property name="build.compiler.source" value="1.4"/>
>> +    <property name="build.compiler.target" value="1.4"/>
> thanks, yes this works I changed it from 1.4 to 1.6.
>
> Now It stop at the next step building Beanshell
>
> In
> /home/mechtilde/openoffice/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/build.xml
>
> I bumped source and target from 1.5 to 1.6 and then I get the following
> error message.
>
> BUILD FAILED
> /home/mechtilde/openoffice/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/build.xml:182:
> Compile failed; see the compiler error output for details.
>
> Total time: 4 seconds
> dmake:  Error code 1, while making 'ANTBUILD'
> dmake:  Error code 255, while making
> './unxlngx6.pro/misc/build/so_built_ooo_beanshell'
>
> 1 module(s):
> 	beanshell
> need(s) to be rebuilt
>
> Reason(s):
>
> ERROR: error 65280 occurred while making
> /home/mechtilde/openoffice/main/beanshell
>
> which I don't understand
>
> A hint again?
>
> Kind regards

Re: Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Jim Jagielski <ji...@jaguNET.com>.
Just a FYI that I've been hacking on

    https://github.com/jimjag/beanshell2

which is merge of 2.0b6 and beanshell2.

> On Dec 7, 2020, at 8:06 PM, Peter Kovacs <pe...@Apache.org> wrote:
> 
> 
> On 07.12.20 21:56, Mechtilde wrote:
>> Hello Jim
>> 
>> Am 07.12.20 um 20:35 schrieb Jim Jagielski:
>>> There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.
>> I built it with the system version of Debian 10 bsh 2.0b4-19. and this
>> part works.
> 
> This is odd. I bumbed the build.xml file from 1.5 to 1.7 according to the Errormessage.
> 
> Now I have 1 error:
> 
> /home/legine/workspace/AOO/github/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/src/bsh/util/AWTConsole.java:217: error: cannot find symbol
> ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition(
> 
> and 96 warnings
> 
> A lot look like: warning: [deprecation]
> 
> So how could Debian build them if they use an older Code?
> 
> However it looks like this code queen needs some serious attention. (Java 14 throws deprecation for 1.7)
> 
> I check tomorrow, and look into fixing the code.
> 
>> 
>> Now the build hangs with hsqldb
>> 
>> there I have no success to change to the system version of hsqldb 1.8.0
>>> Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.
>> kind regards
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Peter Kovacs <pe...@apache.org>.
On 07.12.20 21:56, Mechtilde wrote:
> Hello Jim
>
> Am 07.12.20 um 20:35 schrieb Jim Jagielski:
>> There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.
> I built it with the system version of Debian 10 bsh 2.0b4-19. and this
> part works.

This is odd. I bumbed the build.xml file from 1.5 to 1.7 according to 
the Errormessage.

Now I have 1 error:

/home/legine/workspace/AOO/github/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/src/bsh/util/AWTConsole.java:217: 
error: cannot find symbol
((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition(

and 96 warnings

A lot look like: warning: [deprecation]

So how could Debian build them if they use an older Code?

However it looks like this code queen needs some serious attention. 
(Java 14 throws deprecation for 1.7)

I check tomorrow, and look into fixing the code.

>
> Now the build hangs with hsqldb
>
> there I have no success to change to the system version of hsqldb 1.8.0
>> Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.
> kind regards
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Peter Kovacs <pe...@apache.org>.
On 07.12.20 23:34, Dave Fisher wrote:
>
> Sent from my iPhone
>
>> On Dec 7, 2020, at 2:08 PM, Peter Kovacs <Pe...@apache.org> wrote:
>>
>> 
>>> On 07.12.20 21:56, Mechtilde wrote:
>>> Hello Jim
>>>
>>>> Am 07.12.20 um 20:35 schrieb Jim Jagielski:
>>>> There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.
>>> I built it with the system version of Debian 10 bsh 2.0b4-19. and this
>>> part works.
>> Ok.
>>> Now the build hangs with hsqldb
>>>
>>> there I have no success to change to the system version of hsqldb 1.8.0
>> Well, the issue is that Java has removed a insecure System API, which HSQLDB uses:
>>
>>    cannot find symbol  System.runFinalizersOnExit(true);
>>
>> All resources I found are saying you should not use this API. So maybe you can remove the code. Maybe not because the Programmer has been super smart.
> This link might help.
>
> https://help.semmle.com/wiki/plugins/servlet/mobile?contentId=29393456#content/view/29393456
>
> We’ll need to look at finalize methods in the Java we use.

I researched in the Discussion Archives of hsqldb. I found [1] which 
states the use is only conveniance and can commented out. I am trying a 
build with removed lines. If it works out we could place 2 patches.

[1] 
https://sourceforge.net/p/hsqldb/discussion/73674/thread/82623c95/?limit=25#fc78/e01b

>
>> Maybe we can try a later version and it works?! Maybe 1.9 works?
>>
>> - I do not know. But this one is a real action point. And thgus I started the discussion. Figuring out what we do now is here imho the most vital part.
>>
>>>> Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.
>>> kind regards
>>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Dave Fisher <wa...@apache.org>.

Sent from my iPhone

> On Dec 7, 2020, at 2:08 PM, Peter Kovacs <Pe...@apache.org> wrote:
> 
> 
>> On 07.12.20 21:56, Mechtilde wrote:
>> Hello Jim
>> 
>>> Am 07.12.20 um 20:35 schrieb Jim Jagielski:
>>> There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.
>> I built it with the system version of Debian 10 bsh 2.0b4-19. and this
>> part works.
> Ok.
>> 
>> Now the build hangs with hsqldb
>> 
>> there I have no success to change to the system version of hsqldb 1.8.0
> 
> Well, the issue is that Java has removed a insecure System API, which HSQLDB uses:
> 
>   cannot find symbol  System.runFinalizersOnExit(true);
> 
> All resources I found are saying you should not use this API. So maybe you can remove the code. Maybe not because the Programmer has been super smart.

This link might help.

https://help.semmle.com/wiki/plugins/servlet/mobile?contentId=29393456#content/view/29393456

We’ll need to look at finalize methods in the Java we use.

> 
> Maybe we can try a later version and it works?! Maybe 1.9 works?
> 
> - I do not know. But this one is a real action point. And thgus I started the discussion. Figuring out what we do now is here imho the most vital part.
> 
>>> Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.
>> kind regards
>> 

Re: Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Peter Kovacs <pe...@apache.org>.
On 07.12.20 21:56, Mechtilde wrote:
> Hello Jim
>
> Am 07.12.20 um 20:35 schrieb Jim Jagielski:
>> There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.
> I built it with the system version of Debian 10 bsh 2.0b4-19. and this
> part works.
Ok.
>
> Now the build hangs with hsqldb
>
> there I have no success to change to the system version of hsqldb 1.8.0

Well, the issue is that Java has removed a insecure System API, which 
HSQLDB uses:

    cannot find symbol  System.runFinalizersOnExit(true);

All resources I found are saying you should not use this API. So maybe 
you can remove the code. Maybe not because the Programmer has been super 
smart.

Maybe we can try a later version and it works?! Maybe 1.9 works?

- I do not know. But this one is a real action point. And thgus I 
started the discussion. Figuring out what we do now is here imho the 
most vital part.

>> Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.
> kind regards
>

Re: Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Mechtilde <oo...@mechtilde.de>.
Hello Jim

Am 07.12.20 um 20:35 schrieb Jim Jagielski:
> There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.

I built it with the system version of Debian 10 bsh 2.0b4-19. and this
part works.

Now the build hangs with hsqldb

there I have no success to change to the system version of hsqldb 1.8.0
> 
> Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.

kind regards

-- 
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


Beanshell (Re: Source and target of Java version (Was: Review of PR 109))

Posted by Jim Jagielski <ji...@jaguNET.com>.
There appears to be quite a large change in beanshell from 2.0b6 and what is currently HEAD of master.

Any interest in looking into getting beanshell into some more stable situation... It looks like it's been majorly refactored.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Source and target of Java version (Was: Review of PR 109)

Posted by Mechtilde <oo...@mechtilde.de>.
Hello Peter,


Am 07.12.20 um 07:57 schrieb Peter Kovacs:
> Hi Mechtilde,
> 
> check main/saxton/saxton-9.0.0.7-bj.patch
> 
> line 147 and 148
> 
> +    <property name="build.compiler.source" value="1.4"/>
> +    <property name="build.compiler.target" value="1.4"/>

thanks, yes this works I changed it from 1.4 to 1.6.

Now It stop at the next step building Beanshell

In
/home/mechtilde/openoffice/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/build.xml

I bumped source and target from 1.5 to 1.6 and then I get the following
error message.

BUILD FAILED
/home/mechtilde/openoffice/main/beanshell/unxlngx6.pro/misc/build/BeanShell-2.0b6/build.xml:182:
Compile failed; see the compiler error output for details.

Total time: 4 seconds
dmake:  Error code 1, while making 'ANTBUILD'
dmake:  Error code 255, while making
'./unxlngx6.pro/misc/build/so_built_ooo_beanshell'

1 module(s):
	beanshell
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making
/home/mechtilde/openoffice/main/beanshell

which I don't understand

A hint again?

Kind regards
-- 
Mechtilde Stehmann
## Apache OpenOffice
## Freie Office Suite für Linux, MacOSX, Windows und OS/2
## Debian Developer
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F


Re: Source and target of Java version (Was: Review of PR 109)

Posted by Peter Kovacs <pe...@apache.org>.
Hi Mechtilde,

check main/saxton/saxton-9.0.0.7-bj.patch

line 147 and 148

+    <property name="build.compiler.source" value="1.4"/>
+    <property name="build.compiler.target" value="1.4"/>

all the best
Peter

On 07.12.20 07:48, Mechtilde wrote:
> Hello,
>
> Con someone give me a hint where and how can I change the source option
> and the target option for the Java version.
>
> Kind regards
>
> Mechtilde
>
> Am 06.12.20 um 13:57 schrieb Mechtilde:
>> Hello,
>>
>> i was asked to text the PR 109 https://github.com/apache/openoffice/pull/109
>>
>> I tried to do it under Debian 10.
>>
>> gcc 8.3
>> java 11
>>
>> I didn't have a running system wizh gcc >=7 and Java 8
>>
>> I get this error message
>>
>> compile-bj:
>> /home/mechtilde/openoffice/main/saxon/unxlngx6.pro/misc/build/src/build.xml:385:
>>   warning: 'includeantruntime' was not set, defaulting to
>> build.sysclasspath=last
>> ; set to false for repeatable builds
>> Compiling 834 source files to
>> /home/mechtilde/openoffice/main/saxon/unxlngx6.pro
>> /misc/build/src/temp/j/classes
>> warning: [options] bootstrap class path not set in conjunction with
>> -source 1.4
>> error: Source option 1.4 is no longer supported. Use 6 or later.
>> error: Target option 1.4 is no longer supported. Use 1.6 or later.
>>
>> BUILD FAILED
>> /home/mechtilde/openoffice/main/saxon/unxlngx6.pro/misc/build/src/build.xml:385:
>> Compile failed; see the compiler error output for details.
>>
>> Total time: 2 seconds
>> dmake:  Error code 1, while making
>> './unxlngx6.pro/misc/build/so_built_saxon'
>>
>> So, epm, beanshell, hsqldb, rhino, apache-common and bean can't be build.
>>
>> If you need more inforamtione please give me a hint.
>>
>> Kind regards
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org