IndieDev Active Member Licensed User Longtime User Feb 17, 2023 #1 Hi, While trying to compile on MacOS, getting this error. [CODE lang="b4x" title="MacOS error"]B4JPackager11 Version 1.13 main._v0 (java line: 1005) org.json.JSONException: Unterminated object at character 84 of { InputJar: "/Users/PK/Projects/B4J/PKSysLog/PKProjectLog.jar”, IconFile: "/Users/PK/Projects/B4J/PKSysLog/syslog.ico" } at org.json.JSONTokener.syntaxError(JSONTokener.java:450) at org.json.JSONTokener.readObject(JSONTokener.java:394) at org.json.JSONTokener.nextValue(JSONTokener.java:100) at anywheresoftware.b4j.objects.collections.JSONParser.NextObject(JSONParser.java:48) at b4j.example.main._v0(main.java:1005) at b4j.example.main._appstart(main.java:70) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91) at anywheresoftware.b4a.BA.raiseEvent(BA.java:78) at b4j.example.main.main(main.java:28)[/CODE] Compiles fine on Windows using Build Standalone Package. Regards.
Hi, While trying to compile on MacOS, getting this error. [CODE lang="b4x" title="MacOS error"]B4JPackager11 Version 1.13 main._v0 (java line: 1005) org.json.JSONException: Unterminated object at character 84 of { InputJar: "/Users/PK/Projects/B4J/PKSysLog/PKProjectLog.jar”, IconFile: "/Users/PK/Projects/B4J/PKSysLog/syslog.ico" } at org.json.JSONTokener.syntaxError(JSONTokener.java:450) at org.json.JSONTokener.readObject(JSONTokener.java:394) at org.json.JSONTokener.nextValue(JSONTokener.java:100) at anywheresoftware.b4j.objects.collections.JSONParser.NextObject(JSONParser.java:48) at b4j.example.main._v0(main.java:1005) at b4j.example.main._appstart(main.java:70) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91) at anywheresoftware.b4a.BA.raiseEvent(BA.java:78) at b4j.example.main.main(main.java:28)[/CODE] Compiles fine on Windows using Build Standalone Package. Regards.
IndieDev Active Member Licensed User Longtime User Feb 17, 2023 #2 Please ignore this post. Seems like the MacOS terminal had some issue. Opened a new terminal and tried a compile. It worked!!! PS: I am using MacOS installation on a Virtual Machine Last edited: Feb 17, 2023 Upvote 0
Please ignore this post. Seems like the MacOS terminal had some issue. Opened a new terminal and tried a compile. It worked!!! PS: I am using MacOS installation on a Virtual Machine
MarcoRome Expert Licensed User Longtime User Feb 17, 2023 #3 The message is a Json error. The quotation marks are wrong ( end PkProjectLog.jar ) anyway read also this: You can also put an icon file at the same folder as the jar file. The icon extension should be icns. You can use this tool to create the icon: https://cloudconvert.com/png-to-icns Upvote 0
The message is a Json error. The quotation marks are wrong ( end PkProjectLog.jar ) anyway read also this: You can also put an icon file at the same folder as the jar file. The icon extension should be icns. You can use this tool to create the icon: https://cloudconvert.com/png-to-icns
IndieDev Active Member Licensed User Longtime User Feb 17, 2023 #4 MarcoRome said: The message is a Json error. The quotation marks are wrong ( end PkProjectLog.jar ) View attachment 139411 anyway read also this: You can also put an icon file at the same folder as the jar file. The icon extension should be icns. You can use this tool to create the icon: https://cloudconvert.com/png-to-icns Click to expand... Thanks you for your reply, MarcoRome. ?? I had tried this option too. B4X: { InputJar: "/Users/PK/Projects/B4J/PKSysLog/PKProjectLog.jar", IconFile: "/Users/PK/Projects/B4J/PKSysLog/syslog.ico" } It finally compiled after I closed and reopened another terminal! ? Probably something to do with the VM..... Upvote 0
MarcoRome said: The message is a Json error. The quotation marks are wrong ( end PkProjectLog.jar ) View attachment 139411 anyway read also this: You can also put an icon file at the same folder as the jar file. The icon extension should be icns. You can use this tool to create the icon: https://cloudconvert.com/png-to-icns Click to expand... Thanks you for your reply, MarcoRome. ?? I had tried this option too. B4X: { InputJar: "/Users/PK/Projects/B4J/PKSysLog/PKProjectLog.jar", IconFile: "/Users/PK/Projects/B4J/PKSysLog/syslog.ico" } It finally compiled after I closed and reopened another terminal! ? Probably something to do with the VM.....