B4J Question [SOLVED] [ABMaterial] After Java update, I now get this!

Cableguy

Expert
Licensed User
Longtime User
Hi guys,

I wonder if any of you guys are getting this too: (installed JAVA is 8 update 251)
Code: Copy
B4J Version: 8.10
Java Version: 11
Parsing code. (0.02s)
Building folders structure. (0.01s)
Compiling code. (0.04s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
src\com\ab\template\abmapplication.java:38: error: cannot find symbol
public com.ab.abmaterial.ABMaterial _abm = null;
^
symbol: class ABMaterial
location: package com.ab.abmaterial
Note: src\com\ab\template\abmuploadhandler.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
javac 11.0.1
 
Upvote 0
Hopefully a non-Oracle one, you know, due to licensing issues :p. I use Amazon's Corretto, even though it's from the new Borg (note: very personal opinion).
it came pre-installed, no personal info required….
 
Upvote 0
These are my paths:

1587484505882.png
 
Upvote 0
BTW, I'm using ABMaterial 4.51. Seems to work fine with both the OpenJDK 11.0.1 provided by @Erel and Corretto's 212 update of JDK 1.8.0
 
Upvote 0
Just compiled the feedback app (from 4.51), since I'm pretty sure it uses the upload handler. No issues. I guess I'm no help here.
BTW, looks like your using the template provided by ABM. I just compiled it (the one provided by 4.51) and still no error message (or warning(s)). If you just want to zip up your modifications you made (if any), I'll gladly test it on my end.
 
Upvote 0
I have tested with the demo, unchanged, same error… I'm using the template (starting a new) and only changed the appname value
 
Upvote 0
Then something strange with your java install?
 
Upvote 0
but how can I troubleshoot that??!!
I just re-downloaded JDK and will see what that gives
 
Upvote 0
I update mine in a little bit and see what happens. Looks like my 1.8 is a tad behind
 
Upvote 0
I have tried all demos, and even removed the uploadhandler module, and the error just shifted from it to ABMaterial lib
 
Upvote 0
Here's the "new" error:

1587488359697.png
 
Upvote 0
Used Amazon Corretto JDK 1.8.0_252 (64 bit - on Windows 10 Pro 64 bit) and compiled the ABMaterial template without issues. That error above would seem to suggest that the ABMaterial.jar file (or one of the other supporting files) cannot be found or may be damaged? Try re-downloading ABMaterial 4.51 and extrating the library files and placing them in the right location (overwriting any existing ones).
 
Upvote 0
The problem is, feedback is down and I cannot re-download it. I still have the ZIP file, and already un-zipped it, but same behaviour. Can you point me to this Amazon Correto and install?
 
Upvote 0

You have to scroll in the list (only Linux version show up on top). Just saying it since I was confused at first (thought download page only had Linux version). Could be that I'm just getting old...
 
Upvote 0
Found it, will see how it goes
 
Upvote 0
Same thing with Corretto:

B4X: Copy
B4J Version: 8.10
Java Version: 8
Parsing code.    (0.40s)
Building folders structure.    (0.06s)
Compiling code.    (0.70s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
Compiling generated Java code.    Error
javac 1.8.0_252
src\abmaterial\ab\com\abmapplication.java:38: error: cannot find symbol
public com.ab.abmaterial.ABMaterial _abm = null;
                        ^
  symbol:   class ABMaterial
  location: package com.ab.abmaterial
Note: src\abmaterial\ab\com\abmuploadhandler.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
 
Upvote 0
Is this a new computer? A new setup? Try to put the extra libraries directory somewhere in a path without a - in the name.
 
Upvote 0
Or spaces! have no spaces in your path name (I think that one may be more important!)
 
Upvote 0
Back
Top