RSS

Memainkan file jar di blackberry

21 Apr

Mula mula kita harus menginstall JDE untuk blackberry terlebih dahulu, bisa diambil dari web resmi black berry,

Kita akan menggunakan RAPC Compiler yang ada di JDE tersebut,

copas dikit dari webset blackberry :
RAPC is the command line compiler that is used to compile .java files into .cod files that you can load onto the handheld. You can find the compiler by searching for rapc.exe in the bin directory. RAPC takes in a number of arguments from the command line, and can be your link into the JDE compiler. It takes in either .java source files or a .jar file, compiles them, and then creates a compressed .cod file, which the simulator or the handheld can run. Here are some of the arguments that rapc.exe accepts:

(a) import= (specify the RIM APIs and other dependent libraries)
(b) codename= (use the application name – same as the .jar file)
(c) -midlet (if it is a MIDlet)
(d) jad= (specify the JAD file name)
(e) \filename_1.java \filename_2.java … (if compiling from java files)
(f) \JAR_filename.jar (if compiling from a .jar file)

If you build the sample applications in the JDE, you can see the RAPC command line in the lower window.

Pada contoh kali ini, File yang ingin saya konvert adalah HVWSHE.jar dan HVWSHE.jad yang telah saya taruh di dalam folder bin di folder tempat instalasi JDE.

Command yang digunakan :
rapc import=”C:\Program Files\Research In Motion\BlackBerry JDE 4.2.1\lib\net_rim_api.jar” codename=hvwshe -midlet jad=HVWSHE.jad HVWSHE.jar

Dan jika proses kompilasi sukses, maka anda akan mendapatkan file cod baru di dalam folder bin di JDE anda .

 
1 Comment

Posted by on April 21, 2009 in Uncategorized

 

Tags: , ,

One response to “Memainkan file jar di blackberry

  1. Johan

    April 25, 2009 at 12:05 pm

    hohoho,, buat iphone ada kagak mas ?😀

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: