Board logo

Subject: How to use .jar on BlackBerry with USB cable [Print This Page]

Author: amigaman    Time: 12-2-2008 07:13 AM     Subject: How to use .jar on BlackBerry with USB cable

Warning before follow this tutorial you must understand that only few .jar will work on a blackberry (J2ME), because there are not designed to be used on a blackberry.

1- So first step download JDE
http://na.blackberry.com/eng/developers/downloads/jde.jsp
and install it
I use JDE 4.2.1 but 4.3 should wrok too

Install JDK from java
http://java.sun.com/javase/downloads/index.jsp

After go in the directory
C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin
(If you installed it on C:/)
put your .jar here

2- Download JAD maker or another program to create a .jad from .jar

http://innostream.p10.free.fr/public/logiciel/JADMaker.zip
install it (I have installed it in C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin)

3-open jadmaker and drag and drop your .jar file on jadmaker window.

You should have created a .jad in the same directory

4-use rapc to create .cod file

C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin>rapc.exe import="C:
\Program Files\Research In Motion\BlackBerry JDE 4.2.1\lib\net_rim_api.jar" code
name="Platinium" -midlet jad="platinium.jad" platinium.jar

remplace platinium by your application name of course :)

if your application is ok, you should have game.cod in /bin directory

5- upload your .cod on your black berry using javaloader

(Plug your blackberry on your PC)
C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\bin>javaloader -usb load platinium.cod
Normally at this step you should have the application on your blackberry, so click on his icon to launch it and see if it's work !

6- To delete the application use javaloader again

javaloader -usb erase platinium.cod

I know, it's long to do this and many applications doesn't work but it's the only way.

Attachment: gamejadmakernb1.jpg (12-2-2008 07:13 AM, 39.59 K) / Download count 10
http://www.bbsgame.mobi/attachment.php?aid=1115

Attachment: dos1.png (12-2-2008 07:13 AM, 38.6 K) / Download count 0
http://www.bbsgame.mobi/attachment.php?aid=1116

Attachment: dos2.png (12-2-2008 07:13 AM, 37.25 K) / Download count 0
http://www.bbsgame.mobi/attachment.php?aid=1117
Author: redzapper    Time: 31-5-2008 07:57 AM

Alternatively, if you have OS 4.5 (may work on earlier OS but not sure) can copy the jar file to your media card and simply install it from there.
Author: Ruin    Time: 2-6-2008 03:18 PM

very helpful. Thank you.
Author: centaur0629    Time: 13-6-2008 05:51 PM

I will try
Author: abhikesbhat    Time: 19-6-2008 01:54 PM

http://www.bbsgame.mobi/viewthre ... &extra=page%3D1

try this i think it is the same but it is a little easier
Author: kikeman    Time: 9-7-2008 12:19 AM

helpful and complicated
Author: abhikesbhat    Time: 9-7-2008 06:05 AM

great comments kikeman
Author: hannah    Time: 26-7-2008 03:19 PM

thank you this helped out alot.




Welcome to Blackberry Games (http://www.bbsgame.mobi/) Powered by Discuz! 5.0.0