B4J Question Error compiling on MAC [please ignore this post]

IndieDev

Active Member
Licensed User
Hi,

While trying to compile on MacOS, getting this error.
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)

Compiles fine on Windows using Build Standalone Package.

Regards.
 

IndieDev

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

MarcoRome

Expert
Licensed User
Longtime User
The message is a Json error.

1676613598261.png


The quotation marks are wrong ( end PkProjectLog.jar )

1676613462744.png


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

IndieDev

Active Member
Licensed User
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
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
Top