How to prevent console window from showing in winrun4j

I created a desktop GUI application in java and used WinRun4J to create my own Windows startup.

my ini file is as follows

working.directory=. classpath.1=oze.jar main.class=pl.emag.oze.Run vm.version.min=1.6 vm.location=.\jre6\bin\client\jvm.dll log.level=none java.not.found=Nie znaleziono platformy JAVA 

I turned off console logging (log.level = none), but it still shows an additional console window (marked in red in the screenshot, my application window is in the background). How to prevent this?

enter image description here

+4
source share
1 answer

You probably used (copied) the console version of WinrRun4J. There are two .exe files (actually four, due to 32/64 bit).

WinRun4Jc.exe (or WinRun4J64c.exe) is designed for console applications.

WinRun4J.exe (or WinRun4J64.exe) is designed for Swing / GUI applications (note the missing c at the end of the name)

+7
source

Source: https://habr.com/ru/post/1445943/


All Articles