("VMError when calling code Connector.open("file:///c: ") (and a few other formats)

Hello all, thanks for reading this question. I'll start with the problem. I wouldn't actually call the Connector.open with "file:///c:" as an argument for the real program. I've just simplified to do later when it did not work to try to find the problem.

Data sheet:

JDE4.5

Using components package 4.5 Eclipse plug-in

Running in from Release or Debug in the Blackberry Simulator

Code:

("To debug in my code it rolls up to what I touched the Connector.open("file:///c line: ") I also tried these formats.

Connector.Open("file:///c:/"); "

Connector.Open("file:\\\c:\\") "

("Connector.Open("file:\\\c: ")

originally it was-

Connector.Open("file:///c:/Caleb/middieFolder/") "

I tried the same thing above formatting with this URL

The problem:

When I hit this line of code with one of the strings above as an argument it throws this exception

Exception class - FileIOException

Message:-e.getMessage () actually get an error also. net.rim.VMError - I get a message at the bottom of my Ctrl + Maj + I window - net.rim.vm.VMError calling toString.

(This probably happens because it is null)

_errorCode = 1003

backtrace = null

I guess for some reason any he just dislikes the URL I provided what is a good way to test this? can I call to C: if I'm testing this on my computer?

Thanks for any help.

' c: / ' does not exist. You call the same path in the Simulator as you would on the device. Set the Simulator to simulate a SD card is inserted.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for