Feb 6, 2019 Replies: 6 Hello, in this posting I want to show how easy it is to create desktop applications (Windows, Linux, MacOS) with BANano and NW.js. Getting Started: Download NW.js (https://nwjs.io/) and unpack it at a location of your choice. Download the attached library zip and extract it to the internal library folder. Download the attached demo zip and extract it into a folder of your choice. Open the demo with B4J Before you start the demo, it is important that you adjust the variable NwJsFolder. Here you have to enter the folder where you unpacked NW.js. Now you can start the demo in Debug mode. After a short time the NW.js window should open. There are some basic examples of how to control NW.js: Since NW.js has a' built-in' NodeJS, you can also use appropriate commands (such as those of the filesystem) to communicate from BANano with the 'outside world'. Just give it a try. Have fun... Peter Attachments Demo.zip Demo.zip 4.1 KB · Views: 1,257 Library.zip Library.zip 15.9 KB · Views: 1,266 LibrarySourceCode.zip LibrarySourceCode.zip 6.2 KB · Views: 1,154 Last edited: Feb 6, 2019 Click to expand...
Hello, in this posting I want to show how easy it is to create desktop applications (Windows, Linux, MacOS) with BANano and NW.js. Getting Started: Download NW.js (https://nwjs.io/) and unpack it at a location of your choice. Download the attached library zip and extract it to the internal library folder. Download the attached demo zip and extract it into a folder of your choice. Open the demo with B4J Before you start the demo, it is important that you adjust the variable NwJsFolder. Here you have to enter the folder where you unpacked NW.js. Now you can start the demo in Debug mode. After a short time the NW.js window should open. There are some basic examples of how to control NW.js: Since NW.js has a' built-in' NodeJS, you can also use appropriate commands (such as those of the filesystem) to communicate from BANano with the 'outside world'. Just give it a try. Have fun... Peter
alwaysbusy Expert Licensed User Longtime User Feb 6, 2019 #2 Holy smoke! I'm still trying to grasp what I am seeing here. This opens up a whole new world for B4X using BAnano. Definitely will study your library code Fantastic job @Kiffi!
Holy smoke! I'm still trying to grasp what I am seeing here. This opens up a whole new world for B4X using BAnano. Definitely will study your library code Fantastic job @Kiffi!
alwaysbusy Expert Licensed User Longtime User Feb 6, 2019 #3 A fix in BANano is needed to let this also work in release mode. I'll post a new version of BANano tomorrow
A fix in BANano is needed to let this also work in release mode. I'll post a new version of BANano tomorrow
M Michael1968 Active Member Licensed User Longtime User Feb 13, 2019 #5 Hi, I get this error compiling the demo in debug mode: java.lang.UnsupportedClassVersionError: b4j/example/bananonwjsos has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 Click to expand... B4j 7.0 Java 1.8
Hi, I get this error compiling the demo in debug mode: java.lang.UnsupportedClassVersionError: b4j/example/bananonwjsos has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0 Click to expand... B4j 7.0 Java 1.8
Kiffi Well-Known Member Licensed User Longtime User Feb 13, 2019 #6 Michael1968 said: I get this error compiling the demo in debug mode: [...] Click to expand... i'm not the B4J expert, but to my knowledge it should be enough if you rebuild the library on your machine. To do this, unzip LibrarySourceCode.zip and load the project into B4J. Then set the B4J mode to 'Release' and press <F5>. After BANano has created the required files, press <Alt> + <F5> so that B4J can create the Jar file. Greetings ... Peter
Michael1968 said: I get this error compiling the demo in debug mode: [...] Click to expand... i'm not the B4J expert, but to my knowledge it should be enough if you rebuild the library on your machine. To do this, unzip LibrarySourceCode.zip and load the project into B4J. Then set the B4J mode to 'Release' and press <F5>. After BANano has created the required files, press <Alt> + <F5> so that B4J can create the Jar file. Greetings ... Peter
M Michael1968 Active Member Licensed User Longtime User Feb 13, 2019 #7 Hi Kiffi, the problem was in step 2 Getting Started: Download NW.js (https://nwjs.io/) and unpack it at a location of your choice. Download the attached library zip and extract it to the internal library folder. Download the attached demo zip and extract it into a folder of your choice. Open the demo with B4J Click to expand... delete the library files in the internal library folder and put them into the addional folder solved the problem. michael
Hi Kiffi, the problem was in step 2 Getting Started: Download NW.js (https://nwjs.io/) and unpack it at a location of your choice. Download the attached library zip and extract it to the internal library folder. Download the attached demo zip and extract it into a folder of your choice. Open the demo with B4J Click to expand... delete the library files in the internal library folder and put them into the addional folder solved the problem. michael