954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

autorun file where the jar file automatically run

Hi Guys! I nee d your help! I created a java program and build it and already have my jar file. What I want to know is how can I have an autorun file where the jar file automatically run. I already used this line of codes.

[autorun]
open=myjava.jar
action=Run myjava Program
icon=myjava.jar
label=theis


I am running in on my USB. My OS is windows 7.
Any help?

marsangel
Newbie Poster
23 posts since Jun 2011
Reputation Points: 10
Solved Threads: 0
 

well ...
you could
a. try Google
b. create a new thread if you actually have a new question

stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
 

Well... You seem to have everything.
What happens when you plug in your USB drive?
Does it run?
If not... Why?
Think about what your statements are doing.

hfx642
Posting Pro
515 posts since Nov 2009
Reputation Points: 248
Solved Threads: 105
 

first be sure that you have converted the file extension to "inf"

to make it inf
1) right click he text file and open with notepad
2) file>save as>autorun.inf
and then put it with java file and try it

or

you need to convert your pen drive format from ntfs to fat32 or burn the jar file with autorun.inf file to a cd.and then try it

kuttakamina
Newbie Poster
1 post since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

please see here: http://www.samlogic.net/articles/autorun-enable-disable-nodrivetypeautorun.htm . however this only applies if you are using windows 7. This is also some cool stuff on autorun infs: http://msdn.microsoft.com/en-us/library/windows/desktop/cc144200(v=vs.85).aspx

DavidKroukamp
Practically a Master Poster
Team Colleague
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You