Why Nostr? What is Njump?
2024-03-25 16:10:00

kuiperbelt on Nostr: #android #java #dev #asknostr Still workin' on my project. I've been running into a ...

#android #java #dev #asknostr

Still workin' on my project. I've been running into a series of issues trying to get 's nostr-java library to work with my app.

If anyone wants to help me, I'd really appreciate it. Currently, I'm trying to figure out how to set the "java.version" system property (https://howtodoinjava.com/java/basics/java-system-properties/#1-1-runtime-environment-properties), because it's required to be set for the jetty library to work properly: https://github.com/jetty/jetty.project/blob/ae6f98ed47ada09dd393102cea0bdf29bc7eb2ea/jetty-core/jetty-alpn/jetty-alpn-java-server/src/main/java/org/eclipse/jetty/alpn/java/server/JDK9ServerALPNProcessor.java#L37.

So far, nothing I've found online for setting this system property has resulted in any different behavior (the "java.version" property is always "0").

E.g., I tried this: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_system_properties

If I try to set this value in the runtime code, I get this error message in logcat:

`System : Ignoring attempt to set property "java.version" to value "9.0.0".`
I'm gonna finish up this proof-of-concept. It's going to rely on a slightly hacky design solution because I'm working with limitations in the API of OsmAnd. Later on, I can make a full version that uses their "SDK" instead. I think I can finish it this weekend.
Author Public Key
npub1r4meyszwh7hpe6yuahunn6329922ukye00cgf7tw6vf0jef4jqqsta3fuh