Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry application loading on simulator

while loading my application on BlackBerry simulator its displaying given below an error

Unable to start simulator. Check that the file exists. (java.lang.IllegalArgumentException: Executable name has embedded quote, split the arguments)

like image 784
Amarnath Baitha Avatar asked May 01 '26 00:05

Amarnath Baitha


1 Answers

I had same issue whilst trying to run the demo application.

I am running Windows 7 Professional,JDK 7u21 and STS 3.2.

This is an issue with the changes made to the decoding of command strings specified to Runtime.exec method.

In summary the path configured for the simulator launch contains spaces.In my case "C:\Program Files (x86)"

To Fix this issue

  1. Copy the simulator Dir and MDS to a new directory that has no spaces.
  2. From the run configuration settings,enable the use of Customized Command line ,Customized Working directory and Customized MDS directory.Update the entries to point to the new path that has no spaces.

Alternatively you can use windows shortened dir name by typing dir /X in the CMD from the directory that contains the simulator and MDS,this should give you something like PROGRAM~2

In the end ,the issue is not with the IDE or the Simulator,just java and windows not playing nice.

see Oracle JDK 7u21 release note

like image 95
mujib ishola Avatar answered May 04 '26 16:05

mujib ishola



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!