Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Cannot run apps in the emulator

2 replies · 2,526 views · Started 10 June 2003

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

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.

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.