BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links

BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Lszz Offline
New Member
 
Posts: 1
Join Date: Oct 2004
Default Can the Blackberry JDE run on linux OS???? - 10-28-2004, 08:42 PM

Hi.. i would like to know whether blackberry jde 3.7 could run in linux os?
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
bfrye Offline
BBF Veteran User
 
Posts: 3,493
Join Date: Aug 2004
Location: Hotwiring another Cessna
Model: OU812
Carrier: Nintendo
Default 10-29-2004, 08:43 AM

Possibly under an emulator, but not natively.
   
  (#3 (permalink)) Old
berryapps Offline
Thumbs Must Hurt
 
Posts: 60
Join Date: Oct 2004
Default 10-29-2004, 10:58 AM

There's no way it'll run in linux without using VMware (or clone) that boots Windows 2000/XP
   
  (#4 (permalink)) Old
bfrye Offline
BBF Veteran User
 
Posts: 3,493
Join Date: Aug 2004
Location: Hotwiring another Cessna
Model: OU812
Carrier: Nintendo
Default 10-29-2004, 11:41 AM

No one ever tried it using wine?
   
  (#5 (permalink)) Old
dinouye Offline
New Member
 
Posts: 12
Join Date: Oct 2004
Location: Vancouver
Default 11-03-2004, 01:07 PM

   
  (#6 (permalink)) Old
iluxa Offline
New Member
 
Posts: 11
Join Date: Jun 2005
Model: 7520
Default 06-20-2005, 11:33 AM

I've tried to install it under wine, but installer itself doesn't work. I don't have any winblows boxes arount to try and see if installed version will run. One thing to try is to install it on windows, and see if
at least compilers and packagers can be run natively on Linux (are they written in Java?)
   
  (#7 (permalink)) Old
iluxa Offline
New Member
 
Posts: 11
Join Date: Jun 2005
Model: 7520
Default JDE + Wine, partial success - 06-21-2005, 11:21 AM

Well, I tried wine from CVS yesterday, in win98 mode, installed native M$ Windows Installer 2.0 and was able to install blackberry JDE like this:

WINEDLLOVERRIDES="msi,msimsg32,msisys,ole32,oleaut 32,rpcrt4=n" wine ./JDE_4.0.exe

Once installed, I was able to use native Linux blackdown JDK to run main JDE program
(take a look at "jde.bat" in bin directory to get an idea on how to run it).
However, in order to actually compile something you'd need to be able to run "rapc" compiler.
And that is a windows executable. Well, so it seems from the first glance at least.

In reality of course it is just a wrapper around rarpc.jar (found in bin/ and/or MDS/classpath/).
Main class is net.rim.tools.Compiler
so one can start compiler like this:

java -jar $RIM/MDS/classpath/rapc.jar

Problem is that it takes few options, which are obviously not documented anywhere, that
tell it where blackberry runtime is, and which I didn't figure out yet.

Once that is figured out, all we'll need to, will be replacing rapc.exe with rapc.sh
(either replace the file, or edit the resource file that tells JDE where compiler is)

Oh, also rapc is looking for preverify program, which you can get from Sun J2ME SDK.

so, whole invocation will look something like this:
PATH=$PATH:$HOME/WTK2.2/bin java -classpath $RIM/MDS/classpath/* -jar \
$RIM/MDS/classpath/rapc.jar *.java

(again - this won't work yet - it will complain that we don't import blackberry runtime, and I still don't know how to deal with it)
   
  (#8 (permalink)) Old
iluxa Offline
New Member
 
Posts: 11
Join Date: Jun 2005
Model: 7520
Default And even more success - 06-21-2005, 01:12 PM

So, there is absolutely nothing special about running the cod compiler.
I have jmIrc running on my BB now.

here is the sequence of actions:
1. Compile normal midp-2.0 midlet with J2ME SDK from Sun
2. set up $WTK_HOME to point to your J2ME install, $RIM to point to
your JDE/MDS/classpath, and $APPNAME to your app name
4. cd to $WTK_HOME/apps/$APPNAME
3. run
PATH=$WTK_HOME/bin:$PATH \
java -jar $RIM/rapc.jar import=$RIM/net_rim_api.jar \
codename=$APPNAME -midlet jad=bin/$APPNAME.jad bin/$APPNAME.jar

Your .cod file will end up in current dir. bin/$APPNAME.jad will be modified to contain all
BB-specific info.

That's it folks!

P.S. Of course - running emulator and all other stuff will require more work,
but I personally don't care enough for now.
   
  (#9 (permalink)) Old
DoomBringer Offline
Talking BlackBerry Encyclopedia
 
Posts: 300
Join Date: Feb 2005
Model: 7280
Carrier: cingular, no wait, AT&T
Default 06-22-2005, 03:58 PM

Quote:
Originally Posted by iluxa
I've tried to install it under wine, but installer itself doesn't work. I don't have any winblows boxes arount to try and see if installed version will run. One thing to try is to install it on windows, and see if
at least compilers and packagers can be run natively on Linux (are they written in Java?)
HAHA "winblows" YOU MAKE FUNNY!
seriously, wtf. THAT JOKE SUCKS! (as in, its so old!)
   
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-2010 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.