# B4x rant thread

**URL:** <https://ifnotnil.com/t/b4x-rant-thread/1002>\
**Category:** Other\
**Created:** [13 September 2020 15:45 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002 "2020-09-13T15:45:12Z")\
**Posts on this page:** 14\
**Page:** 4

<div class="post-metadata">

**Author:** ![thorstenstueker](https://ifnotnil.com/letter_avatar_proxy/v4/letter/t/aca169/32.png) [@thorstenstueker](https://ifnotnil.com/u/thorstenstueker)\
**Post date:** [9 October 2020 08:05 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/61 "2020-10-09T08:05:25Z")

</div>

As I also told him Erel, but he likes to test sometimes. Because from some reasons I have a problem with the openjdk you provide I had to change to Azul JDK FX 11 because I needed to get it running under Linux like you know. But it runs with NON UI and with UI Applications also with custom views; until now I did not find any problem.

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [9 October 2020 10:04 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/62 "2020-10-09T10:04:59Z")

</div>

i got the recommended one and i got it to work on other windows 10 machine.

i got the same one for windows 8.1 machine that i upgrade late last night and i got the same error whether it was before or after upgrade

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [9 October 2020 12:07 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/63 "2020-10-09T12:07:19Z")

</div>

> [@npalardy](#):
>
> HOWEVER I grabbed Java 15 and it seems to build a standalone B4J requires, or insists on, Java 11 so I might need a different installer from Azul

i grab all the different version from 8 to 15 of the jdk.

tested ok for “ **Compiling and Run** ” for v15.27.17 but not ok with all other version.  
this is the error i got “error: module not found: javafx.swt”

when i do a ' **Build Standalone Package**" on v15,27,17, i got the error about “Java11+ is required” while all other version, i got the same “error: module not found: javafx.swt”

more information : manage to get v8.48.0.53 to **"Compiling and Run**" but not ' **Build Standalone Package**"

---

<div class="post-metadata">

**Author:** ![Erel](https://ifnotnil.com/letter_avatar_proxy/v4/letter/e/ecccb3/32.png) [@Erel](https://ifnotnil.com/u/Erel)\
**Post date:** [9 October 2020 16:43 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/64 "2020-10-09T16:43:20Z")

</div>

As I wrote, B4J expects a specific structure for OpenJDK. You should download it from [b4x.com](http://b4x.com).

Windows Java 11: [https://www.b4x.com/b4j.html](https://www.b4x.com/b4j.html)  
Java 11 / 14 for other platforms: [https://www.b4x.com/android/forum/threads/b4jpackager11-the-simplest-way-to-distribute-ui-apps.99835/#content](https://www.b4x.com/android/forum/threads/b4jpackager11-the-simplest-way-to-distribute-ui-apps.99835/#content)

Creating a standalone Windows package is quite simple. Creating a package for Linux or Mac is a bit more complicated: [https://www.b4x.com/android/forum/threads/creating-a-mac-package-with-b4jpackager11.122345/](https://www.b4x.com/android/forum/threads/creating-a-mac-package-with-b4jpackager11.122345/)

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [9 October 2020 17:17 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/65 "2020-10-09T17:17:00Z")

</div>

> [@Erel](#):
>
> Windows Java 11: [Learn Cross Platform App Development IoT, Desktop & Server | B4J](https://www.b4x.com/b4j.html)

i did that right from the beginning…

it work on AMD Windows 10 machine (install 1 months ago) but not on INTEL Windows 10 machine (install yesterday)

got this error as below for both **“Compiling and Run”** and **'Build Standalone Package"**

_"B4J Version: 8.50_  
_Java Version: 11_  
_Parsing code. (0.00s)_  
_Building folders structure. (0.04s)_  
_Compiling code. (0.06s)_  
_Compiling layouts code. (0.00s)_  
_Organizing libraries. (0.00s)_  
_Compiling generated Java code. Error_  
_error: cannot read file C:\JAVA\JVM\JDK\jdk-11.0.1\bin..\javafx\lib.\_javafx-swt.jar_  
_1 error_

_javac 11.0.1"_

---

<div class="post-metadata">

**Author:** ![jmadren](https://ifnotnil.com/user_avatar/ifnotnil.com/jmadren/32/65_2.png) [@jmadren](https://ifnotnil.com/u/jmadren)\
**Post date:** [9 October 2020 22:52 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/66 "2020-10-09T22:52:33Z")

</div>

> [@trishaduke](#):
>
> error: cannot read file C:\JAVA\JVM\JDK\jdk-11.0.1\bin…\javafx\lib.\_javafx-swt.jar

Have you verified that this path/file is there?

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [10 October 2020 00:13 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/67 "2020-10-10T00:13:22Z")

</div>

have not idea what the ‘…’ behind the bin for referring too.  
C:\JAVA\JVM\JDK\jdk-11.0.1\bin is where the javac.exe is  
@Erel , any idea??

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [10 October 2020 00:38 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/68 "2020-10-10T00:38:54Z")

</div>

Do i need to set any environmental variable ???

---

<div class="post-metadata">

**Author:** ![jmadren](https://ifnotnil.com/user_avatar/ifnotnil.com/jmadren/32/65_2.png) [@jmadren](https://ifnotnil.com/u/jmadren)\
**Post date:** [10 October 2020 02:55 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/69 "2020-10-10T02:55:37Z")

</div>

> [@trishaduke](#):
>
> have not idea what the ‘…’ behind the bin for referring too.

I think Discourse is converting `"..\"` to “…”. If so, the `"..\"` means the parent folder, in this case “`C:\JAVA\JVM\JDK\jdk-11.0.1\`”.

May be the same thing for the “.\_” part, but I can’t figure out why. You should use the preformatted text tool like I did above so we can see the exact path it’s reporting.

If the actual path in the error message is “`C:\JAVA\JVM\JDK\jdk-11.0.1\bin..\javafx\lib\javafx-swt.jar`”, this should translate to “C:\JAVA\JVM\JDK\jdk-11.0.1\lib\javafx-swt.jar”. And that’s where it is on mine (well, without the “JVM\JDK” part - my “jdk-11.0.1” folder is directly under C:\Java).

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [10 October 2020 03:22 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/70 "2020-10-10T03:22:52Z")

</div>

This is one of those things that I do like about Xojo (and certain other IDE’s as well)  
One download and off you go  
All the parts are present as part of that download  
VS and Xcode are mostly that way too - and if they need more parts they can go get them for you

B4J would be nice if it did that as well  
Include all the parts OR have a way to go get the ones it needs

---

<div class="post-metadata">

**Author:** ![Erel](https://ifnotnil.com/letter_avatar_proxy/v4/letter/e/ecccb3/32.png) [@Erel](https://ifnotnil.com/u/Erel)\
**Post date:** [10 October 2020 05:41 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/71 "2020-10-10T05:41:55Z")

</div>

No need to set anything other than the path under Tools - Configure Paths.

My guess is that the zip file wasn’t properly unpacked. We do see such cases from time to time. Delete the Java folder and use a tool such as 7zip to unpack the Java zip (downloaded from [b4x.com](http://b4x.com)).

---

<div class="post-metadata">

**Author:** ![Erel](https://ifnotnil.com/letter_avatar_proxy/v4/letter/e/ecccb3/32.png) [@Erel](https://ifnotnil.com/u/Erel)\
**Post date:** [10 October 2020 05:45 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/72 "2020-10-10T05:45:34Z")

</div>

BTW, there should be a javafx-swt.jar file under jdk-11.0.1\javafx\lib\javafx.swing.jar

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [10 October 2020 12:02 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/73 "2020-10-10T12:02:22Z")

</div>

> [@Erel](#):
>
> My guess is that the zip file wasn’t properly unpacked. We do see such cases from time to time. Delete the Java folder and use a tool such as 7zip to unpack the Java zip

i am trying downloading directly from my wndows machine. i was downloading from my mac and mac automactically unzip the file. on my other machine that work, i must have downloading directly from the window machine tooo…

---

<div class="post-metadata">

**Author:** ![trishaduke](https://ifnotnil.com/user_avatar/ifnotnil.com/trishaduke/32/41_2.png) [@trishaduke](https://ifnotnil.com/u/trishaduke)\
**Post date:** [10 October 2020 12:21 UTC](https://ifnotnil.com/t/b4x-rant-thread/1002/74 "2020-10-10T12:21:27Z")

</div>

@Erel, got it working now…

i set the unzipping after download on the mac and it wasn’t unzipping the files properly.

so after trying out your instruction and download from the windows machine, it right away

[Previous page](https://ifnotnil.com/t/b4x-rant-thread/1002.md?page=3)
