Solved

running a .jar file

Posted on 2015-01-21
4
85 Views
Last Modified: 2016-02-17
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.
0
Comment
Question by:gmollineau
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
frankhelk earned 500 total points
ID: 40562193
Presuming your firewall etc. alows opening java programs w/o nagging, and java ist installed properly ...

It should be enough to just create a shortcut to the program into the autostart folder.

Open explorer, right-drag the program on START and holt until it opens, drag to all programs until it opens, drag to Autostart (or startup ?) and drop. When Windows asks what to do, click on "Create shortcut".
0
 
LVL 17

Expert Comment

by:lruiz52
ID: 40562198
You need to install the Java Standard Edition on your systems to run Jar Files.

http://www.oracle.com/technetwork/java/javase/overview/index.html
0
 
LVL 13

Expert Comment

by:frankhelk
ID: 40562206
@lruiz52: Oops ... that's what I meant with "and java ist installed properly ...".
0
 
LVL 6

Expert Comment

by:BoyBlueSky
ID: 41468625
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.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now