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 200482 - Can not run javacard emulator located in path containig "-" character
Summary: Can not run javacard emulator located in path containig "-" character
Status: RESOLVED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 7.1
Hardware: PC Other
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-28 15:17 UTC by Anton Chechel
Modified: 2011-07-29 14:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chechel 2011-07-28 15:17:43 UTC
Running "C:\Projects\netbeans\jet-main\nbbuild\netbeans\javacard\JCDK3.0.2_ConnectedEdition\bin\cjcre.exe" from NetBeans thorws exception:

====
INFO [org.netbeans.api.extexecution.ExecutionService]
java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	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:453)
Caused: java.io.IOException: Cannot run program "C:\Projects\netbeans\jet" (in directory "C:\Users\Manowar"): CreateProcess error=2, The system cannot find the file specified
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
	at org.netbeans.modules.javacard.ri.card.RICard$ProcessLaunch.call(RICard.java:704)
	at org.netbeans.modules.javacard.ri.card.RICard$ProcessLaunch.call(RICard.java:683)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:257)
	at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:233)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
SEVERE [org.netbeans.modules.javacard.ri.card.CardProperties]: Property javacard.device.suspend not found in org.netbeans.modules.propdos.PropertiesBasedDataObject$PropsAdapter@2f30be4
====

NB treats text after "-" as a parameters.
Comment 1 Anton Chechel 2011-07-28 15:20:37 UTC
fixed
http://hg.netbeans.org/jet-main/rev/e8e3942742a3
Comment 2 Quality Engineering 2011-07-29 14:08:49 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e8e3942742a3
User: Anton Chechel <manowar@netbeans.org>
Log: #200482: parsing path to emulator bug