Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent showing console window in winrun4j

I created a desktop gui app in java and use WinRun4J to create a native Windows launcher.

my ini file looks like this

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 keeps showing additional console window anyway (marked red on screenshot, my app's window in background). How to prevent it ?

enter image description here

like image 854
Łukasz Bownik Avatar asked Feb 18 '23 12:02

Łukasz Bownik


1 Answers

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

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

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

like image 91
a_horse_with_no_name Avatar answered Feb 21 '23 02:02

a_horse_with_no_name