Comments (12)
When I build my project with electron-packager, on Windows Server 2008 x64, I'm getting working application, but when I'm trying to run this app on another machine (Windows 7 x64), I get error:
What can I do wrong?
JAVA_HOME is setup correctly on both machines.
from node-java.
Looks like it didn't compile the native module. Can you run "npm install" from the root of your node-java directory. If "npm install" fails can you run "node-gyp -v configure build" also from the root of the node-java directory (you may need to install node-gyp "npm install node-gyp -g") to get better debugging output.
from node-java.
Looks like this fixed it on another issue that was similar: Can you check your path to see if it contains something like "C:\Program Files (x86)\Java\jdk1.6.0_18\jre\bin\client". I just updated the readme. It looks like the path to jvm.dll must be in your path.
from node-java.
I got the same error.
I checked my JAVA_HOME and the jvm.dll is there.
from node-java.
I'm having this same issue. My JAVA_HOME is setup correctly and the path to jvm.dll is in my PATH variable.
from node-java.
I was having the same problem, turns out the binding was created in the Debug
folder instead of Release
hence why node cannot find it. I tried rebuilding the module but same problem, seems related to nodejs/node-gyp#96 (node-gyp always build debug rather that release).
from node-java.
@limaologic @NisansaDdS @futurechan @jtblin can you try with the latest?
from node-java.
@limaologic @NisansaDdS @futurechan @jtblin I'm going to close this out for now. If this still affects you please reopen. Thanks!
from node-java.
getting error:
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
I am trying to install node-java (npm install java) with no success.
I have working well, gives correct Python detail, i am usiing 2.7
I have working well, gives correct java path, i am using jdk7 32bit on windows
to test, i tried installing node-gyp which installs without error (couple of warnings)
When I try to install java (npm install java) then it fails with the error spawn ENONET
As mentioned in comments above @joeferner I tried <node-gyp -v configure build> and it gave me the same error
I cant figure out what else I am missing in my configuration.
from node-java.
@erizoy Did you find a solution?
I am having the same issue when I try to distribute an electron application using node-java
from node-java.
Any update on this?
from node-java.
One hint that could be the reason of this problem.
After building the project with electron-packager, when I search under "node_modules\java" folder, I've found more then 500 references, with the absolute path to the folder where I have the program and to the folder where global libraries installed on my computer.
I've installed some global libraries to run this project, but on the java.node under "node_modules\java\bin\win32-x64-53", thereโs configured the same absolute path to load the file "nodejavabridge_bindings.pdb".
Can someone verify if this effect is also happening on your project? I've detected this issue after building the "binding.sln" under "node_modules\java\build".
Thanks.
UPDATE:
On the following file:
resources\app\node_modules\java\build\jvm_dll_path.json
Is hardcoded the path to where I have my "jre\bin\server".
On the target machine, if I switch this path to the correct one, I was able to lunch the program without the error message.
from node-java.
Related Issues (20)
- I am trying to install the package but facing the error can someone please point me in the right direction? HOT 5
- Loading non-context-aware native module in renderer error in Electron 14+ HOT 2
- Create Build directory if the directory does not exist
- Issue with M1 ARM Architecture
- classpath not work
- Fail to install node-java HOT 1
- java.lang.NoClassDefFoundError after compiled into executable HOT 1
- Java install failing with : /usr/bin/ld: cannot find -ljvm HOT 3
- missing symbol called HOT 2
- not finding java install
- How android runs this library
- Is there a way to find JAVA_HOME and set include libraries at runtime?
- Java 11 Support
- Load nodejavabridge bindings.node err Error In Suse 12
- Vulnerability in async dependency HOT 3
- npm install error with openjdk17, but works with openjdk15 HOT 1
- Could not create class (Electron) HOT 1
- node-java installation error: `No member named 'AccessorSignature' in namespace 'v8'` - Node 20.9.0 HOT 1
- Not able to install node java in node 20 HOT 3
- Could not find method with parameter "sun.nio.fs.UnixPath, [I"
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 node-java.