-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenderer.js
More file actions
27 lines (20 loc) · 852 Bytes
/
renderer.js
File metadata and controls
27 lines (20 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
// remove zoom
const electron = require('electron')
const webFrame = electron.webFrame;
webFrame.setVisualZoomLevelLimits(1, 1);
webFrame.setLayoutZoomLevelLimits(0, 0);
const java = require('java');
java.classpath.push("./jars/verify.jar");
// var javaLangSystem = java.import('java.lang.System');
//
// var list1 = java.newInstanceSync("java.util.ArrayList");
// console.log(list1.sizeSync()); // 0
// list1.addSync('item1');
// console.log(list1.sizeSync());
var foobar = java.newInstanceSync("main.Verify");
console.log(foobar.helloWorldSync());
console.log(foobar.returnStrSync('HELLO NODE JAVA! (:'));
/* console.log(foobar.writeInFileSync('HELLO NODE JAVA! (:')); */