FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-java/examples/mixJavaAndNode/runMyClass.js at master · joeferner/node-java · GitHub
joeferner
/
node-java
Public
Notifications
You must be signed in to change notification settings
Fork
288
Star
1.9k
Code
Issues
208
Pull requests
7
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-java
/
examples
/
mixJavaAndNode
/
runMyClass.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
9 lines (6 loc) · 217 Bytes
Breadcrumbs
node-java
/
examples
/
mixJavaAndNode
/
runMyClass.js
Copy path
File metadata and controls
executable file
·
9 lines (6 loc) · 217 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
#!/usr/bin/env node
const
java
=
require
(
"../../"
)
;
java
.
classpath
.
push
(
"./src"
)
;
const
MyClass
=
java
.
import
(
"com.nearinfinity.nodeJava.MyClass"
)
;
const
result
=
MyClass
.
addNumbersSync
(
1
,
2
)
;
console
.
log
(
result
)
;
Back
|
FazBrowse Home
|
New Git URL