All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 10-06-2003, 01:29 PM
Guest
 
Posts: n/a
Cannot run apps in the emulator

Hello!

I've started developing an app for the p800 using pJava. But now I have run into some problems....
When I try to test my app with the debug emulator, the whole thing crashes at startup.

When using the release emulator I get an output to the console saying: "Could not create the Java virtual machine".
I think this is just some enviroment variable problem, but I'm not sure of which it is.

Does anyone have any ideas?

I've installed the SDK using Kajetan's excellent instructions, so I think I got most of the variable right...

// toma

  #2  
Old 10-06-2003, 03:03 PM
Cruizer Cruizer is offline
Registered User
 
Join Date: Dec 2002
Posts: 30
Cruizer is on a distinguished road
Sounds like one of either two problems;

1) _epoc_drive_j doesn't correctly point to the directory containing classes.zip, or
2) you try to include a class in your application which the VM can't find.

In either case, the continued message should indicate which one. If it cannot find java/lang/Thread it's #1. If there's another classname listed in the ClassNotFoundExeption (which I assume is what you get), then you need to find that class and ensure it's available somewhere along the VM's classpath.

Regards,

/Cruizer.
Ads

  #3  
Old 06-08-2003, 10:29 AM
Guest
 
Posts: n/a
You need to set the environment variable.
Use following syntax to do so :
set _epoc_drive_j=<path_to_my_sdk_installation>\epoc32\java\

Replace <path_to_my_sdk_installation> with the full path where you have installed SDK.

Thanks

Shubhangi.
 

Bookmarks

Tags
apps, emulator, run

Thread Tools
Display Modes

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



All times are GMT. The time now is 10:41 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy