How to solve this JVM error in Blackberry simulator? - blackberry

I am getting error ("JVM Error 545 incompatible or corrupt file system") while building the application in blackberry simulator and I am using the blackberry jde 4.6.
I could not even see the first screen of the simulator.
Can any one tell me what is the reason for this error and how to solve this error.

In Eclipse, Just close the Simulator and press the Clean Simulator option in the Blackberry Menu or there is a button in the toolbar too!!

This thread suggests to reinstall the JDE or the simulator
This one suggests:
in the JDE try "file -> erase file system and erase non volatile storage".

If you are running your application on eclipse, browse to Eclipse_Folder\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.36\components\simulator and delete all .debug files and .dmp files.
Restart your eclipse.

for the message "JVM error 545 invalid or corrupt files" Delete and Reinstall the Simulator, that will be enough.

delete those files
(.cod) which are created by you & clean.bat ( simulator directory )
& then go to file option ( in simulator ) -> restore to Factory default !

Related

Unable to boot the iOS Simulator - xcode 6.0.1

I've an error in Xcode 6.0.1 on OS X Mavericks 10.9.5.
When I debug, the iOS 8 simulator shows this error:
Unable to boot the iOS Simulator.
After few seconds Xcode shows this other error:
An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2)
However, the iOS 7 simulator works!!
Do you have DYLD_INSERT_LIBRARIES set? Check /etc/launchd.conf and look for launchd_sim crash logs in ~/Library/Logs/DiagnosticReports ... if so, this is a dupe of
Unable to boot iOS 8 Simulator
At this point there seems to be a lot of problems with the simulator in XCode 6 compared to XCode 5. I've especially seen issues when switching between various deployment targets and simulator devices. Restarting the simulator usually fixes the problem and if not try restarting XCode.
I also had this problem and found the solution by doing following steps:-
1) Initially i downloaded Xcode 6 library in Documentation section under the path Xcode --> Preferences --> Downloads and restart my xcode but didn't solve my problem.
After that ->
2) Downloaded and installed the iOS 7.1 Simulator under the path Xcode --> Preferences --> Downloads.
Restart xcode again and the problem solved.
3) I am facing same issue again next morning.
Unsetting the DYLD_INSERT_LIBRARIES variable solves my problem:-
a) Open terminal and type "sudo vi /etc/launchd.conf" command and press Enter
b) Press I "Insert" mode and change this
"setenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib"
to this
"unsetenv DYLD_INSERT_LIBRARIES /usr/lib/libimckit.dylib"
and press esc to exit from insert mode.
c) Save changes by typing ":wq" Press Enter
d) Reboot your system and problem soloved.
Prior to that i didn't found any iOS version in front of each listed devices
but after installation or by unsetting DYLD_INSERT_LIBRARIES variable i found the same in front of each devices.
>
Hope this helps anyone.
Thanks lads, but i finally found a solution.
For those who are still looking for solution, here is the one which helped me:
There is a file /etc/launchd.conf that will not be used by Yoseph. I just deleted it. You can unset DYLD_INSERT_LIBRARIES environment variable in that file too. Hope this helps you all.
Make sure you have under the path "Xcode --> Preferences --> Locations --> Command Line Tools --> Xcode 6.0 selected, if not select that. Another option is under iOS Simulator perform "Reset Content And Settings". Hope this helps!

Unable to locate DeviceSupport directory

I am getting this error (see below)
I have had xcode installed all the time nothing has changed other than updates to trigger, is there something I can do to fix it?
Unable to locate DeviceSupport directory.
[ !! ] This probably means
you don't have Xcode installed, you will need to launch the app
manually and logging output will not be shown!
What version of iOS are you using on the device? Did it upgrade to 6.1 recently?
The problem is probably that Xcode hasn't yet downloaded what it needs to communicate with the device. If you open Xcode and look at the Organiser, you should see the status light turn green next to the device in the left sidebar.

Blackberry development on Windows XP

I have installed Blackberry JDE on Windows XP. And I am trying to run the 'samples.jdw' on simulator on Blackberry JDE. So I do 'Debug->Go' But when I do that
I get this popup windows saying 'Cannot find file' net_rim_bis_client__ru.debug'.
And there is 'Search...', 'Brwose...', 'Cancel', 'Don't ask this again' button.
So how can I get the sample project run on simulator in Blackberry JDE?
Thank you.
If you don't need the debugger, then you can (1) build the project in JDE, (2) start the simulator (Windows "Start" > "Programs" > "Research In Motions" > "BlackBerry JDE x.x.x" > "Device Simulator") and (3) when it is ready just load the built .cod file via simulator menu item "File" > "Load Java Programm.." (at least this is the name of the menu item on my Storm 9530 simulator). This adds the app to the simulator (the app icon appears on the simulator).
It appears that - depending on exactly which file(s) it says are missing - you can safely ignore these messages (click on the 'do not show this message again') button.
I got messages about a whole bunch of missing files, and have ignored them without any apparent problems:
net_rim_bis_client__ru
net_rim_bis_client__ru-1
net_rim_bis_client__cs
net_rim_bis_client__cs-1
net_rim_bis_client__el
net_rim_bis_client__el-1
net_rim_bis_client__pl
net_rim_bis_client__pl-1
net_rim_bis_client__it
net_rim_bis_client__it-1
... and so on. They appear to be related to localisation, so perhaps if I wanted to set the simulator language to Russian I might run into problems.
Anyway, it appears we are not alone in having this problem (see also the response immediately following that post). Maybe one day RIM will actually release some dev tools that work properly, but I'm not holding my breath...

how to Run two BlackBerry simulators in windows eclipse?

How to Run two instance of BlackBerry simulator in windows eclipse?
The documentation regarding developing with BlackBerry Messenger indicates that you can run two simulators at once, at least with the simulators that come bundled with the BBM SDK.
You cannot. If you try, you will get an error message saying only one simulator can run at a time.
What you need to do is:
Install the blackberry eclipse plugins twice and make two
workspace of each eclipse.
Run the two simulators in each eclipse and error like "could not
open port 19780 and it is use by another program....." will pop
out in one of your simulator.
So made the changes in pin,
data-port values in .bat files, rimpublic.property files inside
MDS and fledge-settings.conf in one of your simulator... but this
changes will not be reflected on your eclipse.
So what you need to do is, when you click the debug configuration from your
eclipse, you will see the simulator option there. So, click the simulator and change the PIN value, whatever you have made the changes in .bat files.. and just after that in the simulator you will again find the option of network, there unselect the disable registration button...once all this changes is made click apply and restart your eclipse... this will surely solved your problem

Erase persistent data from Eclipse/Simulator

anyone know how to erase the persistent data from the Eclipse tool or from the Blackberry simulator? Resetting the simulator is not erasing the data.
i found these instructions in a book, but i'm thinking that these instructions were for an older version of eclipse.
"From the JDE Plug-in for Eclipse, you erase the simulator’s file system by selecting the
BlackBerry menu, Erase Simulator File ➤ Erase File System (see Figure 6-6)."
thanks for your help.
ac
Do you want to erase your application data or resetting the simulator ?
To erase your application data :
in Eclipse, select Menu -> Blackberry -> erase simulator File -> Erase All
If you want to reset your simulator to it's default state, you must do :
Close Eclipse
goto where your simulator located.
Find clean.bat
Run Clean.bat.
Remember you must close eclipse during this process.

Resources