I generated a jar that contain the class which I use in my application, but I add this jar into the project following these steps:
right click in the project.
properties
Build
Libraries
Add external jars or add jars
ok
I can use these libraries as I write my code, but when I'm loading my project in the emulator or device it said that my library "NOT FOUND".
Please help, what is the correct way to use an external jar in blackberry projects?
please try following step:
right click in the project.
properties
Build
Libraries
Add external jars
select order and export tab
check mark true which .jar file you add
click ok
From the BlackBerry developer docs:
In the Package Explorer view, right-click the project that you want to add a dependency to.
Click Build Path > Configure Build Path .
Click the Libraries tab.
Complete one of the following tasks:
Click Add JARS if the .jar file is in the current workspace.
Click Add External JARS if the .jar file is not in the current workspace.
Select the .jar file that you want this project to depend on. The .jar file must be generated by a Java® application project. You cannot add a BlackBerry® application project of the Library type in this manner.
Click OK.
Pay close attention to the two different options in step 4. above, choosing the one that applies to your situation (where your .jar file is located).
Related
As part of our Unity build process we drag and drop a directory of C source files which are generated by the Unity IDE into our iOS Xcode project. We want Xcode to "Create groups" for the files because the header files don't seem to be recognized by the compiler when using "Create folder references".
I'm wondering if there's a way to script this so we don't have to manually drag the directories into Xcode each time. Adding a "Copy Files" build phase only seems to work if I choose "Create folder references". When I choose "Create groups", the "Copy Files" section remains empty. Is this a bug in Xcode or am I doing something wrong? I'm using Xcode 9.1.
I know Apple recommends creating a framework rather than copying in a directory of source files. The reason we can't do that is because we're relying on the Unity build process which gives us a bunch of C source files.
In Xcode, you can manage your build process under the "Build Phases" tab when you select your app target. These tasks are executed on each build of your app, unless specified otherwise by some phases (for example: you can choose to run a phase only when the app installs for the first time).
Click the + button and you can add a "Copy files phase" that will copy your selected files into the app. When adding the files you'll be able to select if added folders will create groups or folder references.
You can also add a custom "Run script phase" and write some bash code to do whatever you like, or even run an external script that will do more complex work.
Xcode makes it possible to script adding resource files such as images to the project file using the "Build Phases" tab however this does not work for source code files that need to be recognized at compile time. Luckily I managed to come across a nice community-developed Python script which does allow us to do this.
https://github.com/kronenthaler/mod-pbxproj
With this script we can make all sorts of modifications to the project file including adding or deleting files.
See this link for a full list of available operations:
https://github.com/kronenthaler/mod-pbxproj/wiki
xcode->Build Phases-> click (+) button -> New Copy Files Phase / New Run Script Phase
I want to add the PLCrashFramework in my app. This frameworks deals with crash reporting for iOS/MAC applications. What I did
Downloaded and unzipped the .zip file from the URL I have already provided.
In Xcode "Build Phases" -> Link Binary With Libraries
From the pop up "Choose frameworks and libraries to add"
Select "Add Other"... and select "CrashReporter.framework" and Open
After those steps I successfully built the project without problems.
I closed the Xcode, opened it again and tried to build. The build failed with
"header file not found", referring to a header file that belongs to the framework.
Why the xcode 6 does not find the header after closing and reopening the project?
Check your Framework Search Paths and Library Search Paths in your project's Build Settings. Check if you have a space in your directory structure. It's probably looking for 2 folders, one with the first part of the folder structure and one with the second. To fix this, simply add quotes around the whole folder structure.
You should add the framework though add file in project navigator by right click and select add file in your project and than browse to framework location and add framework. Remember to check copy file in your project it is must do. In this way Xcode will manage library header search path. You can see the framework will be added in Xcode "Build Phases" -> Link Binary With Libraries. If it is somehow not there you can add it by dragging framework from project navigator. The error will be gone.
I am wanting to add the "universal-image-loader jar" file to my Xamarin project and am not sure what I need to do. I have had a look at this resource but would still like some help please: itexico.com/blog/bid/100447/Android-Wear-Developer-Preview-Using-Xamarin-Jar-Binding
Here is what I have done so far:
Downloaded https://github.com/nostra13/Android-Universal-Image-Loader
Created a folder called "Jars" in the root folder of my Xamarin project
I have added the "universal-image-loader-1.9.2-with-sources.jar" file to the "Jars" folder
I have set the build action to "embedded resource" for the "universal-image-loader-1.9.2-with-sources.jar" file
I have successfully build the project
I still cannot use the ImageLoaderobject in my application. I cannot resolve a ImageLoaderobject and am not sure what else I need to do.
May I please have some help?
Thanks in advance
I'd suggest you use Java Bindings Library for that.
What you need to do is to add a project to your solution of type "Android Java Bindings Library" you DON'T need to create Jars folder it is created in the new project by itself. Add your jars there. On your startup project click on references and add the java binding project you have just created as a reference. build it and try accessing your assembly either by adding it in the using section or by it's fully qualified name.
Good luck!
I want to use the ksoap2-j2me-core-prev-2.1.2.jar file. But on use time application create a error
Module 'ksoap2-j2me-core-prev-2.1.2' not found
Any 3rd party jar has to be preverified using the SDK's preverify tool. Also, make sure that in Eclipse, you select the check box for the jar underneath the "Order and Export" tab when setting the build path (the same place where you add the jar)
How to use third party api in blackberry jde ?....(I need send file to ftp server)
You can simply add the JAR file into the project - on the projects name, right click and select "Add file to project". With it added, you can import any of its libraries.
Another way is to make another project and set it to the library type. Add the JAR to it and and then you can add this project to your main project as a project dependancy. This works also but if you want to put your project on a real device, you need to first install the library project and then install your app.