hello and macosx build trouble
richard.bair at oracle.com
Mon Aug 12 14:31:20 PDT 2013
I've moved JSObject and JSException up to the graphics module, and removed the "plugin" dependency from the build. I tested on the open build and this works. The settings I used in my gradle.properties are these:
JDK_HOME = /Users/rbair/Projects/openjdk/jdk8/build/macosx-x86_64-normal-server-release/images/j2sdk-image
BINARY_STUB = /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/ext/jfxrt.jar
You have to provide a jfxrt.jar (which isn't part of normal OpenJDK builds) so that the media related dependencies can be satisfied (since we haven't fully open sourced the media bits yet).
My tests are not passing for a completely open build based on OpenJDK, and I'm not sure why yet, but the build itself does seem to complete now.
On Aug 10, 2013, at 8:47 AM, René Jansen <rvjansen at xs4all.nl> wrote:
> ah, this list does not have a reply-to this list. Sorry about that, Richard, I noticed that only now.
> In the meantime, I found out that the missing JSObject has been added three times to my system by the git clone, but it is not compiled and on the classpath at the right moment. Any clues on what the best way is to make sure this dependency is fulfilled? Is it my commenting out of the plugin that causes this?
> best regards,
> René Jansen.
> Begin forwarded message:
>> From: René Jansen <rvjansen at xs4all.nl>
>> Subject: Re: hello and macosx build trouble
>> Date: 10 augustus 2013 16:53:59 CEST
>> To: Richard Bair <richard.bair at oracle.com>
>> Hi Richard,
>> On 10 aug. 2013, at 15:51, Richard Bair <richard.bair at oracle.com> wrote:
>>> Hi Rene,
>>> I just did a fresh clone and build and it succeeded for me, so now we have to figure out what the difference is.
>>>> I started with building OpenJDK 8
>>> This might be the first issue, I've always built against the dev preview builds of JDK 8, not OpenJDK 8. I tried to sort this out with Mario Torre a month back but didn't get to the bottom of it.
>> I might have to try that.
>>>> Now I am trying to build OpenJFX. I have gone past the hurdle of the Gradle buiildfile requiring a JDK build number larger than 100 - I set this to 0 and it happily trucks on
>>> I assume you were using the very latest OpenJDK 8 though?
>>>> FAILURE: Build failed with an exception.
>>>> * What went wrong:
>>>> Could not resolve all dependencies for configuration ':graphics:compile'.
>>>>> Could not find :plugin:.
>>>> Required by:
>>> This is most likely bailing when looking for plugin.jar (which isn't part of OpenJDK). I believe this is just because the code is looking for JSObject. If you edit build.gradle and take out the plugin dependency, you can see where the build fails and why without it.
>> :updateCacheIfNeeded UP-TO-DATE
>> :base:processVersionInfo UP-TO-DATE
>> :base:compileJava UP-TO-DATE
>> :base:processResources UP-TO-DATE
>> :base:classes UP-TO-DATE
>> :base:jar UP-TO-DATE
>> Download http://download.eclipse.org/eclipse/updates/3.7/R-3.7.2-201202080800/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.7.2.v3740f.jar
>> [ant:javac] ^
>> [ant:javac] /Users/rvjansen/apps/rt/modules/graphics/src/main/java/com/sun/javafx/application/HostServicesDelegate.java:88: error: cannot find symbol
>> [ant:javac] public abstract JSObject getWebContext();
>> [ant:javac] ^
>> [ant:javac] symbol: class JSObject
>> [ant:javac] location: class HostServicesDelegate
>> This might have to do with Nashorn replacing Rhino?
>> best regards,
More information about the openjfx-dev