를 해결하기 위해 노력하고 어떤 것을 관리해야? 이렇게하면 실행 파일에 "실행 수준"을 지정할 수있는 매니페스트 파일을 포함시킬 수 있습니다. 즉, 실행중인 응용 프로그램에 부여해야하는 권한을 제어하여 사용자가 직접 수동으로 권한을 요구하지 않고 OS에 "관리자로 실행"을 효과적으로 알립니다. 예를 들어
...
는
의 build.xml :
<target name="wrapMyApp" depends="myapp.jar">
<launch4j configFile="myappConfig.xml" />
</target>
myappConfig.xml :
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>bin\myapp.jar</jar>
<outfile>bin\myapp.exe</outfile>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<customProcName>true</customProcName>
<stayAlive>false</stayAlive>
<manifest>myapp.manifest</manifest>
<jre>
<path></path>
<minVersion>1.5.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>
myapp.manifest :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="highestAvailable"
uiAccess="False" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
는 http://msdn.microsoft.com/en-us/library/bb756929.aspx를 참조하고, 쏘다 모드 정보는 4j 웹 사이트를 참조하십시오.
'javaw.exe'에 그 플래그를 설정하고 싶지 않습니다! – finnw