B4J Question B4J .jar on new machine fails

Bruce Axtens

Active Member
Licensed User
Longtime 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
B4X:
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):
B4X:
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.
 

Attachments

  • BOJ.zip
    2.9 KB · Views: 268
  • others.zip
    85.1 KB · Views: 266

Bruce Axtens

Active Member
Licensed User
Longtime User
Yes. I'm RDPing into a Windows 7 as per the attached.
 

Attachments

  • supportsui.PNG
    supportsui.PNG
    52.1 KB · Views: 332
Upvote 0

Bruce Axtens

Active Member
Licensed User
Longtime User
B4X:
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)
 
Upvote 0

Bruce Axtens

Active Member
Licensed User
Longtime 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.
 
Upvote 0
Top