本文主要是介绍java.io.IOException: CreateProcess error=740, The requested operation requires elevatio,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在安装informatic client的时候报如下错误:
java.io.IOException: Cannot run program "E:\infoclient\Client\install.exe": CreateProcess error=740, The requested operation requi
res elevation
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at com.informatica.installer.ui.UmbrellaScreen.UmbrellaScreen.jButton3ActionPerformed(UmbrellaScreen.java:427)
at com.informatica.installer.ui.UmbrellaScreen.UmbrellaScreen.access$3(UmbrellaScreen.java:407)
at com.informatica.installer.ui.UmbrellaScreen.UmbrellaScreen$4.actionPerformed(UmbrellaScreen.java:179)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6216)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5981)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4583)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4413)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.io.IOException: CreateProcess error=740, The requested operation requires elevation
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 31 more
经过查找发现是由于用户权限的问题。我的机器是WIN7 64位操作系统,帐户是域帐户。
解决方案:点击开始菜单-输入cmd-右击-以管理员身份运行。
在cmd窗口中切换到相应的目录,运行即可。
这篇关于java.io.IOException: CreateProcess error=740, The requested operation requires elevatio的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!