Solved

running a .jar file

Posted on 2015-01-21
4
88 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 14

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 14

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
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…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

911 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

20 Experts available now in Live!

Get 1:1 Help Now