I have javadoc documentation written for a .jar library that I want the user to be able to see right after he imports our jar into a project. In eclipse, I was able to do this by adding a libname.jar.properties file that points to where my javadoc directory is. This way when I import my jar into a project in eclipse I would be able to see the javadoc documentation when I hover over one of the api methods in my library.
Basically, I want to be able to have the same functionality in Android studio. Any help would be appreciated.
Related
i created a Javafx project using JDK 8 and when i tried to export it to a runnable .jar file, i got surprised that it doesn't run using CMD, and gives the following error :
"Javafx compenents are missing"
while it works perfectly during the compiling time(using the IDE) when i accessed the .jar files, i found it has just .class files (that i made), and the needed library files that haven't been exported (i made sure to select the "extract need library files extract required libraries into generated jar" option in Eclipse), is there a reason behind of this? and a way to solve it? thanks in advance
Ps: i tried this using Eclipse and Intellij IDE
I just wanna mention once again that I'm using JDK 8 where it has JavaFX library inside of it.
Did you try this?
There are detailed instructions on how to configure your IDE to run JavaFX with newer OpenJDKs (which do not come with JFX components in it).
It also explains how to create a new JavaFX Maven project from archetype, with all the necessary plugins to easily build your application while including the minimal Java components for it (using jlink).
This will ensure that anybody using your application will have those components.
I have a jar library which I want to be able to use from my react-native app. Currently I'm working on an android project and I want to be able to execute the jar from based on some user interactions. Is this possible and if it is, how can I do this? Bonus points if it's possible for iOS as well.
To use a jar library within a react-native app, you can follow these steps:
Copy the jar file somewhere inside android folder
Declare the jar file as a dependency of the android app project
compile files('<path_to_jar_file>.jar')
Create a native module (https://facebook.github.io/react-native/docs/native-modules-android), call to your jar file classes inside the java code and expose the functionalities via javascript module
You can also make a library from that jar file and your native module code (https://github.com/frostney/react-native-create-library)
Unfortunately, you cannot directly use the jar file for ios.
You can find a similar library for ios and create the ios native module and expose the same interface so your js module is cross-platform.
How do we use the dll file created by QML Extension Plugins?
The link regarding dll file creation, doesn't give enough information about how do we exactly use the dll file in other projects (Qt Quick applications).
A simple example on this with step by step explaination would be helpful.
I'm using Unity 5. It still expects java plugins to be a .jar file built with JDK 1.6.
I had this working under Unity 4, but they changed something. Now I get this error while building the apk from Unity:
OBSOLETE - Providing Android resources in Assets/Plugins/Android/res
is deprecated, please move your resources to an Android Library. See
"Building Plugins for Android" section of the Manual.
How do I get AS to put the resources into classes.jar? The "Building Plugins for Android" doesn't mention resources.
Additional information about my project:
The project references Google Play Services, so I need version.xml in there
<integer name="google_play_services_version">6587000</integer>
Which contains the version number for the reference in the Manifest.
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version" />
But if I include this file in res/values in my AS library project, it's still output as an xml file in res/values next to the classes.jar.
Incidentally, I'm digging the .jar file out of
/ApplicationName/build/intermediates/exploded-aar/ProjectName/LibararyName/unspecified/classes.jar
after building the project.
First of all, this is a warning and not an error.
Providing resources in Unity in Assets/Plugins/Android/res/ folder is not recommended, because it can cause resource conflicts.
When you provide resources in an Android library, they are correctly merged during build process.
Basically, you have three options:
convert your plugin into an Android library. Or you can init an empty library, add your .jar file to bin/, your resources to res/ (there should be a manifest and android.library=true in project.properties). You can do this by calling android create lib-project (more details)
if you compile your plugin directly using gradle or in Android Studio, you can use .aar file produced, given that you have set your project up as a library (apply plugin: 'com.android.library' in your build.gradle file). Just put it in any folder of your project, it should automatically be detected as Android-only plugin.
continue providing resources in res/ and wait for it to be completely unsupported by Unity.
Hope this helps.
I wanted to import an older FB project into the flash builder on my new pc, but I only have the filestructure. So I used 'import>existing projects into workspace'.
The files seem to be intact still, but the project now gives me an error regarding an swc in the bin folder: 'unable to open \'something'\bin\'something'.swc
I have no idea how to solve this, or what this even means. Can somebody lend me a hand here?
This would be referring to an old library project that you forgot to include in your workspace (or open). In Eclipse, when you specify a path as /your-library-project/some/path, it automatically resolves the real path to whatever you're trying to reference.
In this particular case, you were referring to the swc created by this library project and linking to it directly. To fix this issue, you'll need to find the library project and import it into your workspace.