02-24-2010 04:13 AM - edited 02-24-2010 04:20 AM
I've got a problem with the final step of my application test, the execution, run as blackberry widget of my project and that is the code of my index.html :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" id=”viewport” content="initial-scale=1.0,user-scalable=no">
<title>Insert title here</title>
<applet code="/applets/hello.class" width="500" height="200">
Applet Java ...
certainly i've another code of the file hello.class and it's correct, I supposed :
public class hello extends Applet
public void paint(Graphics g)
g.drawString("Salut tout le monde †");
but i can't execute this widget and in the console i can see this error :
[ERROR] Error happened when running rapc.exe!
BUILD EXITED WITH 1 ERROR
Who can help me please ?
(i'm french sorry for my bad english)
02-24-2010 07:15 AM
The reason you widget is not compiling is because you are including an applet. The BlackBerry browser does not support applets and the Widget Packager is trying to compile the Java class you have included in your widget zip.
You are not able to use applets in your widget code or in a web page viewed by the BlackBerry Browser
02-24-2010 08:25 AM
but when i have searched solutions to input java in my widget i found the applet solution, so what kind of solution i supposed to used in my widget ?
02-24-2010 09:03 AM
To build a Widget Extension written in Java you can follow the lab material found here: