B4J Question [SOLVED]BJ4Packager11 JSON File Problem in Mac

Philip Chatzigeorgiadis

Active Member
Licensed User
Longtime User
When trying to run B4JPackager11 in Mac, i get this;
B4X:
Andreas2015:java andreas$ ~/documents/java/jdk11.0.1/bin/java -jar b4jpackager11.jar inputjar.json
B4JPackager11 Version 1.14
main._parseinput (java line: 995)
org.json.JSONException: Unterminated object at character 14 of {
InputJar: "/users/andreas/documents/java/boxgraphics/objects/boxgraphics.jar"
}
    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._parseinput(main.java:995)
    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)

I realise that the problem was addressed previously here:


However, I am not sure what the difference in quotes is or if different quotes are needed in the beginning and the end.
I even tried copy-pasting the quote from quote #3 of the above thread, with no success.
 
Last edited:

Philip Chatzigeorgiadis

Active Member
Licensed User
Longtime User
Solution found.
I rewrote the json file in Windows with Notepad++.
Correct JSON file is attached.
 

Attachments

  • inputjar.zip
    219 bytes · Views: 162
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…