Solved

running a .jar file

Posted on 2015-01-21
4
98 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
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.

739 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