I am following Link.
In this I have to add class files and apache commons files also. I can add this in Mobilefirst 7.1. How to add these files in 8.0. As all we have to use command lines and also no server folder in project folder structure of 8.0.
Like below screenshot I can add Encoder.java file in server folder of 7.1 project.
So how this can be done in 8.0 project. I am very new to 8.0 so any kind of help is appreciated.
Adapters in MobileFirst Foundation 8.0 are standard Maven projects.
In Maven you can reference either remote or local dependencies in the project's pom.xml file.
Read more about dependencies:
In the MobileFirst Foundation developer center: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/adapters/creating-adapters/#dependencies
In the Maven documentation: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
To add Java classes, simply put these in the src folder and as in standard Java pratice, import them.
Related
What is the best way to package a resource (file) into a Java adapter? It is not clear from the documentation the best way to deploy this with the adapter archive so that it can be used by the adapter. Thanks for any help.
MFPF 6.3 does not support Java adapters, so that's moot there. If you want to use Java code in your JavaScript adapter in 6.3, then you can do so as demonstrated here: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/6.3/server-side-development/using-java-adapters/
MFPF 7.0 does support Java adapters; the adapter has a lib folder. You can use this folder to hold your libraries to use within the adapter logic:
-https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/7.0/server-side-development/java-adapter/
- also see section "adapter sandbox": http://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.dev.doc/devref/c_overview_of_ibm_java_adap.html?lang=en
I have downloaded an iFix from IBM fix central (6.1.0.02.20150520-1015) for Worklight Server and Worklight Studio but I could not locate the below jar files.
Applicationcenterdeploytool.jar
Ibm-java-x86_64-sdk-7.0.-6.0.bin
Json4j.jar
Wlpdevelopers-runtime-8.5.5.2.jar
Can you confirm if the above jar files are also specific to worklight version and will be seen post WL server installation or are they generic files which can used with any WL version which can be used by jenkins build scripts.
Ibm-java-x86_64-sdk-7.0.-6.0.bin - this is IBM's version of Java. This is not bundled with either a GM or iFix or Fix Pack. You're downloading this yourself prior to any installation, if you choose to use it.
Wlpdevelopers-runtime-8.5.5.2.jar - I have no idea what that is. Looks like some WAS or WAS Liberty profile file, which you also install separately from Worklight
Applicationcenterdeploytool.jar - located post-install at install-directory/ApplicationCenter/tools/applicationcenterdeploytool.jar and is the deploy tool of Application Center, used by the ant task scripts.
Json4j.jar - located post-install at install-directory/ApplicationCenter/tools/json4j.jar and is used to handle the JSON file format
I'm developing an Eclipse RCP application with Eclipse 4.4 Luna M5 and I'm using Guice 3.0.
So I added guice.jar to my target platform and for every plug-in I'm developing I can add bundle com.google.inject to the plug-in's dependencies using the plug-in manifest editor of Eclipse. So far, everything works fine.
Now the problem: I want to use guice assisted injects (#Assisted).
So I added guice-assistedinject.jar to my target platform. (I'm using a .target file = Eclipse Target definition file).
In then "Content" tab of the .target file editor Eclipse correctly shows me the fragment bundle com.google.inject.assistinject 3.0 from guice-assistedinject.jar, but I cannot add this bundle or an exported package of this bundle to the dependencies of the plug-in projects I'm developing.
When I press "Add" in the plug-in manifest editor, com.google.inject.assistedinject is not in the list of addable dependencies? What's wrong?
Here my comment as answer again:
OK, found the solution: it's a PDE problem, see accepted answer in Eclipse OSGi bundle reqiure another bundle's fragment
After changing the manifest of my guice-3.0.jar in the target platform like described in the link above, I needed to do the following:
Reload the target platform (Windows -> Preferences -> Plug-in development -> Target platform) and restart eclipse.
Remove the bundle com.google.inject from the required bundles of my plug-in.
Add all needed com.google.inject packages to "imported packages" of my plug-in. Now in the list of packages I can see com.google.inject.assistedinject.Assisted and import it!
Background
Download and install IntelliJ 12.04 Community Edition
Create project from external source (point to Gradle build script)
Specify JDK 7 as project's SDK
Note: Project is open source at github: Netflix/karyon
Problem
Want to simply war the project. In playing on the commercial version with GAE plugin installed, I was able to specify the Web Application facet, and create the war via the artifact functionality. With the setup described above, the only available facet is Android.
Question
How can I create a self sufficient war (includes all dependencies and hence can be dropped in any container without additional classpath requirements) from within the IDE?
IntelliJ IDEA Community edition doesn't have Java EE support, you need to use some other tool for packaging the war (e.g. Maven).
How do I go about creating a Maven project in Eclipse that is also recognizable to JBoss ESB Tools. Is this even possible?
This should help - and then once you've created the project, you can either import or create a new project and use your project's root directory as the base directory for your Eclipse project.
https://community.jboss.org/wiki/JBossESBTrailblazerBuildingWithMaven2