{"id":905,"date":"2012-10-31T14:38:31","date_gmt":"2012-10-31T13:38:31","guid":{"rendered":"http:\/\/www.xenonique.co.uk\/blog\/?p=905"},"modified":"2012-10-31T14:40:51","modified_gmt":"2012-10-31T13:40:51","slug":"building-openjfx-2-2-again","status":"publish","type":"post","link":"https:\/\/www.xenonique.co.uk\/blog\/2012\/10\/31\/building-openjfx-2-2-again\/","title":{"rendered":"Building OpenJFX 2.2 Again"},"content":{"rendered":"<p>Here is how I build the OpenJFX 2.2 on both Mac OS X, because the semi-official <a href=\"https:\/\/openjdk.java.net\/projects\/openjfx\/getting-started.html\" title=\"OpenJFX Getting Started\">Getting Started<\/a> instructions on the OpenJFX site are a bit of out-of-date.<\/p>\n<p>Find a folder for your project, create a folder:-<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir -p ~\/open-jfx-2.2\r\n\r\ncd ~\/open-jfx-2.2\r\n<\/pre>\n<p>Using Mercurial, clone the project folder from the Master change-set:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhg clone https:\/\/hg.openjdk.java.net\/openjfx\/2.2\/master\r\n\r\ncd master\r\n<\/pre>\n<p>Copy the existing JavaFX runtime JAR into a special folder. I am using JavaFX bundled in Oracle Java SE 7 update 9. We create the folder structure and copy the JAR into it.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmkdir -p artifacts\/sdk\/rt\/lib\r\n<\/pre>\n<p>cp ${JAVA_HOME}\/jre\/lib\/jfxrt.jar  artifacts\/sdk\/rt\/lib<\/p>\n<p>ls -l artifacts\/sdk\/rt\/lib<br \/>\n[\/code]<\/p>\n<p>Now clone the RT sub tree using the Mercurial<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nhg clone https:\/\/hg.openjdk.java.net\/openjfx\/2.2\/master\/rt\r\n\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd rt\r\n<\/pre>\n<p>Edit the properties file <code>common.properties<\/code>, and modify the debuggable property near the top of the file (e.g. linenumber 15 or so)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# COMMENTED OUT: javac.debuglevel=${jfx.javac.debuglevel}\r\n#javac.debuglevel=none\r\njavac.debuglevel=lines,vars,source\r\n<\/pre>\n<p>Now we can clean the distribution:-<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nant clean\r\n<\/pre>\n<p>Afterwards, we should be able to compile and build JAR for the existing distribution.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nant dist\r\n<\/pre>\n<p>Look inside the <code>dist<\/code> folder for the results<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\npeterpilgrim@Peters-MBPRD.local [686] &gt; ls -l dist\r\ntotal 6888\r\n-rw-r--r--  1 peterpilgrim  staff  3523332 30 Oct 11:54 openjfxrt.jar\r\npeterpilgrim@Peters-MBPRD.local [687] &gt; \r\n\r\n<\/pre>\n<p>+PP+<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is how I build the OpenJFX 2.2 on both Mac OS X, because the semi-official Getting Started instructions on the OpenJFX site are a bit of out-of-date. Find a folder for your project, create a folder:- Using Mercurial, clone the project folder from the Master change-set: Copy the existing JavaFX runtime JAR into a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[113,75,5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/905"}],"collection":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":5,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/905\/revisions"}],"predecessor-version":[{"id":910,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/posts\/905\/revisions\/910"}],"wp:attachment":[{"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenonique.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}