petr4ppc Well-Known Member Licensed User Longtime User Dec 13, 2014 #1 Dear friends, my JAR is absolutely Ok on PC. I am trying to run JAR on MAC, but I get this message: The trouble is if I am using DBUTILS Code: Copy #AdditionalJar: sqlite-jdbc-3.7.2 from DBUtils tutorial The app is closed on the row: Code: Copy SQL1.InitializeSQLite(File.DirApp, "database/mydb.db", True) in console(on mac) is this message: WindowServer: CGXSetWindowListSystemAlpha: Invalid windows 1902 (Index 0/1) my app I can not run on MAC... If I run it without Code: Copy SQL1.InitializeSQLite(File.DirApp, "database/mydb.db", True) the APP is then running O.K. on MAC I want use dbutils and sqlite database as on PC... Please can you give me advice? Which file #AdditionalJar: sqlite-jdbc-3.7.2 I must use for MAC? Thank you p4ppc Last edited: Dec 13, 2014
Dear friends, my JAR is absolutely Ok on PC. I am trying to run JAR on MAC, but I get this message: The trouble is if I am using DBUTILS Code: Copy #AdditionalJar: sqlite-jdbc-3.7.2 from DBUtils tutorial The app is closed on the row: Code: Copy SQL1.InitializeSQLite(File.DirApp, "database/mydb.db", True) in console(on mac) is this message: WindowServer: CGXSetWindowListSystemAlpha: Invalid windows 1902 (Index 0/1) my app I can not run on MAC... If I run it without Code: Copy SQL1.InitializeSQLite(File.DirApp, "database/mydb.db", True) the APP is then running O.K. on MAC I want use dbutils and sqlite database as on PC... Please can you give me advice? Which file #AdditionalJar: sqlite-jdbc-3.7.2 I must use for MAC? Thank you p4ppc
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2014 #2 Have you tried to run it from the terminal with java -jar <your jar file>? You will see more information about the error. Remember that Mac file system is case sensitive. Upvote 0
Have you tried to run it from the terminal with java -jar <your jar file>? You will see more information about the error. Remember that Mac file system is case sensitive.
petr4ppc Well-Known Member Licensed User Longtime User Dec 14, 2014 #3 Erel, thank you very much, everything is OK via terminal. I not understand Can I run it normally via icone? Or I must everytime use terminal, please? Thank you very much best regards p4ppc Upvote 0
Erel, thank you very much, everything is OK via terminal. I not understand Can I run it normally via icone? Or I must everytime use terminal, please? Thank you very much best regards p4ppc
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2014 #4 Can you upload your jar file? Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Dec 14, 2014 #5 I want be B4J friendly, I must reduce and edit some info and then I can upload jar, Erel. Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Dec 14, 2014 #6 Erel, please, i am trying to upload file, So I am using the same file - basic file for finding solution - standard starting JAR file in MAC. I am trying uploading the basic JAR = standard DBUTILS jar from DBUtils tutorial - it have 3,4MB. I cant upload the file. This is the reason why I am sending link to dbutilstutorial https://www.b4x.com/android/forum/threads/dbutils-example.34611/#content and project files https://www.b4x.com/android/forum/attachments/dbutils-zip.20907/ This is standard dbutils tutorial JAR and this can be started via terminal on my mac, but standard starting (doubleclick) on file JAR is not successful. MAC - OS X 10,9,5 Installed Java JDK v 7 and JavaFX Scene on MAC. Please what I am doing wrong? Thank you Best regards P4PPC Upvote 0
Erel, please, i am trying to upload file, So I am using the same file - basic file for finding solution - standard starting JAR file in MAC. I am trying uploading the basic JAR = standard DBUTILS jar from DBUtils tutorial - it have 3,4MB. I cant upload the file. This is the reason why I am sending link to dbutilstutorial https://www.b4x.com/android/forum/threads/dbutils-example.34611/#content and project files https://www.b4x.com/android/forum/attachments/dbutils-zip.20907/ This is standard dbutils tutorial JAR and this can be started via terminal on my mac, but standard starting (doubleclick) on file JAR is not successful. MAC - OS X 10,9,5 Installed Java JDK v 7 and JavaFX Scene on MAC. Please what I am doing wrong? Thank you Best regards P4PPC
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2014 #7 I just tried to run DBUtils example (by clicking the icon) on a Mac and it worked fine. Maye their are multiple versions of Java installed on your Mac? Add: MainForm.Title = File.DirApp Maybe it is using a different folder. Upvote 0
I just tried to run DBUtils example (by clicking the icon) on a Mac and it worked fine. Maye their are multiple versions of Java installed on your Mac? Add: MainForm.Title = File.DirApp Maybe it is using a different folder.
petr4ppc Well-Known Member Licensed User Longtime User Dec 15, 2014 #8 Erel, thank you very much for your advices. The trouble was in the name of folder in MAC. Old name of folder was with non english characters. I renamed the name of folder to "aaa" and everything is ok. DBUtils is working. I spent lot of time on this, I spent weekend on this think...its my mistake. Thank you Erel BEST REGARDS p4ppc Upvote 0
Erel, thank you very much for your advices. The trouble was in the name of folder in MAC. Old name of folder was with non english characters. I renamed the name of folder to "aaa" and everything is ok. DBUtils is working. I spent lot of time on this, I spent weekend on this think...its my mistake. Thank you Erel BEST REGARDS p4ppc