Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get rid of the console window and keep the GUI?

858586Feb 20 2012 — edited Feb 20 2012
i made a jar, but my app needs the API to sniff the network.

i made a .bat file so that i can run the jar file without having to type in the commands.
//contents of myApp.bat
start java -Djava.library.path="jnetpcap-1.3.0" -jar myApp.jar
the problem is, there's this fugly CMD prompt that just wont go away. if i close it, it closes my app as well. so, how do i solve this?

thanks.
This post has been answered by DrClap on Feb 20 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2012
Added on Feb 20 2012
2 comments
155 views