Skip to content

Commit

Permalink
set the pacakged electron jvm option
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobrun committed Apr 20, 2024
1 parent b3f4324 commit 794e4b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ts-src/java/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export interface JT400Factory {

export const initJT400Factory = (): JT400Factory => {
ensureJvm({
// This option should not have any effect when not using electron or not having the application packaged.
// https://github.com/MarkusJx/node-java-bridge?tab=readme-ov-file#notes-on-electron
isPackagedElectron: true,

opts: [
'-Xrs',
'-Dcom.ibm.as400.access.AS400.guiAvailable=false', // Removes gui prompts
Expand Down

0 comments on commit 794e4b7

Please sign in to comment.