-
Notifications
You must be signed in to change notification settings - Fork 190
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
Is there not a single example of java + nodejs interop? #842
Comments
Oh i see i was going trough different route trying to fool intellij into treating it as a jvm... |
for me the best way to hop thread between node.js and java thread. I create node.js binding which create but somehow when I reference But I hope this will be solved in GraalJS |
@pbk20191 thanks for the replies, you'd do me a huge favour if you could share some sample code doing java <-> node interop Either way i know you dont have to do it, you dont seem to be even from oracle, its just odd that they have no sample code for this at all... |
unpack the file and clone the git-bundle like below unzip repo.zip
git clone repo.bundle I only tested it using Intellij. You have to check several settings carefully. there is two main entry Point
|
thanks, main 2 is what i wanted |
@balayanv |
I understand that one can simply run unmodified node projects with this, that's nice but most people would look at graal so they can use node modules out there from java.
I remember doing all sorts of crazy hacks, setting up shared task queues because node has its event loop and you cant just call into it without being on that thread...
Is there not even a single example of java interacting with a simple node code? call node code from java and vice versa...
I remember also having to launch my code with custom shell scripts because the executable is node and intellij cant understand that its actually a fully powered jvm that runs node... so i had to transform, manually grab classpaths feed them into node command properly so i can just launch the app with graalnodejs (loosing any capability to debug stuff at the same time)...
This was a while ago, so maybe there is a better way to do things or i was doing some unnecessary magic to begin with? either way it was bad dev experience...
The text was updated successfully, but these errors were encountered: