Java Question Simple Library Compiler Usage/Error ?

Serdar K.

Member
Licensed User
Longtime User
Hello,

I am trying to change the Parse 1.4 library for support different URL's, but i couldn't have success at first to compile the library as it is.

I wanted to test to compile the source code of 1.4, which Erel shared, with SLC.
The link is :
https://www.b4x.com/android/forum/attachments/parse_1-4_src-zip.41678/

But i have got an error and notes :

B4X:
Starting step: Compiling Java code.
javac 1.8.0_66
D:\SLC\Parse\src\anywheresoftware\b4a\objects\ParseObjectWrapper.java:602: error: <anonymous anywheresoftware.b4a.objects.ParseObjectWrapper$ParseQueryWrapper$2> is not abstract and does not override abstract method done(List,ParseException) in FindCallback
       {
       ^
Note: D:\SLC\Parse\src\anywheresoftware\b4a\objects\ParseObjectWrapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\SLC\Parse\src\anywheresoftware\b4a\objects\ParseObjectWrapper.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


Error.

Do you have any ideas i could try?
 

Serdar K.

Member
Licensed User
Longtime User
You need to put ParseNative.jar in the libs folder.

There is the file included, but still i am getting these message :
"error: <anonymous anywheresoftware.b4a.objects.ParseObjectWrapper$ParseQueryWrapper$2> isnot abstract and does not override abstract method done(List,ParseException) in FindCallback".

I suspect that it does access the library and generates the above message regarding it.

Also, sometimes i get the timeout message in the attachment, but i have set timeout values to 500 for B4A and B4J.
That is another interesting thing.

Edit: I attached my whole structure, but the forum upload size prevented me from uploading the ParseNative.jar in "libs" folder.

The link to ParseNative.jar is :
https://drive.google.com/file/d/0B_JRAAgfYqgqellXa1NGZHhhZ2s/view?usp=sharing
 

Attachments

  • screenshot.21.jpg
    screenshot.21.jpg
    40 KB · Views: 309
  • screenshot.22.jpg
    screenshot.22.jpg
    64.7 KB · Views: 279
  • Parse.zip
    9.6 KB · Views: 300
Last edited:

Serdar K.

Member
Licensed User
Longtime User
Hi DonManfred, i uploaded and shared a Drive link in the previous message, i hope it works.
Can you upload ParseNative.jar ?

Edit: DonManfred, sorry i couldn't look well over the from section of last message because i was reading in the phone and outside.
 

Serdar K.

Member
Licensed User
Longtime User
Change line 601 to: getObject().findInBackground(new FindCallback<ParseObject>()
Thanks Erel, now i can compile the library.

After a quick look, I saw that the work is not as simple as adding a "server" parameter. A newer
Parse SDK version must be wrapped, since the server here is enclosed in Parse class.
Still may be we could access it through Reflection, etc.

Of course if i can be successful for a Parse library revision with dynamic server support (or perhaps a workaround with this one), i will share it here.
Thanks Erel and everyone for the response again.
 
Top