Skip to content

A project designed to encapsulate the execution of Java applications within .NET processes and Windows services, enabling seamless integration and management of Java applications in .NET environments.

License

Notifications You must be signed in to change notification settings

engineering87/SharpJDKWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpJDKWrapper

License: MIT issues - SharpJDKWrapper stars - SharpJDKWrapper

A simple project that enables the execution of Java applications within a .NET environment, ideal for scenarios requiring quick hosting and testing of Java services without the need for dedicated application servers.

How it works

SharpJDKWrapper, built on .NET Framework 4.8, enables the execution of Java JAR files within .NET processes in a Windows environment. It can be installed as a Windows service, allowing JARs to be hosted for testing purposes without the need for configuring application servers like Tomcat.

How to use it

To use SharpJDKWrapper, you need to configure the following keys within the application config:

<appSettings>
	<add key="JDK_DIRECTORY" value="C:\JDK\bin"/>
	<add key="JAR_DIRECTORY" value="C:\JARs"/>
	<add key="API_ADDRESS" value="http://localhost:12345/"/>
</appSettings>

In the JDK_DIRECTORY key, specify the path to the directory where the JDK is installed. In JAR_DIRECTORY, provide the path to the directory containing the JAR files. Finally, API_ADDRESS defines the endpoint at which the APIs will be exposed.

API

SharpJDKWrapper provides REST APIs to perform specific commands, including:

  • Retrieving the number of active Java services.
  • Checking the status of a particular Java service.
  • Stopping a specific Java service.

Future improvements

SharpJDKWrapper can be easily migrated to.NET Core.

How to Contribute

Thank you for considering to help out with the source code! If you'd like to contribute, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base.

Licensee

SharpJDKWrapper source code is available under MIT License, see license in the source.

Contact

Please contact at francesco.delre.87[at]gmail.com for any details.

About

A project designed to encapsulate the execution of Java applications within .NET processes and Windows services, enabling seamless integration and management of Java applications in .NET environments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages