06-21-2005, 11:21 AM
Join Date: Jun 2005
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | JDE + Wine, partial success
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 \
(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)