Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

java-caller

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-caller - npm Package Compare versions

Comparing version 1.0.0-beta.0 to 1.0.0

2

CHANGELOG.md
# Changelog
## [1.0.0] UNRELEASED
## [1.0.0] 2020-08-10
Initial version
{
"name": "java-caller",
"version": "1.0.0-beta.0",
"version": "1.0.0",
"description": "Library to easily call java from node sources. Automatically installs java if not present",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

<!-- markdownlint-disable MD033 -->
# Java Caller for Node.js
- **WARNING: Initial development in progress**
[![Version](https://img.shields.io/npm/v/java-caller.svg)](https://npmjs.org/package/node-java-caller)

@@ -42,3 +40,3 @@ [![Downloads/week](https://img.shields.io/npm/dw/java-caller.svg)](https://npmjs.org/package/node-java-caller)

| mainClass | If classPath set, main class to call | | `"com.example.MyClass"` |
| rootPath | If classPath elements are not relative to the current folder, you can define a root path | `.` (current folder) | `"/home/my/folder/containing/jars"` |
| rootPath | If classPath elements are not relative to the current folder, you can define a root path. <br/> You may use `__dirname` if you classes / jars are in your module folder | `.` (current folder) | `"/home/my/folder/containing/jars"` |
| javaExecutable | You can force to use a defined java executable, instead of letting java-caller find/install one | | `"/home/some-java-version/bin/java.exe"` |

@@ -107,2 +105,13 @@ | minimumJavaVersion | Minimum java version to be used to call java command.<br/> If the java version found on machine is lower, java-caller will try to install and use the appropriate one | `1.8` | `11` |

## TROUBLESHOOTING
Set environment variable `DEBUG=java-caller` before calling your code using java-caller module, and you will see the java commands executed.
Example debug log:
```shell
java-caller Found Java version 1.80131 +1s
java-caller Java command: java -Xms256m -Xmx2048m -cp C:\Work\gitPerso\node-java-caller\test\java\dist com.nvuillam.javacaller.JavaCallerTester -customarg nico +1ms
```
## CONTRIBUTE

@@ -112,2 +121,2 @@

Please follow [Contribution instructions](https://github.com/nvuillam/node-java-caller/blob/master/CONTRIBUTING.md)
Please follow [Contribution instructions](https://github.com/nvuillam/node-java-caller/blob/master/CONTRIBUTING.md)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc