B4J Question B4J .jar on new machine fails

Discussion in 'B4J Questions' started by Bruce Axtens, Feb 26, 2015.

  1. Bruce Axtens

    Bruce Axtens Member Licensed User

    What else needs to be transferred to a target machine when running a B4J app? I just copied BOJ.jar to another Win7 machine. There was no Java installed so I installed the latest JRE. When I run the .jar with the command line
    Code:
    java -Xmx16m -jar BOJ.jar
    I get part of the screen frozen (as if the app is trying to run) and the following at the CMD terminal (truncated):
    Code:
    Program started.
    java.lang.NullPointerException
        at com.sun.javafx.sg.prism.RegionImageCache.<init>(Unknown Source)
        at com.sun.javafx.sg.prism.NGRegion.getImageCache(Unknown Source)
        at com.sun.javafx.sg.prism.NGRegion.renderBackgroundRectangle(Unknown Source)
        at com.sun.javafx.sg.prism.NGRegion.renderAsRectangle(Unknown Source)
        at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
        at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
        at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
        at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
        at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
        at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
        at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
        at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
        at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
        at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
        at com.sun.javafx.sg.prism.NGNode.render(Unknown Source)
        at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)
        at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(Unknown Source)
        at com.sun.javafx.tk.quantum.UploadingPainter.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at com.sun.javafx.tk.RenderJob.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    BOJ source and third party libs attached.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Are you running it on a server that supports UI applications?
     
  3. Bruce Axtens

    Bruce Axtens Member Licensed User

    Yes. I'm RDPing into a Windows 7 as per the attached.
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    Moved to the questions forum as it doesn't look like a bug in B4J.

    What is the output of java -version?
     
  5. Bruce Axtens

    Bruce Axtens Member Licensed User

    Code:
    C:\Users\Propelis\Desktop\.joblog>java -version
    java version 
    "1.8.0_31"
    Java(TM) SE Runtime Environment (build 
    1.8.0_31-b13)
    Java HotSpot(TM) Client VM (build 
    25.31-b07, mixed mode, sharing)
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Why are you limiting it to 16mb?

    I'm unable to reproduce it.

    Might be something with this computer display driver. Try to create a new project with a single empty form and see whether it works on this computer.
     
  7. Bruce Axtens

    Bruce Axtens Member Licensed User

    Limiting it to 16MB because this question is derived from another where you suggested limiting to 16MB. Couldn't think of a reason not to continue using the same command line.
     
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