B4J Question Missing Components when running on MAC?

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Somebody knows if when running an app created by B4J on a MAC need install something else?

Because the same .jar running on Windows, You can see every components (button, listview, images, etc) and when running on a Mac this components not showing.

Look the screenshots with the same .jar running on both OS (windows and mac)

My sample is attach in this post.....


Screen_Shot_04-29-18_at_10.51_PM.png


Screen_Shot_04-29-18_at_10.53_PM.png
 

Attachments

  • SampleAppWithForm.zip
    6.5 KB · Views: 213

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
I tried updated CCSUTIL, change the setformstyle, and when I try to get the logs, I got this:

B4X:
Last login: Sun Apr 29 23:13:06 on console
192:~ iglesias$ java -jar  /Users/iglesias/Desktop/TestMac\ 4.jar 
2018-04-29 23:41:02.848 java[536:9352] CGLChoosePixelFormat error: 10002
2018-04-29 23:41:02.851 java[536:9352] CGLCreateContext error: 10002
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Update Java to the latest version. I use a PC and compiles the JAR file then I copy it over to dropbox and can install it from my Mac from there.
Works perfectly.
 
Upvote 0

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
First I install the version 8
B4X:
192:~ iglesias$ java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
192:~ iglesias$

after that, I tried with latest version (10)
B4X:
192:~ iglesias$ java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
192:~ iglesias$


and still the same!

Don't show any components....


Screen_Shot_04-30-18_at_09.13_AM.png
 
Last edited:
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Can you compile your project on a PC and move it over to your Mac? I believe this is a vital part of tracking the error you experience.
Is it the same on another Mac? have someone compile your code on another machine. Then post the outcome of your tests.
You have to do such experiments to locate the problem. Does it work with other JAR applications found in the forum? good luck.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
You mean it worked with another operating system? It might be related to Mac OS High Sierra? Never tried that I use OSX El Capitan. It works fine with B4J v601 and Java v9.0.4.
You might want to try that just to make sure it work (since it works fine for me).
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
If it is related to java.awt.Toolkit then perhaps Erel can give you the answer if B4J uses that. You might want to go with my config since I don't have this problem.
Note that I compile on a PC and run it on a Mac.. works with no errors.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
Might be easier to just reinstall with OSX El Capitan. Try that then post your outcome.
 
Upvote 0
Top