This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131598 - java.io.IOException: Cannot run program "C:\Users\tester\.netbeans\dev\config\platform_installers\Sun-Java-Wireless-Toolkit252-for-CLDC-for-Windows_200710311754.exe": CreateProcess error=740, The requ
Summary: java.io.IOException: Cannot run program "C:\Users\tester\.netbeans\dev\config...
Status: RESOLVED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL: http://statistics.netbeans.org/except...
Keywords:
: 156811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-31 10:37 UTC by Jaromir Uhrik
Modified: 2012-12-05 17:23 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 5474


Attachments
stacktrace (1.25 KB, text/plain)
2008-03-31 10:37 UTC, Jaromir Uhrik
Details
stacktrace (22.00 KB, text/plain)
2008-04-20 03:26 UTC, vhr273
Details
stacktrace (17.67 KB, text/plain)
2008-04-20 03:30 UTC, vhr273
Details
stacktrace (10.80 KB, text/plain)
2008-04-29 18:51 UTC, gmegna
Details
stacktrace (15.56 KB, text/plain)
2008-04-30 02:54 UTC, jinriver
Details
stacktrace (21.10 KB, text/plain)
2008-04-30 11:46 UTC, fpgulias
Details
stacktrace (17.74 KB, text/plain)
2008-04-30 16:11 UTC, callesto
Details
stacktrace (4.28 KB, text/plain)
2008-05-27 10:30 UTC, pribyl
Details
stacktrace (4.29 KB, text/plain)
2008-05-28 09:45 UTC, Jaromir Uhrik
Details
stacktrace (962 bytes, text/plain)
2008-10-21 07:28 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2008-03-31 10:37:09 UTC
Build: NetBeans IDE Dev (Build 200803302302)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05, Java(TM) SE Runtime Environment, 1.6.0_02-b05
OS: Windows Vista, 6.0, x86

User Comments: 
Exception appears when the user doesn't have write permission. I am running on Windows Vista as a user without admin priviledges while the IDE has been installed by admin.
Comment 1 Jaromir Uhrik 2008-03-31 10:37:13 UTC
Created attachment 59390 [details]
stacktrace
Comment 2 Jaromir Uhrik 2008-03-31 10:43:08 UTC
I forgot to say that the exception appeared during an attempt to install "Sun Java Wireless Toolkit 2.5.2 for CLDC for 
Windows" from update center.
Comment 3 Karol Harezlak 2008-03-31 10:43:17 UTC
I'm not sure if this problem lays on our side.
Comment 4 Jaromir Uhrik 2008-04-01 11:12:08 UTC
I see, it seems to belong to core|execution. It should be handled somehow to tell the user message about missing
permission instead of exception.
Comment 5 t_h 2008-04-01 12:25:42 UTC
core.execution just executes specified Runnable. This should be handled in mobility which calls Runtime.exec().
Comment 6 Exceptions Reporter 2008-04-12 00:57:34 UTC
This issue has already 20 duplicates 
Comment 7 Lukas Hasik 2008-04-14 09:27:35 UTC
reproduced on Vista with NB 6.1 RC1

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)
Caused: java.io.IOException: Cannot run program
"C:\Users\Lukas\.netbeans\6.1rc1\config\platform_installers\Sun-Java-Wireless-Toolkit252-for-CLDC-for-Windows_200710311754.exe":
CreateProcess error=740, The requested operation requires elevation
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
	at java.lang.Runtime.exec(Runtime.java:593)
	at java.lang.Runtime.exec(Runtime.java:466)
	at
org.netbeans.modules.mobility.cldcplatform.catalog.PlatformCatalogAutoInstaller$1.run(PlatformCatalogAutoInstaller.java:134)
[catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Comment 8 Petr Suchomel 2008-04-14 10:40:11 UTC
Not sure how to handle Vista. Need to look at this deeper
Comment 9 Exceptions Reporter 2008-04-17 21:16:47 UTC
This issue has already 50 duplicates 
Comment 10 vhr273 2008-04-20 03:26:38 UTC
Build: NetBeans IDE 6.1 RC2 (Build 200804170002)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 
Comment 11 vhr273 2008-04-20 03:26:42 UTC
Created attachment 60455 [details]
stacktrace
Comment 12 vhr273 2008-04-20 03:30:50 UTC
Build: NetBeans IDE 6.1 RC2 (Build 200804170002)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

User Comments: 
Comment 13 vhr273 2008-04-20 03:30:53 UTC
Created attachment 60456 [details]
stacktrace
Comment 14 Exceptions Reporter 2008-04-24 21:06:28 UTC
This issue has already 100 duplicates 
Comment 15 Lukas Hasik 2008-04-25 08:15:16 UTC
Tomasi, could you help with an advice how to solve it on Vista. Is it possible to ask for the administrator rights when
executing an exe file. The mobility just runs the WTK installer we don't maintain it
Comment 16 t_h 2008-04-25 09:36:58 UTC
I would suggest to run it via "cmd.exe" - then elevation dialog appears:
String[] cmd = new String[]{"cmd.exe", "/c", "...toolkit.exe"};
Runtime.getRuntime().exec(cmd);
Comment 17 Exceptions Reporter 2008-04-29 12:37:19 UTC
This issue has already 100 duplicates 
Comment 18 gmegna 2008-04-29 18:51:09 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06, Java(TM) SE Runtime Environment, 1.6.0_02-b06
OS: Windows XP, 5.1, x86

User Comments: 
Comment 19 gmegna 2008-04-29 18:51:13 UTC
Created attachment 60819 [details]
stacktrace
Comment 20 jinriver 2008-04-30 02:54:20 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows XP, 5.1, x86

User Comments: 
Comment 21 jinriver 2008-04-30 02:54:23 UTC
Created attachment 60842 [details]
stacktrace
Comment 22 fpgulias 2008-04-30 11:46:30 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06, Java(TM) SE Runtime Environment, 1.6.0_01-b06
OS: Windows XP, 5.1, x86

User Comments: 
Comment 23 fpgulias 2008-04-30 11:46:33 UTC
Created attachment 60860 [details]
stacktrace
Comment 24 callesto 2008-04-30 16:11:16 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Windows XP, 5.1, x86

User Comments: 
Installing ClearCase plugin.
Comment 25 callesto 2008-04-30 16:11:24 UTC
Created attachment 60880 [details]
stacktrace
Comment 26 pribyl 2008-05-27 10:30:56 UTC
Created attachment 61963 [details]
stacktrace
Comment 27 Jaromir Uhrik 2008-05-28 09:45:51 UTC
Created attachment 62044 [details]
stacktrace
Comment 28 Denis Anisimov 2008-08-26 11:37:30 UTC
I'm going to change original call of Runtime.exec()
to supposed 
String[] cmd = new String[]{"cmd.exe", "/c", "...toolkit.exe"};
Runtime.getRuntime().exec(cmd);

In case of OS Windows Vista.
Comment 29 Denis Anisimov 2008-08-27 09:03:13 UTC
changeset:   98321:f9464b34d6c2
tag:         tip
user:        Denis Anisimov <ads@netbeans.org>
date:        Wed Aug 27 12:01:26 2008 +0400
Comment 30 Quality Engineering 2008-08-28 06:33:35 UTC
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/f9464b34d6c2
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for #131598 - java.io.IOException: Cannot run program "C:\Users\tester\.netbeans\dev\config\platform_installers\Sun-Java-Wireless-Toolkit252-for-CLDC-for-Windows_200710311754.exe": CreateProcess error=740, The requ
Comment 31 Exceptions Reporter 2008-10-21 06:59:54 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200810181401)
http://statistics.netbeans.org/exceptions/detail.do?id=131348
Comment 32 rajivderas 2008-10-21 07:27:56 UTC
Build: NetBeans IDE Dev (Build 200810181401)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments: 
tried to create a rhtml file

Stacktrace: 
java.io.IOException: Cannot run program "D:\netbeans\ruby2\jruby-1.1.4\bin\rails" (in directory "D:\65cat\Tutorial Reviews"): CreateProcess error=193, %1 is not a valid Win32 application
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at org.netbeans.modules.ruby.platform.execution.ExecutionService$2.run(ExecutionService.java:337)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Comment 33 rajivderas 2008-10-21 07:28:05 UTC
Created attachment 72346 [details]
stacktrace
Comment 34 Denis Anisimov 2008-10-21 07:33:56 UTC
Do you reopen this issue with exactly this 
'java.io.IOException: Cannot run program "D:\netbeans\ruby2\jruby-1.1.4\bin\rails".........' 
description ?
If so then I will close this issue because mentioned reason doesn't have any relation to mobility.
Mentioned issue is similar but different because concern absolutely different functionality.
It should be filed against RUBY module.
Comment 35 rajivderas 2008-10-21 07:44:19 UTC
EXCEPTIONS_REPORT transfered it here automatically i will report this exception manually to ruby
Comment 36 Denis Anisimov 2008-10-21 10:29:03 UTC
OK, I close this issue.
Comment 37 Denis Anisimov 2009-03-25 10:14:08 UTC
*** Issue 156811 has been marked as a duplicate of this issue. ***
Comment 38 Petr Somol 2012-12-05 17:23:04 UTC
Note that this issue has an effective duplicate in #222517. See #222517 for details.