You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2012/09/18 15:26:08 UTC

[jira] [Created] (PIVOT-872) Build error with JDK 7 Update 7

Sandro Martini created PIVOT-872:
------------------------------------

             Summary: Build error with JDK 7 Update 7
                 Key: PIVOT-872
                 URL: https://issues.apache.org/jira/browse/PIVOT-872
             Project: Pivot
          Issue Type: Bug
         Environment: Linux, Windows, and probably all others
            Reporter: Sandro Martini
            Assignee: Sandro Martini


It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.

Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).

I have to verify with Oracle how to solve this.

Some info here: 
http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-872) Build error with JDK 7 Update 7

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458506#comment-13458506 ] 

Sandro Martini commented on PIVOT-872:
--------------------------------------

Just committed required changes in build.xml (for builds from a developers PC), but for now only in maintenance branch ... in trunk I'll commit changes only after my tests with our Jenkins builds at ASF are good the same (both for Java 6 and Java 7).

                
> Build error with JDK 7 Update 7
> -------------------------------
>
>                 Key: PIVOT-872
>                 URL: https://issues.apache.org/jira/browse/PIVOT-872
>             Project: Pivot
>          Issue Type: Bug
>         Environment: Linux, Windows, and probably all others
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>             Fix For: 2.1, 2.0.3
>
>
> It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.
> Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).
> I have to verify with Oracle how to solve this.
> Some info here: 
> http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-872) Build error with JDK 7 Update 7

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458213#comment-13458213 ] 

Sandro Martini commented on PIVOT-872:
--------------------------------------

After some tests probably I found the problem:
now Java 7 (after the Update 4) has inside even the Java FX Runtime in the jre/lib folder, and inside its jfxrt.jar there is ANOTHER version of netscape.javascript.JSObject class, AND that version hasn't the getWindow(Applet) static method ... just to make some confusion.

Currently in our builds we get all jre/lib jars (which is wrong, ok), and probably most times the jfxrt.jar is searched for classes before the usual plugin.jar, so the compilation error.

Tomorrow I'll make other tests, and a fix for our build files.

                
> Build error with JDK 7 Update 7
> -------------------------------
>
>                 Key: PIVOT-872
>                 URL: https://issues.apache.org/jira/browse/PIVOT-872
>             Project: Pivot
>          Issue Type: Bug
>         Environment: Linux, Windows, and probably all others
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>             Fix For: 2.1, 2.0.3
>
>
> It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.
> Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).
> I have to verify with Oracle how to solve this.
> Some info here: 
> http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PIVOT-872) Build error with JDK 7 Update 7

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini updated PIVOT-872:
---------------------------------

    Fix Version/s: 2.0.3
                   2.1
    
> Build error with JDK 7 Update 7
> -------------------------------
>
>                 Key: PIVOT-872
>                 URL: https://issues.apache.org/jira/browse/PIVOT-872
>             Project: Pivot
>          Issue Type: Bug
>         Environment: Linux, Windows, and probably all others
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>             Fix For: 2.1, 2.0.3
>
>
> It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.
> Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).
> I have to verify with Oracle how to solve this.
> Some info here: 
> http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (PIVOT-872) Build error with JDK 7 Update 7

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini resolved PIVOT-872.
----------------------------------

    Resolution: Fixed

Resolved.

Note that (as already written in BUILD files, in Pivot sources), you must put a reference to junit-4.x.jar, and javaws.jar and plugin.jar in the environment variable CLASSPATH (and optional, even maven-ant-tasks-2.1.x.jar), otherwise with a recent release Java 7, build will not work.


Be free to reopen it in case of problems.

                
> Build error with JDK 7 Update 7
> -------------------------------
>
>                 Key: PIVOT-872
>                 URL: https://issues.apache.org/jira/browse/PIVOT-872
>             Project: Pivot
>          Issue Type: Bug
>         Environment: Linux, Windows, and probably all others
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>             Fix For: 2.1, 2.0.3
>
>
> It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.
> Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).
> I have to verify with Oracle how to solve this.
> Some info here: 
> http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-872) Build error with JDK 7 Update 7

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457812#comment-13457812 ] 

Sandro Martini commented on PIVOT-872:
--------------------------------------

This is an extract of the build error (from 2.0.3, but for 2.1 is the same):

wtk:
    [mkdir] Created dir: D:\sandro\work\pivot\branches\2.0.x\wtk\ant-bin
    [javac] Compiling 397 source files to D:\users\sandro\work\pivot\branches\2.0.x\wtk\ant-bin
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] D:\users\sandro\work\pivot\branches\2.0.x\wtk\src\org\apache\pivot\wtk\BrowserApplicationContext.java:378: error: cannot find symbol
    [javac]             JSObject window = JSObject.getWindow(applicationHostApplet);
    [javac]                                       ^
    [javac]   symbol:   method getWindow(HostApplet)
    [javac]   location: class JSObject
    [javac] 1 error
    [javac] 1 warning

BUILD FAILED
D:\users\sandro\work\pivot\branches\2.0.x\build.xml:527: The following error occurred while executing this line:
D:\users\sandro\work\pivot\branches\2.0.x\build.xml:145: Compile failed; see the compiler error output for details.

                
> Build error with JDK 7 Update 7
> -------------------------------
>
>                 Key: PIVOT-872
>                 URL: https://issues.apache.org/jira/browse/PIVOT-872
>             Project: Pivot
>          Issue Type: Bug
>         Environment: Linux, Windows, and probably all others
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>             Fix For: 2.1, 2.0.3
>
>
> It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.
> Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).
> I have to verify with Oracle how to solve this.
> Some info here: 
> http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (PIVOT-872) Build error with JDK 7 Update 7

Posted by "Sandro Martini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PIVOT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458514#comment-13458514 ] 

Sandro Martini commented on PIVOT-872:
--------------------------------------

Committed all stuff even under trunk, all seems to work.
                
> Build error with JDK 7 Update 7
> -------------------------------
>
>                 Key: PIVOT-872
>                 URL: https://issues.apache.org/jira/browse/PIVOT-872
>             Project: Pivot
>          Issue Type: Bug
>         Environment: Linux, Windows, and probably all others
>            Reporter: Sandro Martini
>            Assignee: Sandro Martini
>             Fix For: 2.1, 2.0.3
>
>
> It seems that latest JDK Update 7 has changed something in the plugin.jar, so that now during a build of Pivot sources gives compilation errors.
> Note that up to JDK 7 Update 4 (and maybe others later, too) all was good (as currently it is in our CI Builds at Apache, some using Java 7).
> I have to verify with Oracle how to solve this.
> Some info here: 
> http://apache-pivot-users.399431.n3.nabble.com/Help-with-Pivot-2-1-build-error-td4022110.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira