New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DoppioJVM from NPM doesn't work in browser #390
Comments
Change I'd like to apologize for how difficult it is to get DoppioJVM up and running. The next release will be much easier to use, and will have proper documentation. Thanks, btw, for your wiki edits. However, I actually didn't know the wiki was publicly editable, so I changed the permissions so other people cannot edit it. Some of your information was slightly incorrect -- in the callback passed to the constructor, you should not call arbitrary Java methods. Instead, you should call a class with a Main function, as you would with a regular JVM. That Main function can then invoke a native method, which can then begin invoking arbitrary JVM methods. If you run The next version of DoppioJVM will have a much clearer API, and will have more sanity checks. |
Perhaps you can edit the wiki to reflect this. It tripped me a couple of times. Thanks! |
Sure; done. |
I tried to install Doppio via NPM and it doesn't work...
I'll try to describe what I did.
I created a new project and typed next commands:
Then I added in the root a simple html file:
When I try to run it in a browser (via http-server) there is an error in console:
Failed to initialize Ljava/lang/reflect/Constructor;
.I tried to diagnose this but it's too complicated for quick fix. I'm not sure that I created correct HTML-file for this test case. I've found that loading of superclass of Constructor is failed (Executor).
The text was updated successfully, but these errors were encountered: