Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
jzanni
Posts: 3
Registered: 12-01-2009

compile classes

Hi all,

  i've got another question :smileyhappy:

  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

Please use plain text.
Developer
dpreussler
Posts: 212
Registered: 07-18-2008

Re: compile classes

[ Edited ]

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

If your problem was solved, please mark answer as "Accepted solution"
If your want to thank, click the "kudo" symbol
___________
visit me: http://mobilejavadevelopment.blogspot.com/
visit the Berlin BlackBerry Developer Group: http://berlinblackberrydevelopers.blogspot.com/
Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: 07-30-2008

Re: compile classes

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.

Please use plain text.