G GuyBooth Active Member Licensed User Longtime User Mar 15, 2019 #1 Just "for fun" (I must be a masochist) I installed Java12 release candidate. The immediate reaction from compiling a B4J project was a compile error: "error: module not found: javafx.swing". Is this a concern for the upcoming release? Is there an easy workaround?
Just "for fun" (I must be a masochist) I installed Java12 release candidate. The immediate reaction from compiling a B4J project was a compile error: "error: module not found: javafx.swing". Is this a concern for the upcoming release? Is there an easy workaround?
OliverA Expert Licensed User Longtime User Mar 15, 2019 #2 Java and JavaFX are unbundled. https://gluonhq.com/products/javafx/ GuyBooth said: Is this a concern for the upcoming release? Click to expand... Nope GuyBooth said: Is there an easy workaround? Click to expand... Install JavaFX separately or just wait till a new link for installation shows up here: https://www.b4x.com/b4j.html Upvote 0
Java and JavaFX are unbundled. https://gluonhq.com/products/javafx/ GuyBooth said: Is this a concern for the upcoming release? Click to expand... Nope GuyBooth said: Is there an easy workaround? Click to expand... Install JavaFX separately or just wait till a new link for installation shows up here: https://www.b4x.com/b4j.html
G GuyBooth Active Member Licensed User Longtime User Mar 15, 2019 #3 OliverA said: Install JavaFX separately Click to expand... Installed the JavaFx 12 sdk from Gluon. When I compile my app I now have an error: Code: Copy WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing [Edit note: This is only in debug mode. In release mode, there are no apparent errors] Last edited: Mar 16, 2019 Upvote 0
OliverA said: Install JavaFX separately Click to expand... Installed the JavaFx 12 sdk from Gluon. When I compile my app I now have an error: Code: Copy WARNING: package com.sun.javafx.embed.swing.oldimpl not in javafx.swing [Edit note: This is only in debug mode. In release mode, there are no apparent errors]
Erel B4X founder Staff member Licensed User Longtime User Mar 17, 2019 #4 Java 11 is a LTS version - long term support version. This makes it an important version. Java 12 isn't such version so we will probably skip it. Upvote 0
Java 11 is a LTS version - long term support version. This makes it an important version. Java 12 isn't such version so we will probably skip it.
ThRuST Well-Known Member Licensed User Longtime User Mar 20, 2019 #5 @GuyBooth You can still use Java 8 and swing components if you stay with JDK v9.0.4 and create an installer package for Java 11. Just make sure that you add the neccessary parameters at runtime. Search the forum to find out how this is done. Upvote 0
@GuyBooth You can still use Java 8 and swing components if you stay with JDK v9.0.4 and create an installer package for Java 11. Just make sure that you add the neccessary parameters at runtime. Search the forum to find out how this is done.
OliverA Expert Licensed User Longtime User Mar 20, 2019 #6 ThRuST said: JDK v9.0.4 Click to expand... Your realize JDK 9 and JDK 10 were just stepping stones to 11, right? If you want to stick with 8 and not worry about Oracle licensing, then look for an alternative JDK provider. See https://www.b4x.com/android/forum/t...ith-resize-quality-options.91774/#post-646361 Upvote 0
ThRuST said: JDK v9.0.4 Click to expand... Your realize JDK 9 and JDK 10 were just stepping stones to 11, right? If you want to stick with 8 and not worry about Oracle licensing, then look for an alternative JDK provider. See https://www.b4x.com/android/forum/t...ith-resize-quality-options.91774/#post-646361
ThRuST Well-Known Member Licensed User Longtime User Mar 20, 2019 #7 @OliverA I am "stuck" with JDK v9.0.4 mainly because of my project which tend to take longer than expected to complete, but that's not really a problem since I have heard that it should be possible to use packager11 with Java 8/9 supported parameters. However I have not yet tested this myself, but according to experts in this forum who have tested this combo, it should work. It would be nice to shed some light upon this as well, since Java 8/9 supported libraries are a major contribution for B4X. EDIT: I would like to see a tutorial on how this works with Packager11, so please share a link for this. Upvote 0
@OliverA I am "stuck" with JDK v9.0.4 mainly because of my project which tend to take longer than expected to complete, but that's not really a problem since I have heard that it should be possible to use packager11 with Java 8/9 supported parameters. However I have not yet tested this myself, but according to experts in this forum who have tested this combo, it should work. It would be nice to shed some light upon this as well, since Java 8/9 supported libraries are a major contribution for B4X. EDIT: I would like to see a tutorial on how this works with Packager11, so please share a link for this.
OliverA Expert Licensed User Longtime User Mar 20, 2019 #8 Erel said: Java 11 is a LTS version Click to expand... Please note that his will not be true for OpenJDK. OpenJDK is on a 6 month release cycle. https://blog.codefx.org/java/java-11-migration-guide/#On-Releases-JDKs-And-Licenses https://www.tomaszezula.com/2018/11/12/oracle-jdk-changes-to-the-release-cycle/ https://www.baeldung.com/oracle-jdk-vs-openjdk If you are looking for an LTS version of OpenJDK that is not Oracle and has no license fees, you'll need to look at alternatives. One that promises LTS support is Amazon with Corretto (https://aws.amazon.com/corretto/). Others may exist. See the link in post#6 above (you'll have to check for yourself in regards to long time support options). Upvote 0
Erel said: Java 11 is a LTS version Click to expand... Please note that his will not be true for OpenJDK. OpenJDK is on a 6 month release cycle. https://blog.codefx.org/java/java-11-migration-guide/#On-Releases-JDKs-And-Licenses https://www.tomaszezula.com/2018/11/12/oracle-jdk-changes-to-the-release-cycle/ https://www.baeldung.com/oracle-jdk-vs-openjdk If you are looking for an LTS version of OpenJDK that is not Oracle and has no license fees, you'll need to look at alternatives. One that promises LTS support is Amazon with Corretto (https://aws.amazon.com/corretto/). Others may exist. See the link in post#6 above (you'll have to check for yourself in regards to long time support options).
ThRuST Well-Known Member Licensed User Longtime User Mar 20, 2019 #9 @OliverA Are you saying that Java 8/9 installers with Java 11 LTS version won't work in the next 6 month? I was hoping that the JavaFX platform would be a waterproof choice for my project but ever since Oracle chosed to change direction I cannot even create an installer to have my project released, what a shame. Three years of hard work down the drain, but hopefully not. Upvote 0
@OliverA Are you saying that Java 8/9 installers with Java 11 LTS version won't work in the next 6 month? I was hoping that the JavaFX platform would be a waterproof choice for my project but ever since Oracle chosed to change direction I cannot even create an installer to have my project released, what a shame. Three years of hard work down the drain, but hopefully not.
Erel B4X founder Staff member Licensed User Longtime User Mar 20, 2019 #10 ThRuST said: @OliverA Are you saying that Java 8/9 installers with Java 11 LTS version won't work in the next 6 month? Click to expand... This thread is about Java 12. You should start a new thread for any other question. Upvote 0
ThRuST said: @OliverA Are you saying that Java 8/9 installers with Java 11 LTS version won't work in the next 6 month? Click to expand... This thread is about Java 12. You should start a new thread for any other question.
ThRuST Well-Known Member Licensed User Longtime User Mar 20, 2019 #11 @OliverA OpenJDK is on a 6 month release cycle. Click to expand... My worry is that the LTS version will not run my application once the 6 month cycle expires. My concerns can be covered in a new post as Erel recommends. Upvote 0
@OliverA OpenJDK is on a 6 month release cycle. Click to expand... My worry is that the LTS version will not run my application once the 6 month cycle expires. My concerns can be covered in a new post as Erel recommends.
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2019 #12 OliverA said: Please note that his will not be true for OpenJDK. OpenJDK is on a 6 month release cycle. Click to expand... This statement is not correct. OpenJDK is an open source project and there are many companies that plan to continue and maintain it for many years. You can read it in the posted link: https://blog.codefx.org/java/java-11-migration-guide/#On-Releases-JDKs-And-Licenses And you can read it in this mailing list thread: http://mail.openjdk.java.net/pipermail/jdk-dev/2018-August/001823.html Upvote 0
OliverA said: Please note that his will not be true for OpenJDK. OpenJDK is on a 6 month release cycle. Click to expand... This statement is not correct. OpenJDK is an open source project and there are many companies that plan to continue and maintain it for many years. You can read it in the posted link: https://blog.codefx.org/java/java-11-migration-guide/#On-Releases-JDKs-And-Licenses And you can read it in this mailing list thread: http://mail.openjdk.java.net/pipermail/jdk-dev/2018-August/001823.html
ThRuST Well-Known Member Licensed User Longtime User Mar 21, 2019 #13 @Erel Thanks for pointing this out. How many times have we all not installed software that needs dependencies like C++ runtime 2010, 2013 and 2015 because we want to use some old application that we like and need. That makes me wonder why Java versions would not follow this trend. I mean, what's the point in creating an application if it cannot be used because of Java framework has been upgraded. There must be a backward compatibility like Microsoft secured. Sorry if this might balance to be off topic, but Oliver fueled my fears by saying that and it makes me wonder why Amazon Corretto saw the light of day in the first place when there's open JDK. I can not be the only one who wonder about this. This post may be moved to my Corretto post if that is better, but I think this answer was relevant. Upvote 0
@Erel Thanks for pointing this out. How many times have we all not installed software that needs dependencies like C++ runtime 2010, 2013 and 2015 because we want to use some old application that we like and need. That makes me wonder why Java versions would not follow this trend. I mean, what's the point in creating an application if it cannot be used because of Java framework has been upgraded. There must be a backward compatibility like Microsoft secured. Sorry if this might balance to be off topic, but Oliver fueled my fears by saying that and it makes me wonder why Amazon Corretto saw the light of day in the first place when there's open JDK. I can not be the only one who wonder about this. This post may be moved to my Corretto post if that is better, but I think this answer was relevant.
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2019 #14 Amazon Corretto = OpenJDK. It is just another build based on the same code. You should be able to use it if you organize it as B4J expects. You will not gain anything from this but it should work. Upvote 0
Amazon Corretto = OpenJDK. It is just another build based on the same code. You should be able to use it if you organize it as B4J expects. You will not gain anything from this but it should work.
ThRuST Well-Known Member Licensed User Longtime User Mar 21, 2019 #15 Erel said You should be able to use it if you organize it as B4J expects. Click to expand... (How to add someones name to quotes?) It's not only to install and reference to B4J like Open JDK 11/12? Perhaps you can provide a installer instructions on B4J page if Corretto is worth the trouble of course. Upvote 0
Erel said You should be able to use it if you organize it as B4J expects. Click to expand... (How to add someones name to quotes?) It's not only to install and reference to B4J like Open JDK 11/12? Perhaps you can provide a installer instructions on B4J page if Corretto is worth the trouble of course.
DonManfred Expert Licensed User Longtime User Mar 21, 2019 #16 ThRuST said: How to add someones name to quotes? Click to expand... Just mark the text you want to quote and click on the reply-popup. The Quoted user and Post are referenced automatically. Note that it only works in threads which are not Closed. Upvote 0
ThRuST said: How to add someones name to quotes? Click to expand... Just mark the text you want to quote and click on the reply-popup. The Quoted user and Post are referenced automatically. Note that it only works in threads which are not Closed.
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2019 #17 As I wrote, at this point you will not gain anything from using a different distribution. If it will be relevant I will write instructions for this. The updated instructions are available here: https://www.b4x.com/b4j.html Upvote 0
As I wrote, at this point you will not gain anything from using a different distribution. If it will be relevant I will write instructions for this. The updated instructions are available here: https://www.b4x.com/b4j.html
ThRuST Well-Known Member Licensed User Longtime User Mar 21, 2019 #18 Erel said: If it will be relevant I will write instructions for this. Click to expand... @DonManfred and @Erel Simultanious quesions successfully covered and sorted out. Cheers Upvote 0
Erel said: If it will be relevant I will write instructions for this. Click to expand... @DonManfred and @Erel Simultanious quesions successfully covered and sorted out. Cheers
ThRuST Well-Known Member Licensed User Longtime User Mar 21, 2019 #19 Btw @Erel What about the parameters for B4JPackager11 when referencing RNE for Java 8/9, can you please add instructions for that as well? Upvote 0
Btw @Erel What about the parameters for B4JPackager11 when referencing RNE for Java 8/9, can you please add instructions for that as well?
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2019 #20 ThRuST said: What about the parameters for B4JPackager11 when referencing RNE for Java 8/9, can you please add instructions for that as well? Click to expand... No. B4JPackager11 works with Java 11+ (+ in the future when it will be relevant). Use B4JPackager (not 11) for Java 8 or 9. Upvote 0
ThRuST said: What about the parameters for B4JPackager11 when referencing RNE for Java 8/9, can you please add instructions for that as well? Click to expand... No. B4JPackager11 works with Java 11+ (+ in the future when it will be relevant). Use B4JPackager (not 11) for Java 8 or 9.