Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 32
Registered: ‎11-21-2008
My Device: Not Specified
Accepted Solution

JDE 4.3, 4.6.1 and 5.0 will not launch from menu

I just freshly re-installed JDE 5.0 and for some reason I can't launch the JDE from the start menu (or command prompt using ide.exe in the bin directory).

JDE 4.1.0, 4.2.0 and 4.2.1 work fine but 4.3, 4.6.1 and 5.0 do not.

I'm running WIndows XP with JDK 1.6.0_12 in the path.

 

Any suggestions as to why this is not working?

 

Thanks,

Philippe

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

Open the task manager and see if it opens and then closes almost immediately. If so edit the .bat file and increase the xmem to 1024M and see if it opens then. If it does then you can leave it like that and let it eat away at your memory depending on hw much you have installed or remove some of the simulator packages.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

There is a 'bug' in that the JDE stops working when you install new simulators.  See for example:

http://supportforums.blackberry.com/t5/Java-Development/JDE-dosen-t-start-any-more/m-p/491783

Developer
Posts: 32
Registered: ‎11-21-2008
My Device: Not Specified

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

Thanks, bumping it to 1024M did the trick.

 

Philippe

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

Just to confirm, here is the ide.bat for 4.6 after changing from 256 to 1024

 

start javaw -Xmx1024M -DRIM_RUNTIME=..\lib -DRIM_BIN=..\bin -jar IDE.jar

Developer
Posts: 32
Registered: ‎11-21-2008
My Device: Not Specified

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

I haven't tried my 4.6.1 JDE yet, the 1024 was with the 5.0 JDE which was using 512 as shipped. 

 

So yes, my JDE 5.0 IDE.bat looks like this now:

start javaw -Xmx1024M -DRIM_RUNTIME=..\lib -DRIM_BIN=..\bin -jar IDE.jar

 

and launches fine now.

Developer
Posts: 32
Registered: ‎11-21-2008
My Device: Not Specified

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

After rebooting, I can no longer launch the JDE 5.0.0 or any of the other problem ones.  Not sure what I did to succeed last time other than it was a clean install.

 

I did notice a bad line in Settings.rc after CoverageY=0

D:\Testing\WaterCycle\BrowserField2Demo\samples.jdwFilesCurrentLine=samples.jdw::com\rim\samples\device\browserfield2demo::com\rim\samples\device\browserfield2demo\browserfield2demo.jdp::BrowserFieldScreen.java

Removing it did not fix things so I then erased FilesOpen, FilesZOrder (still not fixed) and then removed the following lines (all lines pertaining to simulators other than the JDE ones):

 

SimulatorCommand8100-4.2.1.93=C:\Programs\RIM\BlackBerry_Simulators_4.2.1.93_8100\fledge.exe /app=Jvm.dll /handheld=8100 /session=8100 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8100.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8100-T-MobileUS-4.2.1.103=C:\Programs\RIM\BlackBerry_Simulators_4.2.1.103_8100-T-MobileUS\fledge.exe /app=Jvm.dll /handheld=8100-T-MobileUS /session=8100-T-MobileUS /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8100-T-MobileUS.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8130-4.3.0.127=C:\Programs\RIM\BlackBerry_Simulators_4.3.0.127_8130\fledge.exe /app=Jvm.dll /handheld=8130 /session=8130 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8130.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8130-Verizon-4.3.0.97=C:\Programs\RIM\BlackBerry_Simulators_4.3.0.97_8130-Verizon\fledge.exe /app=Jvm.dll /handheld=8130-Verizon /session=8130-Verizon /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8130-Verizon.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8300-4.5.0.181=C:\Programs\RIM\BlackBerry_Simulators_4.5.0.181_8300\fledge.exe /app=Jvm.dll /handheld=8300 /session=8300 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8300.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8300-Vodafone-4.2.2.114=C:\Programs\RIM\BlackBerry_Simulators_4.2.2.114_8300-Vodafone\fledge.exe /app=Jvm.dll /handheld=8300-Vodafone /session=8300-Vodafone /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8300-Vodafone.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8800-4.2.1.90=C:\Programs\RIM\BlackBerry_Simulators_4.2.1.90_8800\fledge.exe /app=Jvm.dll /handheld=8800 /session=8800 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8800-4.5.0.102=C:\Programs\RIM\BlackBerry_Simulators_4.5.0.102_8800\fledge.exe /app=Jvm.dll /handheld=8800 /session=8800 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8800-4.5.0.181=C:\Programs\RIM\BlackBerry_Simulators_4.5.0.181_8800\fledge.exe /app=Jvm.dll /handheld=8800 /session=8800 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8820-4.2.2.193=C:\Programs\RIM\BlackBerry_Simulators_4.2.2.193_8820\fledge.exe /app=Jvm.dll /handheld=8820 /session=8820 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8820.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand8830-4.2.2.196=C:\Programs\RIM\BlackBerry_Simulators_4.2.2.196_8830\fledge.exe /app=Jvm.dll /handheld=8830 /session=8830 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:8830.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand9000-4.6.0.190=C:\Programs\RIM\BlackBerry_Simulators_4.6.0.190_9000\fledge.exe /app=Jvm.dll /handheld=9000 /session=9000 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9000.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A
SimulatorCommand9700-5.0.0.545=C:\Programs\RIM\BlackBerry_Simulators_5.0.0.545_9700\fledge.exe /app=Jvm.dll /handheld=9700 /session=9700 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9700.xml /pin=0x2100000A
SimulatorCommand9700-5.0.0.586=C:\Programs\RIM\BlackBerry_Simulators_5.0.0.586_9700\fledge.exe /app=Jvm.dll /handheld=9700 /session=9700 /app-param=DisableRegistration /app-param=JvmAlxConfigFile:9700.xml /pin=0x2100000A
SimulatorDirectory8100-4.2.1.93=C:\Programs\RIM\BlackBerry_Simulators_4.2.1.93_8100
SimulatorDirectory8100-T-MobileUS-4.2.1.103=C:\Programs\RIM\BlackBerry_Simulators_4.2.1.103_8100-T-MobileUS
SimulatorDirectory8130-4.3.0.127=C:\Programs\RIM\BlackBerry_Simulators_4.3.0.127_8130
SimulatorDirectory8130-Verizon-4.3.0.97=C:\Programs\RIM\BlackBerry_Simulators_4.3.0.97_8130-Verizon
SimulatorDirectory8300-4.5.0.181=C:\Programs\RIM\BlackBerry_Simulators_4.5.0.181_8300
SimulatorDirectory8300-Vodafone-4.2.2.114=C:\Programs\RIM\BlackBerry_Simulators_4.2.2.114_8300-Vodafone
SimulatorDirectory8800-4.2.1.90=C:\Programs\RIM\BlackBerry_Simulators_4.2.1.90_8800
SimulatorDirectory8800-4.5.0.102=C:\Programs\RIM\BlackBerry_Simulators_4.5.0.102_8800
SimulatorDirectory8800-4.5.0.181=C:\Programs\RIM\BlackBerry_Simulators_4.5.0.181_8800
SimulatorDirectory8820-4.2.2.193=C:\Programs\RIM\BlackBerry_Simulators_4.2.2.193_8820
SimulatorDirectory8830-4.2.2.196=C:\Programs\RIM\BlackBerry_Simulators_4.2.2.196_8830
SimulatorDirectory9000-4.6.0.190=C:\Programs\RIM\BlackBerry_Simulators_4.6.0.190_9000
SimulatorDirectory9700-5.0.0.545=C:\Programs\RIM\BlackBerry_Simulators_5.0.0.545_9700
SimulatorDirectory9700-5.0.0.586=C:\Programs\RIM\BlackBerry_Simulators_5.0.0.586_9700

This fixed it (still using the modified IDE.bat at 1024) but as soon as I closed the JDE, the lines re-appeared in Settings.rc and I could not launch again!

 

So now I'll see how many simulators I have to remove to make it work.

Developer
Posts: 32
Registered: ‎11-21-2008
My Device: Not Specified

Re: JDE 4.3, 4.6.1 and 5.0 will not launch from menu

Solution JDE 4.6.1 and 5.0:

1.  Make sure perl is installed and in the path on your system

2.  Create the file FixSettings.pl in the same directory as the Settings.rc and IDE.bat files of your JDE

# Fix BlackBerry JDE Settings.rc file so JDE will startup
print if /^SimulatorCommand[^=]+[-]JDE/;
next if /^SimulatorCommand[^=]+=/;
print if /^SimulatorDirectory[^=]+[-]JDE/;
next if /^SimulatorDirectory[^=]+=/;
print ;

3.  Add the following as the first line of you IDE.bat file (you may also need to bump up the memory)

perl -ni.orig FixSettings.pl Settings.rc

 

This allows the JDE to remember the last workspace, break points and files you had open.

 

If you still encounter problems, it may be that the settings file is set to launch a non-JDE installed simulator.  You will need to fix the SimulatorCommand= and the SimulatorDirectory= lines or re-install the JDE.  The above perl script may need addition lines to cleanup ActiveSimulatorProfile=

 

Solution JDE 4.3:

The above solution did not start working until I removed two 4.3 8130 simulators I had installed.

 

Are we having fun yet? Smiley Wink