Skip to content

AstroImageJ/Why

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why, a Java launcher made in Rust

A launcher in Rust to launch Java applications for Windows.

Features:

  • Configurable JVM lookup
    • If not specified, will try the current working directory (depth of 5)
    • Has configurable fallback to JAVA_HOME and common Java installation paths
  • Java version validation
  • Configuration done through launcher.ini

Drawbacks:

  • Only works with main method type programs

Usage

To use Why for your application, you will need to simply rename JavaLauncher.exe to match your application's name and supply the launcher.ini file in your distribution.

You can also use RCEdit to change the FileDescription of the launcher, making the process name in Task Manager not have ".exe" on the end anymore.

Why?

  • Launch4j does not set process name, and seems to causes issues with Windows UI scaling
  • winrun4j can't read Launch4j's config at usertime
  • I just wanted something to work