gmollineau
asked on
running a .jar file
Hi,
I have a windows 7 computer, I want when the user logs into windows, and the computer boots properly, my .jar program opens and run automatically without the user navigating to the program.
I have a windows 7 computer, I want when the user logs into windows, and the computer boots properly, my .jar program opens and run automatically without the user navigating to the program.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@lruiz52: Oops ... that's what I meant with "and java ist installed properly ...".
JAR_Runner locates the current Java installation, calls the appropriate application (JavaW.exe), & directs it to run the JAR file. It's not anything that couldn't be done manually, but it is nice to not have an app do it for you. It integrates right into the Windows system & also has a CMD/DOS command line option.
From the project's site:
http://projects.killerapplets.com/JAR_Runner/
Options:
1) Click-and-drag JAR file onto the JAR_Runner EXEcutable or shortcut
2) Right-click JAR file, select "Open with", navigate to JAR_Runner EXEcutable
(Of course, one can make this the default for JAR files from now on)
3) Command line syntax: JAR_RUNNER [drive:][path]filename
So, you could either run it through a command line call, or you could create a shortcut pointing the JAR_Runner.exe to your JAR file; and you could place that in your StartUp folder.
From the project's site:
http://projects.killerapplets.com/JAR_Runner/
Options:
1) Click-and-drag JAR file onto the JAR_Runner EXEcutable or shortcut
2) Right-click JAR file, select "Open with", navigate to JAR_Runner EXEcutable
(Of course, one can make this the default for JAR files from now on)
3) Command line syntax: JAR_RUNNER [drive:][path]filename
So, you could either run it through a command line call, or you could create a shortcut pointing the JAR_Runner.exe to your JAR file; and you could place that in your StartUp folder.
http://www.oracle.com/technetwork/java/javase/overview/index.html