BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-25-2008, 10:22 AM   #1
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default Unable to RUN any Applications on the Simulator

Please Login to Remove!

Hi

I have trying loading cod files on to the simulator , but it doesn't run

I copied the cod files to the simulator folder and tried again but still no luck

I tried some sample cod files that should have worked as they were Demo samples by RIM or by other coders

Can someone please say what is the problem ?

I have included the screen shot of the my Simulator's LCD Screen after loading those Cod files
Attached Images
File Type: png 8120-01.png (1.3 KB, 15 views)
Offline  
Old 06-27-2008, 06:26 AM   #2
jeromeng
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 26
Default

Which development environment are u using?

In BlackBerry JDE 4.#, all u have to do is to click "Build" and then "Debug--> Go" to run the application on the defualt simulator; this automatically compiles the code to cod and loads it into the simulator.

You can download/install other simulators and then change the default simulator in JDE via "Edit --> Preferences --> Simulator".
Offline  
Old 06-27-2008, 08:01 AM   #3
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi

I am using RIM JDE 4.3

( I also have a 3.6 version installed )

Every time I Simulate , I get the following error scren in BlackBerry

I tried changing it to use other Simulators that I have installed , but it is still always showing the same error

Aslo , there is the same problem when I directly load a cod file on to the simulators

That happens even when I load the sample cod files included by other developers or from RIM as a sample

Do you know what could be the problem ?
Attached Images
File Type: png 8120-01.png (2.2 KB, 98 views)
Offline  
Old 06-27-2008, 08:25 AM   #4
goulamass
Talking BlackBerry Encyclopedia
 
Join Date: Jan 2008
Location: France
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 217
Default

Why to don't just load the java in the simulator???

But the step to launch it from the JDE.

You create a Worspace then you create a project in and add the file you need.

Check in the project properties if it's active.

Then juste press F5 and the JDE will compile all and launch the simulator with
Offline  
Old 06-27-2008, 10:35 AM   #5
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default

Hi!

The image you're seeing on the Simulator screen is what I see on a real device's screen when the OS is Not There. While I have some recollection of seeing that also on a Simulator (and was very surprised), I do not recall precisely what caused it. As a result, my guess is that something is missing from the "environment" when you're launching your simulator. This may be resolved as follows:

If the simulator was installed from a Simulator Install package:
1. Uninstall the simulator
2. Re-install the simulator
3. Launch the simulator from the Start menu (Start --> Programs --> Research In Motion --> [simulator])
4. After the simulator initializes, select "File" --> "Load Java Program" and navigate to your COD file. This should load the COD file

If the simulator was installed as part of the JDE installation:

1. Uninstall the JDE
2. Re-install the JDE
3. Launch the JDE
4. Open your workspace
5. Select "Build" --> "Clean All"
6. Select "Build" --> "Build All"
7. Select "Debug" --> "Go"
This should load your application's COD file.

Executing the application on the simulator should be pretty straightforward.

Both of the above procedures assume that something went wrong with the installation of the simulator (whether as part of the JDE install, or independently). One thing to check would be: immediately after re-installing, before trying to launch your application, try to run the simulator, just to see whether the simulator BY ITSELF can execute, without throwing added complexity into the issue.

Another thing to make certain of: if you're not using the JDE to launch the simulator AND you're not using the Start menu to launch the simulator, then please be certain that you're launching the simulator by double-clicking the .BAT file that's in the folder (in the simulators that came with my 4.3.0 JDE, there is a "8120.bat" and "8130.bat"). These files are editable scripts that launch the "fledge.exe" executable, that runs the simulation.

NOTE: Copying a COD and/or ALX file from the location where it was built INTO the simulator's directory is a BAD idea. I have gotten intermittently UNGOOD results from doing so. At the moment, I launch the simulator from the Start menu, and then do "Load Java Program" - this works consistently all the time.

Good luck!

Cheers,

karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 06-27-2008, 11:27 AM   #6
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hello Karl

That was a very explanative and comprehensive explanation

Thanks very much for your effort

I will be doing it as you have said

I have attached 2 of the Demos that I had been trying to simulate

Can someone else too run them and see if they cn be simulated properly ?
Offline  
Old 06-27-2008, 11:30 AM   #7
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Here are those sample files
Attached Files
File Type: zip TryDemos.zip (1.1 KB, 8 views)
Offline  
Old 06-27-2008, 02:01 PM   #8
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hello Karl

I tried re installing the JDE as you had said

I launched the simulator on its own but it was still showing the same error 507

Any idea what could be so wrong ?



Please help me if you can




Quote:
Originally Posted by holy3daps View Post
Hi!

The image you're seeing on the Simulator screen is what I see on a real device's screen when the OS is Not There. While I have some recollection of seeing that also on a Simulator (and was very surprised), I do not recall precisely what caused it. As a result, my guess is that something is missing from the "environment" when you're launching your simulator. This may be resolved as follows:

If the simulator was installed from a Simulator Install package:
1. Uninstall the simulator
2. Re-install the simulator
3. Launch the simulator from the Start menu (Start --> Programs --> Research In Motion --> [simulator])
4. After the simulator initializes, select "File" --> "Load Java Program" and navigate to your COD file. This should load the COD file

If the simulator was installed as part of the JDE installation:

1. Uninstall the JDE
2. Re-install the JDE
3. Launch the JDE
4. Open your workspace
5. Select "Build" --> "Clean All"
6. Select "Build" --> "Build All"
7. Select "Debug" --> "Go"
This should load your application's COD file.

Executing the application on the simulator should be pretty straightforward.

Both of the above procedures assume that something went wrong with the installation of the simulator (whether as part of the JDE install, or independently). One thing to check would be: immediately after re-installing, before trying to launch your application, try to run the simulator, just to see whether the simulator BY ITSELF can execute, without throwing added complexity into the issue.

Another thing to make certain of: if you're not using the JDE to launch the simulator AND you're not using the Start menu to launch the simulator, then please be certain that you're launching the simulator by double-clicking the .BAT file that's in the folder (in the simulators that came with my 4.3.0 JDE, there is a "8120.bat" and "8130.bat"). These files are editable scripts that launch the "fledge.exe" executable, that runs the simulation.

NOTE: Copying a COD and/or ALX file from the location where it was built INTO the simulator's directory is a BAD idea. I have gotten intermittently UNGOOD results from doing so. At the moment, I launch the simulator from the Start menu, and then do "Load Java Program" - this works consistently all the time.

Good luck!

Cheers,

karl
Offline  
Old 06-28-2008, 06:54 AM   #9
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi Karl

Also I had installed JDE 4.3

The Simulators I downloaded were of version 4.0
Offline  
Old 06-28-2008, 09:15 AM   #10
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default Upload

Hi!

I've tried running the HelloWorldDemo and the PhoneLogsDemo - they both seem to work fine, although I'm not precisely certain I've correctly loaded and executed them. Neither shows the error you're seeing on the "Device Simulator" I launched from Program Files --> Research In Motion --> BlackBerry JDE 4.3.0 --> Device Simulator.

So tell ya what I'm gonna do. I'm attaching a TestApp zip file, which contains everything to build and run a very very simple application. It was built using JDE 4.3.0, and it executes on the 4.3.0 JDE device simulator, a black 8130. I'm also in the middle of testing it against other simulators.

The environment settings on my machine (wrt Java stuff) are:

java.exe version: 1.6.0_05
javac.exe version: 1.6.0

That's about all I can think of at this point. Like I mentioned, this should just work. But hey, if everything in computer systems & software worked perfectly, I'd be out of a job!

Good luck!

Cheers,

karl
Attached Files
File Type: zip TestApp.zip (7.8 KB, 7 views)
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 06-28-2008, 09:17 AM   #11
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default

PS: One more thing: you should build the TestApp application from scratch. Alas, I left the COD file as-built-on-my-machine in there, so do a "Clean All" and "Build All", just to make sure. Can't trust these things. And - don't take this the wrong way - it only gets more challenging!

kgk
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 06-28-2008, 09:25 AM   #12
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hello Karl

Thanks so much for your help

Do you think it would have to do something with JRE ?

I hadn't set the path to JRE , I had just set the path to J2SDK\bin

Do you know how I should specify the path to JRE ?

I will also be trying the applicstion that you have attached

Thank you so much for your help
Offline  
Old 06-28-2008, 09:51 AM   #13
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hello Karl

Also I am using J2SDK1.6 and J2RE1.6

The JDE is 4.3
Offline  
Old 06-30-2008, 02:17 PM   #14
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Has anyone got any idea what could be the Problem?

I have installed and reinstalled JDE 4.3 many times

Also I removed earlier JDE 3.6
Offline  
Old 07-01-2008, 09:40 AM   #15
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default

Hi!

Sorry to take so long getting back. It sounds like your challenges are more complicated than my limited understanding/experience. Wish I could help.

The JDE will require access to the Java compiler - so you should make sure your JAVA_HOME environment variable is set correctly. The Java SDK comes with the same java.exe as the JRE does, so as long as JAVA_HOME points to J2SDK\bin it should provide all the correct Java tools for the JDE to make use of.

Beyond that, I don't have much I can add. Sorry, man.

Cheers,

Karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 07-01-2008, 09:47 AM   #16
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi Karl

Thanks for your willingness to help

Do you think it has to do something like javaw ?

I stumbled across it at

http://www.blackberryforums.com/deve...-help-jde.html

Do you think I need to specify the path to javaw.exe too ?
Offline  
Old 07-01-2008, 09:57 AM   #17
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default

Hi!

It looks like the javaw.exe is in the bin folder along with javac.exe and java.exe; so if you're specifying the correct path to javac & java, then javaw is there too.

If the simulator is running at all, then the java executable (even javaw) is working correctly. You might try downloading a previous Java version - I've got several that I cycle through to find the proper one. Go back a version to 1.5 and see if that helps.

Cheers,

karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 07-01-2008, 11:17 AM   #18
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi

I would be doing that

But can you please say whether in that case do I just need to edit the environment variable path to make it refer to Java 4 or so ?

Or do I need to re install the Simulator as well as the JDE ?
Offline  
Old 07-01-2008, 01:01 PM   #19
holy3daps
Thumbs Must Hurt
 
Join Date: Apr 2006
Location: Boston
Model: 8900
Carrier: AT&T
Posts: 98
Default

You should be able to just modify the environment variable path; make sure that the path is actually in the PATH environment variable as well.

Cheers,

karl
__________________
Karl G. Kowalski
---------------
Owns a RAZR
Develops for BlackBerry
So next phone will be........an iPhone 3G!
Offline  
Old 07-04-2008, 06:23 AM   #20
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi Karl

I am having 2 path settings under the tab

Does both off them need to be the same ?

When editing they seemed to be having different values so I just added the relevant Java path to both of them

Do I have to make sure that the rest of the values too are the same ?

Quote:
Originally Posted by holy3daps View Post
You should be able to just modify the environment variable path; make sure that the path is actually in the PATH environment variable as well.

Cheers,

karl
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


BISSELL 3-in-1 Turbo Lightweight Stick Vacuum, 2610 (Black) picture

BISSELL 3-in-1 Turbo Lightweight Stick Vacuum, 2610 (Black)

$37.96



Dirt Devil Scorpion Plus Corded Handheld Vacuum Cleaner SD30025VB Red NEW picture

Dirt Devil Scorpion Plus Corded Handheld Vacuum Cleaner SD30025VB Red NEW

$35.00



Bissell 3-in-1 Lightweight Corded Stick Vacuum 2030 picture

Bissell 3-in-1 Lightweight Corded Stick Vacuum 2030

$28.88



4.5 CFM Single-Stage Rotary Vacuum Pump HVAC/Auto AC 4.5CFM 1/3HP 1/4

4.5 CFM Single-Stage Rotary Vacuum Pump HVAC/Auto AC 4.5CFM 1/3HP 1/4"ACME inlet

$45.98



3 CFM Air Vacuum Pump HVAC Manifold Gauge Set AC A/C Refrigeration Kit picture

3 CFM Air Vacuum Pump HVAC Manifold Gauge Set AC A/C Refrigeration Kit

$46.03



DZ-260C Chamber Vacuum Sealing Packing Machine 320W Commercial Vacuum Sealer picture

DZ-260C Chamber Vacuum Sealing Packing Machine 320W Commercial Vacuum Sealer

$310.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.