Code Monkey home page Code Monkey logo

Comments (5)

FarooqKhan avatar FarooqKhan commented on August 26, 2024

Just by looking at your Exception Stacktrace i think Java(TM) SE Embedded Runtime Environment does not have the "java.nio.file." package. I can fix this and create a version of JsonDB that does not uses classes from this package "java.nio.file." at all.

The other issue of "annotations" support not present in the Java(TM) SE Embedded Runtime Environment " is a bit of trouble, I will study this in a day or 2 when i get some time and try to see if i can find a decent workaround.

from jsondb-core.

PanzerHabba avatar PanzerHabba commented on August 26, 2024

Thank you for you fast reply @FarooqKhan.

It would be really nice if we could make use of your package. It`s more straightforward and "cleaner" than the old "mapdb" option.

from jsondb-core.

FarooqKhan avatar FarooqKhan commented on August 26, 2024

Hi PanzerHabba,

The initial warnings you see about "annotations, java.nio.file.Path" are a issue but it will not be a problem unless you try to Add a EventListener to the watch for direct changes to the db files using other filesystem utilities. This is a usecase that very few people would want to use.

However the issue of the class "ClassNotFoundException: java.beans.PropertyDescriptor" is a more troubles some. JsonDB uses Apache JxPath library very heavily for all the XPATH support. This JxPath library depends on the "java.beans" package. This is a problem that Android users face often becuase Dalvik does not have the "java.beans" package

I am surprised that Java SE Embedded does not have this package. If it is indeed true that Java SE Embedded does not have this package then you can try a workaround to your problem you will need to obtain the JxPath source code replace all usage of java.beans.* with "com.googlecode.openbeans" recompile and use this custom JxPath library

This is certainly a lot of work you probably wont want to do this.

I will keep looking for ways to solve this, and keep this open.

For now unfortunately i dont have a better solution.

Thanks
Farooq

from jsondb-core.

ivanmarban avatar ivanmarban commented on August 26, 2024

Hi FarooqKhan,

I didn't have any problem running a JsonDB simple code on this environment:

  • Java(TM) SE Embedded Runtime Environment (build 1.8.0_131-b11, headless)
  • Linux 4.9.39-2-ARCH #1 SMP Wed Jul 26 01:23:45 UTC 2017 armv7l GNU/Linux

I did a simple project saving data and making an XPath query.

Hope this info could help you.

Regards.

from jsondb-core.

FarooqKhan avatar FarooqKhan commented on August 26, 2024

Thanks @ivanmarban this will help others who might be also trying on embedded platform

from jsondb-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.