You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Harbs <ha...@gmail.com> on 2019/05/14 10:46:00 UTC

Problems with Java 12

I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:

annotate.class:
   [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
   [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
   [javac] error: Source option 5 is no longer supported. Use 7 or later.
   [javac] error: Target option 5 is no longer supported. Use 7 or later.

I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.

Any suggestions (other than trying to figure out how to download an older version of Java)?

Harbs

Re: Problems with Java 12

Posted by Harbs <ha...@gmail.com>.
> Does Java 12 have Java 1.6 target compatibility?

No. It got an error on both target and source.

> On May 15, 2019, at 6:54 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> That's fine, although I think the more common pattern is to require use of env.properties and/or local.properties files.
> 
> It occurs to me that regarding Flash Builder, the source compatibility is less important than the target compatibility.  Does Java 12 have Java 1.6 target compatibility?
> 
> -Alex
> 
> On 5/15/19, 12:32 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>    Yeah. Looks like the problem. Thanks.
> 
>    Maybe we should keep 1.6 the default, but allow a environment variable to set it higher?
> 
>> On May 15, 2019, at 9:58 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>> 
>> Looks like royale-asjs/build.xml specifies 1.5.  That's probably an accidental copy from Flex.
>> 
>> That said, I'm not sure that flex-compiler-oem will work with Flash Builder if the target is not 1.6.  If that's true, we'll need some way to not build that jar on Java 12.
>> 
>> -Alex
>> 
>> On 5/14/19, 11:49 PM, "Harbs" <ha...@gmail.com> wrote:
>> 
>>   Progress.
>> 
>>   I was building using `ant all` on asjs.
>> 
>>   When I build using `ant` on royale-compiler, I got a bunch of errors:
>>      [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
>>      [javac] error: Source option 6 is no longer supported. Use 7 or later.
>>      [javac] error: Target option 6 is no longer supported. Use 7 or later.
>> 
>>   Changing all the javac.src properties to 1.7 made the compilation complete.
>> 
>>   I switched back to royale-asjs and ran `ant all` again and I get this:
>> 
>>   compile:
>>      [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
>>      [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>>      [javac] error: Source option 5 is no longer supported. Use 7 or later.
>>      [javac] error: Target option 5 is no longer supported. Use 7 or later.
>> 
>>   BUILD FAILED
>>   C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
>>   C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
>>   C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
>>   C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.
>> 
>> 
>>> On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>>> 
>>> I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said 
>>> "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
>>> 
>>> What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
>>> 
>>> -Alex
>>> 
>>> On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
>>> 
>>>  Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
>>> 
>>>  Changing all of them did not help.
>>> 
>>>  I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
>>> 
>>>> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>>>> 
>>>> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
>>>> 
>>>> -Alex
>>>> 
>>>> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
>>>> 
>>>> I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
>>>> 
>>>> annotate.class:
>>>>    [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
>>>>    [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>>>>    [javac] error: Source option 5 is no longer supported. Use 7 or later.
>>>>    [javac] error: Target option 5 is no longer supported. Use 7 or later.
>>>> 
>>>> I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
>>>> 
>>>> Any suggestions (other than trying to figure out how to download an older version of Java)?
>>>> 
>>>> Harbs
>>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 
> 
> 
> 


Re: Problems with Java 12

Posted by Harbs <ha...@gmail.com>.
They are both set to the same variable.

> On May 16, 2019, at 10:22 AM, Yishay Weiss <yi...@hotmail.com> wrote:
> 
> Apparently [1] you’d need to set the source compatibility to 6 as well.
> 
> 
> 
> [1] https://stackoverflow.com/questions/10663450/whats-the-difference-between-source-and-target-compatibility
> 
> 
> 
> ________________________________
> From: Alex Harui <ah...@adobe.com.INVALID>
> Sent: Wednesday, May 15, 2019 6:54:13 PM
> To: dev@royale.apache.org
> Subject: Re: Problems with Java 12
> 
> That's fine, although I think the more common pattern is to require use of env.properties and/or local.properties files.
> 
> It occurs to me that regarding Flash Builder, the source compatibility is less important than the target compatibility.  Does Java 12 have Java 1.6 target compatibility?
> 
> -Alex
> 
> On 5/15/19, 12:32 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>    Yeah. Looks like the problem. Thanks.
> 
>    Maybe we should keep 1.6 the default, but allow a environment variable to set it higher?
> 
>> On May 15, 2019, at 9:58 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>> 
>> Looks like royale-asjs/build.xml specifies 1.5.  That's probably an accidental copy from Flex.
>> 
>> That said, I'm not sure that flex-compiler-oem will work with Flash Builder if the target is not 1.6.  If that's true, we'll need some way to not build that jar on Java 12.
>> 
>> -Alex
>> 
>> On 5/14/19, 11:49 PM, "Harbs" <ha...@gmail.com> wrote:
>> 
>>   Progress.
>> 
>>   I was building using `ant all` on asjs.
>> 
>>   When I build using `ant` on royale-compiler, I got a bunch of errors:
>>      [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
>>      [javac] error: Source option 6 is no longer supported. Use 7 or later.
>>      [javac] error: Target option 6 is no longer supported. Use 7 or later.
>> 
>>   Changing all the javac.src properties to 1.7 made the compilation complete.
>> 
>>   I switched back to royale-asjs and ran `ant all` again and I get this:
>> 
>>   compile:
>>      [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
>>      [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>>      [javac] error: Source option 5 is no longer supported. Use 7 or later.
>>      [javac] error: Target option 5 is no longer supported. Use 7 or later.
>> 
>>   BUILD FAILED
>>   C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
>>   C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
>>   C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
>>   C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.
>> 
>> 
>>> On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>>> 
>>> I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said
>>> "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
>>> 
>>> What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
>>> 
>>> -Alex
>>> 
>>> On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
>>> 
>>>  Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
>>> 
>>>  Changing all of them did not help.
>>> 
>>>  I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
>>> 
>>>> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>>>> 
>>>> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
>>>> 
>>>> -Alex
>>>> 
>>>> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
>>>> 
>>>> I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
>>>> 
>>>> annotate.class:
>>>>    [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
>>>>    [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>>>>    [javac] error: Source option 5 is no longer supported. Use 7 or later.
>>>>    [javac] error: Target option 5 is no longer supported. Use 7 or later.
>>>> 
>>>> I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
>>>> 
>>>> Any suggestions (other than trying to figure out how to download an older version of Java)?
>>>> 
>>>> Harbs
>>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 
> 
> 
> 


RE: Problems with Java 12

Posted by Yishay Weiss <yi...@hotmail.com>.
Apparently [1] you’d need to set the source compatibility to 6 as well.



[1] https://stackoverflow.com/questions/10663450/whats-the-difference-between-source-and-target-compatibility



________________________________
From: Alex Harui <ah...@adobe.com.INVALID>
Sent: Wednesday, May 15, 2019 6:54:13 PM
To: dev@royale.apache.org
Subject: Re: Problems with Java 12

That's fine, although I think the more common pattern is to require use of env.properties and/or local.properties files.

It occurs to me that regarding Flash Builder, the source compatibility is less important than the target compatibility.  Does Java 12 have Java 1.6 target compatibility?

-Alex

On 5/15/19, 12:32 AM, "Harbs" <ha...@gmail.com> wrote:

    Yeah. Looks like the problem. Thanks.

    Maybe we should keep 1.6 the default, but allow a environment variable to set it higher?

    > On May 15, 2019, at 9:58 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    >
    > Looks like royale-asjs/build.xml specifies 1.5.  That's probably an accidental copy from Flex.
    >
    > That said, I'm not sure that flex-compiler-oem will work with Flash Builder if the target is not 1.6.  If that's true, we'll need some way to not build that jar on Java 12.
    >
    > -Alex
    >
    > On 5/14/19, 11:49 PM, "Harbs" <ha...@gmail.com> wrote:
    >
    >    Progress.
    >
    >    I was building using `ant all` on asjs.
    >
    >    When I build using `ant` on royale-compiler, I got a bunch of errors:
    >       [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    >       [javac] error: Source option 6 is no longer supported. Use 7 or later.
    >       [javac] error: Target option 6 is no longer supported. Use 7 or later.
    >
    >    Changing all the javac.src properties to 1.7 made the compilation complete.
    >
    >    I switched back to royale-asjs and ran `ant all` again and I get this:
    >
    >    compile:
    >       [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
    >       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    >       [javac] error: Source option 5 is no longer supported. Use 7 or later.
    >       [javac] error: Target option 5 is no longer supported. Use 7 or later.
    >
    >    BUILD FAILED
    >    C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
    >    C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
    >    C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
    >    C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.
    >
    >
    >> On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    >>
    >> I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said
    >> "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
    >>
    >> What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
    >>
    >> -Alex
    >>
    >> On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
    >>
    >>   Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
    >>
    >>   Changing all of them did not help.
    >>
    >>   I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
    >>
    >>> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    >>>
    >>> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
    >>>
    >>> -Alex
    >>>
    >>> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
    >>>
    >>>  I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
    >>>
    >>>  annotate.class:
    >>>     [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
    >>>     [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    >>>     [javac] error: Source option 5 is no longer supported. Use 7 or later.
    >>>     [javac] error: Target option 5 is no longer supported. Use 7 or later.
    >>>
    >>>  I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
    >>>
    >>>  Any suggestions (other than trying to figure out how to download an older version of Java)?
    >>>
    >>>  Harbs
    >>>
    >>
    >>
    >>
    >
    >
    >




Re: Problems with Java 12

Posted by Alex Harui <ah...@adobe.com.INVALID>.
That's fine, although I think the more common pattern is to require use of env.properties and/or local.properties files.

It occurs to me that regarding Flash Builder, the source compatibility is less important than the target compatibility.  Does Java 12 have Java 1.6 target compatibility?

-Alex

On 5/15/19, 12:32 AM, "Harbs" <ha...@gmail.com> wrote:

    Yeah. Looks like the problem. Thanks.
    
    Maybe we should keep 1.6 the default, but allow a environment variable to set it higher?
    
    > On May 15, 2019, at 9:58 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    > 
    > Looks like royale-asjs/build.xml specifies 1.5.  That's probably an accidental copy from Flex.
    > 
    > That said, I'm not sure that flex-compiler-oem will work with Flash Builder if the target is not 1.6.  If that's true, we'll need some way to not build that jar on Java 12.
    > 
    > -Alex
    > 
    > On 5/14/19, 11:49 PM, "Harbs" <ha...@gmail.com> wrote:
    > 
    >    Progress.
    > 
    >    I was building using `ant all` on asjs.
    > 
    >    When I build using `ant` on royale-compiler, I got a bunch of errors:
    >       [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    >       [javac] error: Source option 6 is no longer supported. Use 7 or later.
    >       [javac] error: Target option 6 is no longer supported. Use 7 or later.
    > 
    >    Changing all the javac.src properties to 1.7 made the compilation complete.
    > 
    >    I switched back to royale-asjs and ran `ant all` again and I get this:
    > 
    >    compile:
    >       [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
    >       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    >       [javac] error: Source option 5 is no longer supported. Use 7 or later.
    >       [javac] error: Target option 5 is no longer supported. Use 7 or later.
    > 
    >    BUILD FAILED
    >    C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
    >    C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
    >    C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
    >    C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.
    > 
    > 
    >> On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    >> 
    >> I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said 
    >> "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
    >> 
    >> What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
    >> 
    >> -Alex
    >> 
    >> On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
    >> 
    >>   Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
    >> 
    >>   Changing all of them did not help.
    >> 
    >>   I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
    >> 
    >>> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    >>> 
    >>> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
    >>> 
    >>> -Alex
    >>> 
    >>> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
    >>> 
    >>>  I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
    >>> 
    >>>  annotate.class:
    >>>     [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
    >>>     [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    >>>     [javac] error: Source option 5 is no longer supported. Use 7 or later.
    >>>     [javac] error: Target option 5 is no longer supported. Use 7 or later.
    >>> 
    >>>  I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
    >>> 
    >>>  Any suggestions (other than trying to figure out how to download an older version of Java)?
    >>> 
    >>>  Harbs
    >>> 
    >> 
    >> 
    >> 
    > 
    > 
    > 
    
    


Re: Problems with Java 12

Posted by Harbs <ha...@gmail.com>.
Yeah. Looks like the problem. Thanks.

Maybe we should keep 1.6 the default, but allow a environment variable to set it higher?

> On May 15, 2019, at 9:58 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> Looks like royale-asjs/build.xml specifies 1.5.  That's probably an accidental copy from Flex.
> 
> That said, I'm not sure that flex-compiler-oem will work with Flash Builder if the target is not 1.6.  If that's true, we'll need some way to not build that jar on Java 12.
> 
> -Alex
> 
> On 5/14/19, 11:49 PM, "Harbs" <ha...@gmail.com> wrote:
> 
>    Progress.
> 
>    I was building using `ant all` on asjs.
> 
>    When I build using `ant` on royale-compiler, I got a bunch of errors:
>       [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
>       [javac] error: Source option 6 is no longer supported. Use 7 or later.
>       [javac] error: Target option 6 is no longer supported. Use 7 or later.
> 
>    Changing all the javac.src properties to 1.7 made the compilation complete.
> 
>    I switched back to royale-asjs and ran `ant all` again and I get this:
> 
>    compile:
>       [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
>       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>       [javac] error: Source option 5 is no longer supported. Use 7 or later.
>       [javac] error: Target option 5 is no longer supported. Use 7 or later.
> 
>    BUILD FAILED
>    C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
>    C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
>    C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
>    C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.
> 
> 
>> On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>> 
>> I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said 
>> "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
>> 
>> What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
>> 
>> -Alex
>> 
>> On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
>> 
>>   Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
>> 
>>   Changing all of them did not help.
>> 
>>   I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
>> 
>>> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>>> 
>>> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
>>> 
>>> -Alex
>>> 
>>> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
>>> 
>>>  I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
>>> 
>>>  annotate.class:
>>>     [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
>>>     [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>>>     [javac] error: Source option 5 is no longer supported. Use 7 or later.
>>>     [javac] error: Target option 5 is no longer supported. Use 7 or later.
>>> 
>>>  I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
>>> 
>>>  Any suggestions (other than trying to figure out how to download an older version of Java)?
>>> 
>>>  Harbs
>>> 
>> 
>> 
>> 
> 
> 
> 


Re: Problems with Java 12

Posted by Alex Harui <ah...@adobe.com.INVALID>.
Looks like royale-asjs/build.xml specifies 1.5.  That's probably an accidental copy from Flex.

That said, I'm not sure that flex-compiler-oem will work with Flash Builder if the target is not 1.6.  If that's true, we'll need some way to not build that jar on Java 12.

-Alex

On 5/14/19, 11:49 PM, "Harbs" <ha...@gmail.com> wrote:

    Progress.
    
    I was building using `ant all` on asjs.
    
    When I build using `ant` on royale-compiler, I got a bunch of errors:
       [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
       [javac] error: Source option 6 is no longer supported. Use 7 or later.
       [javac] error: Target option 6 is no longer supported. Use 7 or later.
    
    Changing all the javac.src properties to 1.7 made the compilation complete.
    
    I switched back to royale-asjs and ran `ant all` again and I get this:
    
    compile:
       [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
       [javac] error: Source option 5 is no longer supported. Use 7 or later.
       [javac] error: Target option 5 is no longer supported. Use 7 or later.
    
    BUILD FAILED
    C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
    C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
    C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
    C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.
    
    
    > On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    > 
    > I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said 
    > "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
    > 
    > What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
    > 
    > -Alex
    > 
    > On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
    > 
    >    Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
    > 
    >    Changing all of them did not help.
    > 
    >    I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
    > 
    >> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    >> 
    >> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
    >> 
    >> -Alex
    >> 
    >> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
    >> 
    >>   I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
    >> 
    >>   annotate.class:
    >>      [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
    >>      [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    >>      [javac] error: Source option 5 is no longer supported. Use 7 or later.
    >>      [javac] error: Target option 5 is no longer supported. Use 7 or later.
    >> 
    >>   I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
    >> 
    >>   Any suggestions (other than trying to figure out how to download an older version of Java)?
    >> 
    >>   Harbs
    >> 
    > 
    > 
    > 
    
    


Re: Problems with Java 12

Posted by Harbs <ha...@gmail.com>.
Progress.

I was building using `ant all` on asjs.

When I build using `ant` on royale-compiler, I got a bunch of errors:
   [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
   [javac] error: Source option 6 is no longer supported. Use 7 or later.
   [javac] error: Target option 6 is no longer supported. Use 7 or later.

Changing all the javac.src properties to 1.7 made the compilation complete.

I switched back to royale-asjs and ran `ant all` again and I get this:

compile:
   [javac] Compiling 3 source files to C:\Apache\royale-compiler\compiler\target\classes
   [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
   [javac] error: Source option 5 is no longer supported. Use 7 or later.
   [javac] error: Target option 5 is no longer supported. Use 7 or later.

BUILD FAILED
C:\Apache\royale-asjs\build.xml:1948: The following error occurred while executing this line:
C:\Apache\royale-asjs\build.xml:2035: The following error occurred while executing this line:
C:\Apache\royale-compiler\build.xml:68: The following error occurred while executing this line:
C:\Apache\royale-compiler\compiler\build.xml:486: Compile failed; see the compiler error output for details.


> On May 14, 2019, at 7:06 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said 
> "warning: [options] bootstrap class path not set in conjunction with -source 1.6"
> 
> What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.
> 
> -Alex
> 
> On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>    Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
> 
>    Changing all of them did not help.
> 
>    I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
> 
>> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
>> 
>> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
>> 
>> -Alex
>> 
>> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
>> 
>>   I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
>> 
>>   annotate.class:
>>      [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
>>      [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>>      [javac] error: Source option 5 is no longer supported. Use 7 or later.
>>      [javac] error: Target option 5 is no longer supported. Use 7 or later.
>> 
>>   I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
>> 
>>   Any suggestions (other than trying to figure out how to download an older version of Java)?
>> 
>>   Harbs
>> 
> 
> 
> 


Re: Problems with Java 12

Posted by Alex Harui <ah...@adobe.com.INVALID>.
I just switched to compiler-build-tools, ran "ant clean" then "ant".  The console said 
"warning: [options] bootstrap class path not set in conjunction with -source 1.6"

What do you get?  Maybe the main build.xml sets something but I didn't see it.  Swfutils sets 1.5.  That can probably be changed, but I thought swfutils ran after compiler-build-tools.  Maybe you have an environment variable or local.properties or env.properties.

-Alex

On 5/14/19, 8:44 AM, "Harbs" <ha...@gmail.com> wrote:

    Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.
    
    Changing all of them did not help.
    
    I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?
    
    > On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
    > 
    > I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
    > 
    > -Alex
    > 
    > On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
    > 
    >    I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
    > 
    >    annotate.class:
    >       [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
    >       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
    >       [javac] error: Source option 5 is no longer supported. Use 7 or later.
    >       [javac] error: Target option 5 is no longer supported. Use 7 or later.
    > 
    >    I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
    > 
    >    Any suggestions (other than trying to figure out how to download an older version of Java)?
    > 
    >    Harbs
    > 
    
    


Re: Problems with Java 12

Posted by Harbs <ha...@gmail.com>.
Most of the build files were set to 1.6. There was one set to 1.5 (I don’t remember off-hand which one.

Changing all of them did not help.

I have no idea where this is being picked up from. Is it possible Maven artifacts are coming into play?

> On May 14, 2019, at 6:29 PM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.
> 
> -Alex
> 
> On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:
> 
>    I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
> 
>    annotate.class:
>       [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
>       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
>       [javac] error: Source option 5 is no longer supported. Use 7 or later.
>       [javac] error: Target option 5 is no longer supported. Use 7 or later.
> 
>    I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
> 
>    Any suggestions (other than trying to figure out how to download an older version of Java)?
> 
>    Harbs
> 


Re: Problems with Java 12

Posted by Alex Harui <ah...@adobe.com.INVALID>.
I can't figure out why your build is trying to use 1.5.  My build.xml for compiler-build-tools is using 1.6.

-Alex

On 5/14/19, 3:46 AM, "Harbs" <ha...@gmail.com> wrote:

    I’m setting up a new Windows machine and I installed Java 12. I can’t get Royale to compile. I keep getting this error:
    
    annotate.class:
       [javac] Compiling 1 source file to C:\Apache\royale-compiler\compiler-build-tools\target\classes
       [javac] warning: [options] bootstrap class path not set in conjunction with -source 5
       [javac] error: Source option 5 is no longer supported. Use 7 or later.
       [javac] error: Target option 5 is no longer supported. Use 7 or later.
    
    I tried changing javac.src=1.7 instead of 1.5 in the build.xml files, but it had no effect.
    
    Any suggestions (other than trying to figure out how to download an older version of Java)?
    
    Harbs