B4J Tutorial What is B4J?

Discussion in 'B4J Tutorials' started by Erel, Nov 18, 2013.

  1. Nycran

    Nycran Member Licensed User

    Thanks for this Erel - it's looking amazing. Quick question in reference to: "I was surprised with how quickly I could do my first JAR file."

    Can anyone explain the correct process for this? I tried but failed :) When trying to run my jar, I received a NoClassDefFound error for javafx/application/Application

    I assume I need to include the javafx library somehow when compiling the jar file?
     
  2. MaFu

    MaFu Well-Known Member Licensed User

    It seems you haven't javafx on your pc. Have you installed the latest Java 7?
     
    Erel likes this.
  3. Nycran

    Nycran Member Licensed User

    Hello again, yes I most certainly have. To clarify, I can build the application just fine within the IDE (i.e. when I hit compile and run it works). What I am trying to figure out is how to create something I can distribute, e.g. a jar file. I read above that a JAR file can be created (maybe the IDE is already doing this) but I cannot find it.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is very simple. Just run the program in Release mode. The jar file will be created under the Objects folder.
     
  5. Jack Cole

    Jack Cole Active Member Licensed User

    Excellent. This is another great language, which brings together some powerful tools and makes it all comprehensible for cross platform desktop development.
     
  6. masterleous

    masterleous Member Licensed User

    Thanks Erel,

    This is a wonderful tool for windows apps, i like this very much as environment is quick similar to B4A, that's awesome
     
  7. dieterp

    dieterp Active Member Licensed User

    Hi Erel

    Thanks for this. It really does sound awesome! I'm also just trying to understand what a previous person enquired about. B4J will run cross platform on Windows, Linux and Mac, but what is the scope for this (or another B4 language) to run on all the mobile platforms (so Android, iOS etc.)? Does this have the scope or is there something else in the pipeline?

    I guess the question at this point is, if I wanted to write apps to run on everything, what B4 languages would I need to get this right?

    Regards
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Currently there isn't any "B4" tool that creates iOS apps.

    B4J will probably be extended in the future to support building web servers. This will provide at least a partial solution for 100% cross platform "apps".

    For now there are no plans to develop a native tool for iOS. Maybe in the future...
     
  9. dieterp

    dieterp Active Member Licensed User

    Thanks Erel!
     
  10. devlei

    devlei Active Member Licensed User

    I really like this idea!!
     
  11. rbghongade

    rbghongade Active Member Licensed User

    B4J is simply awesome. Bringing the raw power of java to BASIC fanatics like me! Created my first program an used my own library (earlier developed for B4A) and it works like a charm, although there was a warning dialog that it is not a B4J library hence may run improperly!
    Simply wonderful! Erel rocks again! Sometimes I suspect Erel is a super-intelligent being from outer space!
    Jokes apart, I feel that this new tool is the gateway for java platform programming.
    Power(Thanks,1000000..) to Erel.
     
    hibrid0 likes this.
  12. Erel

    Erel Administrator Staff Member Licensed User

    Thank you [​IMG]
     
    hibrid0, LucaMs and alienhunter like this.
  13. rikky1966

    rikky1966 Member Licensed User

    Great Erel!!!
    can I import my existing b4a source codes to compile b4j without any changes? also I'm starting to program to Samsung Tizen SDK platform (coming soon OS on highend samsung devices), so have you any plan to make a b4t compiler?
     
    Last edited: Dec 5, 2013
  14. thestar19

    thestar19 Member Licensed User

    Erel, You said that a B4 tool wasn't on the agenda for iPhone. Is that something we members can change since I would be more then interested to buying it, even if its just for mac?
     
  15. Erel

    Erel Administrator Staff Member Licensed User

    See this tutorial: B4J tutorial for Basic4android developers

    About other platforms. There are currently no plans to support other platforms. Maybe in the future.
     
  16. giga

    giga Well-Known Member Licensed User

    BIG THANK YOU for the great tools Erel.

    B4A and B4J, Which to use first, too many projects???
    Hope my brain can handle it.... may go into overload and end up in developer rehab.
     
  17. cstangor

    cstangor Member Licensed User

    Sorry, so many new OS I'm confused. Can b4j work with the Chromebook?

    Thanks!
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    No. Only Windows, Linux or Mac.
     
  19. cstangor

    cstangor Member Licensed User

    THanks
     
  20. Jaime Ramirez

    Jaime Ramirez Member Licensed User

    Erel:

    If I want to use B4J to develop software that will be running under linux on a beaglebone black, is it possible to setup a cross development so I can use your debugging features?.

    Jaime
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice