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

java-code-runner

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java-code-runner - npm Package Compare versions

Comparing version 0.3.38 to 0.3.39

2

package.json
{
"name": "java-code-runner",
"version": "0.3.38",
"version": "0.3.39",
"author": "Amr Draz",

@@ -5,0 +5,0 @@ "repository": {

@@ -1,2 +0,2 @@

This is a module for runinng Java from String inside a node server
This is a module for runinng Java from String inside a node server built for another project called kodr

@@ -14,14 +14,8 @@ to run tests

Compile JavaRunner
Compile using 'ant'
javac JavaRunner.java
Run server in bin
Compile Server
java -cp .:../lib/servlet-api-2.5.jar:../lib/jetty-all-7.0.2.v20100331.jar RunnerServlet
javac -cp .:servlet-api-2.5.jar:jetty-all-7.0.2.v20100331.jar RunnerServlet.java
Run server
java -cp .:servlet-api-2.5.jar:jetty-all-7.0.2.v20100331.jar RunnerServlet
The default port is `3678`

@@ -64,6 +58,9 @@

###node wraper
The module's index.js file exposes 3 methods
The module's index.js file exposes 6 methods
- `run`
- `test`
- `runClass`
- `stopServer`
- `runServer`
- `recompile` which prgramatically compiles only once per process

@@ -74,2 +71,2 @@ see tests for how they work.

Look inot runing the java server as a docker container for security
Look into runing the java server as a docker container for security
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