Hi everyone, I've been trying to turn one of my programs into an executable application, but every time I click the jar file or open it using the command prompt nothing happens. I was wondering if I shouldn't be using "System.out.println" and Scanners to take input/display output. I am using NetBeans and as far as I can tell it is all in working order.
doomsday1216 0 Newbie Poster
Recommended Answers
Jump to PostIf your program only uses the console for input and output then this is a problem. The standard setup for running a jar is to use javaw.exe, which does not display a command window or console. Try running your jar from a command prompt with java.exe instead of javaw.exe That …
Jump to PostIf you're not familiar with Swing then a full frame/textfield/event handler will be quite a learning curve. It's one you will need to do sooner or later, so it's up to you.
The JOptionPane solution is the easiest solution. In its very simplest form all you need is
All 6 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
doomsday1216 0 Newbie Poster
doomsday1216 0 Newbie Poster
ObSys 56 Junior Poster
NormR1 563 Posting Sage Team Colleague
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.