BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-17-2007, 08:16 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Location: Houston
Model: 8320
PIN: 204B0A6A
Carrier: t mobile
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default jar help!!!

Please Login to Remove!

ok, so i purchased the vampent mobile emulator because i heard that i could use it on my pearl.
i got it and followed the instructions that came with it in the readme file.
now i have it compiled and ready to go, but i cannot download it onto my phone, it does not show up on desktop manager, i also tried puting it on my mem card and tried going into explore to install it through media, but when it starts installing, i get the message "failed: 907 invalid JAR error!: control folow verification infromation too large"

how do i get it to install correctly?
Offline  
Old 04-17-2007, 08:47 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Mar 2007
Model: 8100
Carrier: T-Mobile
Posts: 239
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

.jar and .jad are for OTA (over the air) downloads.

.alx with a .cod file will allow you to use app loader in DM to install.

First thing you might want to try is to download it from your phones browser. But you say you compiled the jad so... if you download it like this you won't be able to add roms to it...
If you do not have a data plan you can try this. It might be kinda hard, but...

Since you only have the .jar file you will need to use JadMaker to make the .jad file. Here is a download link for the one I use:

Download JADMaker 1.15 - JADMaker creates a JAD file for your .JAR Java Games - Softpedia

Then you will need to take the .jar and .jad file and create the .alx and .cod files. Here is a batch file you can use for that:

Quote:
@echo off
cls
:: get jde location
set jde=
set /p jde=what is the complete path to your Blackberry JDE directory?
echo.
:: get jad and jar locations
set sve=
set /p sve=enter the complete path where your jad and jar files are located:
echo.
:: get the name of the jad and jar files
set jar=
set /p jar=what is the name of your jar file?
echo.
:: copy jad and jar files to the jde directory
xcopy "%sve%\%jar%.jad" "%jde%\bin\"
xcopy "%sve%\%jar%.jar" "%jde%\bin\"
::create the cod files
cd /d "%jde%/bin"
pause
rapc import="%jde%\lib\net_rim_api.jar" codename=%jar% -midlet jad=%jar%.jad %jar%.jar
pause
:: move the cod file to the jad and jar directory
move "%jde%\bin\%jar%.*" "%sve%\"
pause

:: change to the new directory
cd /d %sve%
:: create the new alx file
echo ^<loader version="1.0"^> >%jar%.alx
echo ^<application id="%jar%"^> >>%jar%.alx
echo ^<name^>%jar%^</name^> >>%jar%.alx
echo ^<description^>%jar%^</description^> >>%jar%.alx
echo ^<version^> ^</version^> >>%jar%.alx
echo ^<vendor^> ^</vendor^> >>%jar%.alx
echo ^<copyright^> ^</copyright^> >>%jar%.alx
echo ^<fileset Java="1.0"^> >>%jar%.alx
echo ^<files^>%jar%.cod^</files^> >>%jar%.alx
echo ^</fileset^> >>%jar%.alx
echo ^</application^> >>%jar%.alx
echo ^</loader^> >>%jar%.alx
pause
:end
Just copy this text to notepad and save it as filename.bat and run it. Input what it asks for. Let us know what happens. Good luck.
Offline  
Old 04-17-2007, 11:24 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Location: Houston
Model: 8320
PIN: 204B0A6A
Carrier: t mobile
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default so...

so what is the JDE directory?

cause im getting an error
rapc is not recognized as an internal or external command

Last edited by als580 : 04-17-2007 at 11:44 PM.
Offline  
Old 04-17-2007, 11:41 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Mar 2007
Model: 8100
Carrier: T-Mobile
Posts: 239
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, forgot to mention you will need Blackberry JDE. Here is the download link if you don't already have it:

https://www.blackberry.com/Downloads...359F4AE7BD7BA1

Select the "Blackberry Java Development Environment v4.2" or maybe 4.2.1 will work, I'm not sure.

Download and install it and reboot your pc if it asks or tells you to.

The complete path the the jde directory will be something like:
C:\Program Files\Research In Motion\BlackBerry JDE 4.2.0

When asked for the name of the jar or jad file. Type the file name without the .jad or .jar extension.

Let me know how you do.

Last edited by b_d0za : 04-18-2007 at 04:09 PM.
Offline  
Old 04-18-2007, 02:35 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Location: Houston
Model: 8320
PIN: 204B0A6A
Carrier: t mobile
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default new error

ok, so the new error reads

'rapc' is not recognized as an internal or external command, operable program or batch file
Offline  
Old 04-18-2007, 02:12 PM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Mar 2007
Model: 8100
Carrier: T-Mobile
Posts: 239
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sounds like you are entering the wrong path to the JDE directory.

I accidentally told you above to include the bin folder. Leave it out and it should work. So the complete path to your JDE directory will just be something like this:

C:\Program Files\Research In Motion\BlackBerry JDE 4.2.0


I usually go to My Computer, then my hard disk drive (mine is C, yours may be different), then Program Files, then Research In Motion, then Blackberry JDE 4.2.0. Now I'm in that directory and I can just copy and paste the address from the address bar and right click on the CMD prompt and select paste.

It should eventually say "no errors" and the .alx and .cod along with some other files will be in the same place as the .jar and .jad files are.
Offline  
Old 04-18-2007, 06:35 PM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Location: Houston
Model: 8320
PIN: 204B0A6A
Carrier: t mobile
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Alright, ill try when I get home using the file path without the bin extension, I know I was adding that after jde 4.2.1, ill post again with my results
__________________
8320 / 1 gig micro sd / bis
Offline  
Old 04-18-2007, 08:01 PM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2007
Location: Houston
Model: 8320
PIN: 204B0A6A
Carrier: t mobile
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok, its works now, and lets me register
__________________
8320 / 1 gig micro sd / bis
Offline  
Old 07-18-2007, 12:08 AM   #9 (permalink)
New Member
 
Join Date: Jul 2007
Model: 8100
PIN: N/A
Carrier: AT&T
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i cant get this to work
i keep getting an error like u did earlier
Offline  
Old 07-19-2007, 10:54 AM   #10 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Mar 2007
Model: 8100
Carrier: T-Mobile
Posts: 239
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

check the jde directory path. If it is wrong you will get that error.

Also, this doesn't work for every game. As a matter of fact it doesn't work for a lot of games I have tried, but if they go through with no errors they usually play fine on the pearl. Good luck.
Offline  
Old 07-31-2007, 03:49 PM   #11 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Feb 2007
Location: Toronto
Model: 9800
Carrier: Rogers
Posts: 319
Post Thanks: 2
Thanked 5 Times in 5 Posts
Default

and what if i only have JAD file?
Offline  
Old 07-31-2007, 06:54 PM   #12 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Mar 2007
Model: 8100
Carrier: T-Mobile
Posts: 239
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SoUnCool View Post
and what if i only have JAD file?
EDIT: READ MY NEXT POST

Last edited by b_d0za : 08-01-2007 at 08:43 PM.
Offline  
Old 08-01-2007, 08:40 PM   #13 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Mar 2007
Model: 8100
Carrier: T-Mobile
Posts: 239
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

WHOA, Sorry. My previous post, which I erased was incorrect. If you only have the jad file I don't believe it will do you any good, but I may be wrong.

Last edited by b_d0za : 08-01-2007 at 08:43 PM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.