Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 29, 2018 #1 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..... Attachments SampleAppWithForm.zip SampleAppWithForm.zip 6.5 KB · Views: 498
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.....
EnriqueGonzalez Expert Licensed User Longtime User Apr 29, 2018 #2 Look for the form method setformstyle change it and see if that was the issue. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2018 #3 The issue with SetFormStyle was related to Windows 10 and it was fixed internally so it is probably something else. Run your app from the terminal with java -jar and check the logs. Upvote 0
The issue with SetFormStyle was related to Windows 10 and it was fixed internally so it is probably something else. Run your app from the terminal with java -jar and check the logs.
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #4 I tried updated CCSUTIL, change the setformstyle, and when I try to get the logs, I got this: Code: Copy 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
I tried updated CCSUTIL, change the setformstyle, and when I try to get the logs, I got this: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2018 #5 Which version of Java is installed? java -version Upvote 0
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #6 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
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.
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #7 First I install the version 8 Code: Copy 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) Code: Copy 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.... Last edited: Apr 30, 2018 Upvote 0
First I install the version 8 Code: Copy 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) Code: Copy 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....
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #8 any solutions for this problem???? I already tried to uninstall and install the versions od JDK 7,8,9 and 10.... Upvote 0
any solutions for this problem???? I already tried to uninstall and install the versions od JDK 7,8,9 and 10....
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #9 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
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.
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #10 Yes, I tried this before and other MAC works, with the same Java version. The jar is correct and working, but I don't know how the problem with this another mac os. Is updated, I tried a lot of versions and still not working Upvote 0
Yes, I tried this before and other MAC works, with the same Java version. The jar is correct and working, but I don't know how the problem with this another mac os. Is updated, I tried a lot of versions and still not working
Daestrum Expert Licensed User Longtime User Apr 30, 2018 #11 Could it be related to this problem https://www.b4x.com/android/forum/threads/b4j-cannot-run-on-mac-os-x.60321/#post-380429 Upvote 0
Could it be related to this problem https://www.b4x.com/android/forum/threads/b4j-cannot-run-on-mac-os-x.60321/#post-380429
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #12 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
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).
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #13 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
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.
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #14 I tried to put right now: Code: Copy Dim jo,tk As JavaObject jo.InitializeStatic("java.awt.Toolkit") tk = jo.runMethod("getDefaultToolkit",Null) still not working... I have two MAC HIGH SIERRA, one of them works, another one no. and have the same JDK, OS version Upvote 0
I tried to put right now: Code: Copy Dim jo,tk As JavaObject jo.InitializeStatic("java.awt.Toolkit") tk = jo.runMethod("getDefaultToolkit",Null) still not working... I have two MAC HIGH SIERRA, one of them works, another one no. and have the same JDK, OS version
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #15 What hardware specs is it in the Mac that doesn't run B4J apps? Upvote 0
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #16 It might even be a driver problem. Some conflict check hardware status. Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #17 Its in a VMWARE based. But the question is: Why works with all programs, including XCODE, compiling for iOS directly. I thing is something wrong with JAVA, not with machine Upvote 0
Its in a VMWARE based. But the question is: Why works with all programs, including XCODE, compiling for iOS directly. I thing is something wrong with JAVA, not with machine
ThRuST Well-Known Member Licensed User Longtime User Apr 30, 2018 #18 Might be easier to just reinstall with OSX El Capitan. Try that then post your outcome. Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Apr 30, 2018 #20 really? I will create another machine with new one Upvote 0