Created
July 2, 2020 07:22
-
-
Save evacchi/15605c5d09a593a650849f29c2789216 to your computer and use it in GitHub Desktop.
Fancy Java Main
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mycompany.app; | |
public class Main extends Application {{ | |
System.out.println("Hello"); | |
}} | |
abstract class Application { | |
public static void main(String... args) throws Exception { | |
Class.forName(System.getProperty("sun.java.command")) | |
.getConstructor().newInstance(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment