12-03-2009 01:22 PM
Hi all,
i've got another question ![]()
how can i compile classes outside an IDE? i tryed with javac but i hava an error
javac: invalid flag: .BlackBerryPreprocessed
i called javac in this way
javac -cp net_rim_api.jar -sourcepath src -d generated *
is there something wrong? i goggled a little, but i didn't found any help... could you help me?
thanks
James
12-03-2009 03:03 PM - last edited on 12-03-2009 03:04 PM
you still have to use the RIM compiler which is part of JDE or can be downloaded seperately as component package.
the exe is called rapc.exe
You could also use BBAnt which is an extension based on ANT buildfiles
12-03-2009 08:33 PM
AFAIK you can compile for j2se but nothing will run. IIRC, the compiler can use the RIM libs
to check signatures and import but there is no j2se libary to let you run the mess on your desktop
as an altnerative to the full blown emulator. Personally I've always thought this would be a good
way to test a lot of code and in fact for non-GUI pieces, I have conditional compilation that
let's me test stuff under j2se ( mostly b-tree index stuff). In this mode, I have conditional imports
and just compile with javac and run without benefit of RIM or j2me packages.