B4X - Multi Application Output

Discussion in 'Forum Discussion' started by Jmu5667, May 31, 2019.

?

Is this a good idea ?

  1. Yes

    62.5%
  2. No

    37.5%
  1. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    Hello

    I was pondering the future of Java and other such technologies the other night. As we all invest time and money into producing applications, some for fun, others for the full time business and it occurred to me that the B4X ecosystem is truly amazing and has huge potential.

    In particular B4J. It would be an awesome achievement if B4J was able to produce C++ exe's rather then JAR files. It would probably mean a B4C IDE. I am thinking if this was possibly on the development roadmap, the initial version for be for console/server apps only.

    Currently B4J is free, and I think it is very generous of Erel to do this. I would pay for B4J without question. B4J has allowed my company develop truly amazing server apps that would have been a daunting task in VS, or having to learn JAVA.

    So, in summary, what do others think of this ?

    Regards

    John.
     
  2. Star-Dust

    Star-Dust Expert Licensed User

    The Jar format allows applications to run well beyond windows even on Mac and Linux. My applications are now multi-platform and I have satisfied a larger customer base.

    The Exe file is limiting and you can still get it from Jar.
     
    jimmyF likes this.
  3. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    I think my point was to produce a binary that does not rely on JAVA to be installed, all though I am aware of the benefits of producing a JAR file :)
     
  4. Star-Dust

    Star-Dust Expert Licensed User

    There are several tools that produce EXE files.
    Is your request to have an integrated tool if you want to produce a binary file exclusively for Windows?
     
  5. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    That seems like a good idea. The new licensing from Oracle is going to cause an issue with customers. I had a look a OpenJDK 11 with one of our apps and it crashed. So, if we can produce an executable that does not reply on JRE that would overcome the license issue, or am I missing something ?
     
  6. Star-Dust

    Star-Dust Expert Licensed User

    I imagine your customers only use Windows. Solved only for those who use windows.

    In any case, the code is based on the Java runtime even if compiled with any compilation tools. So nothing would be solved.

    Your request, which you should propose in the forum section of WISH, probably requires a complete redesign that does not make everything depend on java
     
  7. XbNnX_507

    XbNnX_507 Active Member Licensed User

    This utility could be of great help http://www.jar2exe.com. i dont't know if it is fully compatible with b4j' .jar generated executables.
     
  8. Jmu5667

    Jmu5667 Well-Known Member Licensed User

  9. Jmu5667

    Jmu5667 Well-Known Member Licensed User

  10. OliverA

    OliverA Well-Known Member Licensed User

    I think we are getting hung up on the usage of EXE by the @Jmu5667. C++ pretty much compiles to any platform imaginable. The grander issue here would be cross platform library support that would match that of Java. For windowing, one may opt to go with wxWidgets (it's just the first one that popped into my head). For other things, who knows.
    Yes, but we know that the transpiling portion can be done (See the various outputs of the B4X platform: Java, Objective-C and C). The issue, as mentioned above, would be cross platform libraries.

    Please note that this all seems to come from the change of Oracle's licensing of Java. It's throwing a lot of people for a loop and the underlying thought may be that it may be time to look for another underlying platform that may be more resistant to change when it comes to licensing issues. Part of the problem (in regards to Java licensing) is solvable by using other providers of the Java JDK/JRE (see the two posts above this).

    On a coolness factor, I still think it would be cool if one could create cross-platform C++ with B4X (being super selfish here: especially in the non-gui server environment). Hey, one may dream...
     
    Jmu5667 likes this.
  11. Erel

    Erel Administrator Staff Member Licensed User

    Java is not required. Search for B4J Packager 11.

    OpenJDK license is more permissive than the old Java license.

    C++ is not better suited than Java for servers.
     
    Jmu5667, XbNnX_507, jimmyF and 2 others like this.
  12. Jmu5667

    Jmu5667 Well-Known Member Licensed User

    I was not aware java was better for servers then c++
     
    ShaneG30 likes this.
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