03-08-2010 03:07 AM
Hey. Trying a Flickr API and they provided a jar file for developers.
Never done this before. Can I put a jar file somewhere to access it's classes/methods? Tried JDE bin folder ...
03-08-2010 03:12 AM
Yes, you can do that. Please follow the instructions in this article:
03-08-2010 03:21 AM
Great start and quick reply too. Now this error compiling. My app has the line
Flickr f = new Flickr(apikey);
java.lang.RuntimeException: Warning!: No definition found for method: <init>
com.aetrion.flickr.Flickr: Error!: Missing stack map at label: 25
Error while building project
Do you know what a missing stack map is? Tks
03-08-2010 03:27 AM
It's a preverification error. You have to preverify your Flickr Jar file before you can use it in your application.
Go through the following steps below for preverifying:
1. Go to your JDE installation folder (C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin)
2. Copy the jar file to bin folder.
3. Now open your command prompt and change your current directory to your JDE installation directory.
4. Now execute the following command:
preverify -classpath "C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\lib\net_rim_api.jar" "your_jar_filename"
5. In your bin directory(C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin) a folder named output will create.
6. Preverified jar file resides here.
7. Now take this preverified JAR file and follow the steps given in the article link I posted
hope that helps.
03-08-2010 03:51 AM
There should be preverify.exe file in bin folder of your JDE installation directory.From the command prompt you should change to this directory and then execute the preverify command .