English 中文(简体)
汽艇从贝轮驱动器中运行一个焦仓。
原标题:Auto run a jar file from usb drive

我在USB的驱动力中拥有可操作的杰尔。 我需要自动发射该杰尔,当时U型发动机被拖到该系统。 I useWindows 7. I used 自动化。 tostart the jar file. 但它没有工作。 任何建议请见。

自动化。

[Autorun]
Open=myjar.jar
Action=Start portable apps
问题回答

SEE UPDATE BELOW

The easiest way to do it would be to write a batch file (or a command file) to autorun. that contains something like:

页: 1

 java -jar myjar.jar

以及您的汽车。

[Autorun]
open=页: 1
action=start portable apps

UPDATE

AAAH 问题在于,Windows 7已经取消了对汽车的支持。 见Autorun.inf 视窗7





相关问题
Refactor packages in a Jar

I have a requirement that i need to load two versions of a jar at once. To avoid class path collisions I d like to rename the packages of one of the jars. Then in source you could always easily ...

Directory list of JAR file within classpath

The typically method to reference a file contained with a JAR file is to use ClassLoader.getResource. Is there a way to get the contents of a directory within a JAR files (similar to java.io.File....

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into ...

Jar file resource not available?

My program has the following lines, works fine when run from Netbeans, JButton Button_1=new JButton(new ImageIcon(Phone_Dialer.class.getResource("Dir_Icons/"+"Key_1"+Botton_Color+".gif"))); But ...

Include jar file in Scala interpreter

Is it possible to include a jar file run running the Scala interpreter? My code is working when I compile from scalac: scalac script.scala -classpath *.jar But I would like to be able to include a ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签