pop the something somewhere convenient, and just run it.
if the jar file isn't in the current directory it doesn't run right
how do you feed it arguments?
want an executable that I can run from anywhere?
JOptionPane? Never heard of it.
What about an .exe file that is not in the current directory? How do you get it to run without telling the OS where it is located?
I'd think having the jar file on a flash drive would allow you to plug in the drive, click on the jar file, type in the arguments would be the easiest solution. No command prompt window, no command line.
As opposed to
1) It's Monday
2) Foo logfile
3) Scan logfile.out for issues.
Jim Venolia wrote:3 years ago I wanted to learn OO, Java seemed the way to go. But if Java won't produce a .exe then, well, I'm not gonna call it wasted, just misdirected.
Jim Venolia wrote:That's the conclusion I'm coming to
3 years ago I wanted to learn OO, Java seemed the way to go. But if Java won't produce a .exe then, well, I'm not gonna call it wasted, just misdirected.
I get different results calling it from a directory other than the current one.
Stephan van Hulst wrote:Aye, in that case the application works with files relative to the working directory. If that's not what you want you need to fix it to resolve paths against the executing jar's location:
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your databasehttps://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database