0

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?

5
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by DavidKroukamp
0

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.

Edited by hfx642: n/a

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.