top of page

Hey there! Thanks for visiting my website. I just wanted to inform you that your browser might warn you about possibly malicious content if you try to download my software. This is just because you're downloading executable files. I promise there is no harmful code in any of the published applications. Also, this site does use cookies. If you continue to use this site, you accept the use of them.

 

Since it's understandable that you might not want to run any executable without knowing what it does, I developed TESM.TESM stands for ThrownException's Security Manager. Using a Security Manager is an already known mechanic in Java, but there is only one default one and it's static. TESM is a dynamic Security manager, with a whitelist, a blacklist, a default option and user interaction. Any code ever written eventually uses certain core methods that come with the installation of Java. These methods all consult the set Security Manager to get permission for doing certain things. Web applications won't get permission from the default Security Manager to access files for example. TESM will grant or deny permission based on a configuration file that can be found in the same folder as the executed .jar file. To set TESM as your security manager, drop the two files provided below in any .jar and run the .jar using a command line interface with:"java -Djava.security.manager=TESM -jar [name of file].jar"You can find the necessary files here.

All my code is licensed under the Creative Commons BY-NC-ND license.

For more information, click the icon at the bottom of the page.

Console

  • Writer: ThrownException
    ThrownException
  • Aug 11, 2018
  • 1 min read

Updated: Jul 2, 2020

Whether you are new to Java or didn't get into GUI (yet), there are a lot of occasions where you want to make a console application. If you would like to share your application with others, you would have to share the .jar and make them execute it on the command line. You could also add a little script for them to execute. However, the first solution isn't user friendly and the second solution isn't platform independent.


That's why I developed this simple Console library that creates a console window for you and let's you use System.out, err and in just as before. Besides that, you can also change the appearance of the console.


Instructions for Eclipse:

Right-Click the project > "Build Path" > "Add External Archives..." > select the .jar




You can drag the bars to the left and to the right. Only the output and input are visible at first.

Recent Posts

See All
Polygon

This class extends the Polygon class from JavaFX. It adds the ability to read *.pgp files and adjust width/height. Download here! You can...

 
 
 

Comments


bottom of page