Java Question nanoHTTPD

Chebu

Member
Licensed User
Longtime User
Hi,

I'm trying to port the nanoHTTPD library to B4A using SLC. SLC generates the JAR file but the message "Error parsing libraries. fi.iki.elonen.nanoHTTPD.asyncrunner already exists" appears when refreshing libraries.

I already tried to hide classes, change the names, length of the package... but I didn't get success. Please can you help me?

The idea behind this is to create an embedded product with a RESTful API service for integration. I know the B4J could do the job but I would prefer to use a single application with the server stuff, UI... and to use available all-in-one devices based in Android.

Thank you in advance for your help.

Chebu.
 

Attachments

  • Refresh libraries error.png
    Refresh libraries error.png
    7.2 KB · Views: 213

Chebu

Member
Licensed User
Longtime User
Add this to fi.iki.elonen.NanoHTTPD.asyncrunner to -b4aignore :
Thank you jahswant however it didn't work. The same message appeared.

I tried two different paths for the Java file but the result was the same.

Do you have any other suggestion?

Thank you.
 

Attachments

  • Path.PNG
    Path.PNG
    6.5 KB · Views: 211
  • SLC.PNG
    SLC.PNG
    32.1 KB · Views: 209
  • Path 2.PNG
    Path 2.PNG
    5.6 KB · Views: 211

Chebu

Member
Licensed User
Longtime User
Add this to fi.iki.elonen.NanoHTTPD.asyncrunner to -b4aignore :
Hi jahswant,

I tried again but it didn't work. I tried with Java 8 and Java 11 from scratch, opening a new project, restarting B4A... but no success.

Did you get success with this? Thank you.
 

jahswant

Well-Known Member
Licensed User
Longtime User
Some times you need to add @Hide in the library sources.

add @Hide directive to all classes in that package.
 
Top