07-05-2010 10:20 AM
I want to run my build script (ant script with rapc tag) on linux machine. I've included the bb-ant-tools.jar file in the classpath but it also requires JDE installation directory.
Please help me if anyone knows how to resolve this issue. I can't use windows machine for building my project, is it possible to copy JDE dir from windows machine to linux for running the script?
Solved! Go to Solution.
07-05-2010 01:41 PM
rapc has some hardcoded Windows paths and calls. Most who are not using Windows will code it on whatever system they want and use a VM to compile it.
Until RIM releases the full-Java versions of rapc that is the only way you can really do it.
07-06-2010 02:37 AM
I've copied JDE installation directory from Windows machine to linux machine.
Now I'm getting following error, please help me as I'm unable to figure out a solution.
[delete] Deleting directory /home/buildbb/buildbb/workingArea/release_blackber
[mkdir] Created dir: /home/buildbb/buildbb/workingArea/release_blackber
[rapc] Compiling 1 source files to BackgroundApp.cod
[rapc] /usr/bin/javac: line 3: java: command not found
[rapc] Error!: Error: java compiler failed: javac -source 1.3 -target 1.1 -g -O -d /tmp/rapc_262d51f7.dir -bootclasspath "/home/buildbb/libs/Bl ...
07-06-2010 05:34 AM
That's exactly what I said. One of the hard-coded elements is the compiling so rapc goes to invoke javac, can't find it, crashes, and returns what you see. It will only compile on Windows unfortunately.
07-06-2010 06:59 AM
Finally solved the issue...
Running rapc on linux is quite easy. It requires rapc.jar and net_rim_api.jar in bin & lib folders respectively alongwith correct path for Java, ANT & WTK (for preverification).
07-06-2010 08:22 PM
Ok, you figured out a work around. That should be helpful for others trying to do the same thing.