FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-java/examples/mixJavaAndNode/runMyClass.js at master · cdolek/node-java · GitHub
cdolek
/
node-java
Public
forked from
joeferner/node-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
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
·
11 lines (6 loc) · 213 Bytes
Breadcrumbs
node-java
/
examples
/
mixJavaAndNode
/
runMyClass.js
Copy path
File metadata and controls
executable file
·
11 lines (6 loc) · 213 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
var
java
=
require
(
"../../"
)
;
java
.
classpath
.
push
(
"./src"
)
;
var
MyClass
=
java
.
import
(
"com.nearinfinity.nodeJava.MyClass"
)
;
var
result
=
MyClass
.
addNumbersSync
(
1
,
2
)
;
console
.
log
(
result
)
;
Back
|
FazBrowse Home
|
New Git URL