Comments (5)
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.
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.
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.
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.
Thanks @ivanmarban this will help others who might be also trying on embedded platform
from jsondb-core.
Related Issues (20)
- Generated resources during test execution not deleted afterwards
- No way to "flush" database HOT 2
- Provide security contact info HOT 2
- Modified json file make collectionExist return false HOT 2
- Android does not find any classes HOT 2
- Recursive data structures. Cycles not supported
- JDK 15 compliance
- jsonDBTemplate.findAll(Instance.class, comparator) HOT 4
- xpath lower-case() find. HOT 1
- ndjson parse example
- File Writes Are Not Thread Safe HOT 2
- invalid json format HOT 1
- No class found with @Document Annotation and attribute collectionName as: User, Android HOT 2
- Method for fast retrieval of collection size
- TURN OFF ERROR HANDLING IN MAVEN RELEASES, PLEASE
- Bug: Multiple SchemaUpdates (Rename) not possible
- One file for each item in a collection HOT 3
- Symlinks broken HOT 2
- getCollection always return the last item HOT 1
- Failed to acquire lock for collection file ClosedChannelException
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsondb-core.