How can I attach the openCV API docs to my project? Currently when I hover over a specific openCV method I do not see any docs, and I have to refer to the docs website every time I need get familiar with any method.
Note: I am using openCV 2.4.11 in eclipse
As there is no offical Maven repository for OpenCV and the project does not provide a javadoc JAR file. The only possible solution seems to be
download the source repository
build the javadoc JAR yourself (see: http://code.opencv.org/issues/1847)
Related
Hi i am developing a sdk in java, in the sdk the users will provide the node modules names. Is there any way to download those npm packages in java with all its dependencies without forcing the end user to install npm?
You can start by studying npm's registry api. You can look for packages by appending the package name at the end like this http://registry.npmjs.org/express and you just have to parse the returned json and look for the latest tarball urls (if you're looking for the latest distribution, else you can code your plugin to look for specific versions). And then look for the dependencies entries and do the same for them (access the api and download the tarballs). You can actually find more info at their docs.
I recommend to take a look at this java library: https://github.com/OrienteerBAP/JNPM
Along with native Java API to work with NPM it also provides Command Line Interface, transparent CDN-like access to NPM resources via Servlet for example and maven plugin to get NPM resources and pack within your java library (lightweight replacement of WebJars)
I'm working with pdfbox-app jar. i have seen there is a frequency development. I like to see the changes in code. Where can I download the latest source code for pdfbox-app lib? Is it possible to get the source code for all the snapshots ?
You can get the source with svn with this command:
svn checkout http://svn.apache.org/repos/asf/pdfbox/trunk/
If your IDE has svn built in, just search for svn checkout and enter the URL above.
You can also browse the Subversion repository using ViewVC at http://svn.apache.org/viewvc/pdfbox/.
This is described here: https://pdfbox.apache.org/downloads.html#scm
If you don't know how your IDE supports svn, enter the name of your IDE and svn in youtube to find a tutorial.
In the context of Java 8 and Nashorn I see two projects being regularly mentioned.
Avatar.js and Project Avatar
What is the relation of these projects?
Avatar.js has very little documentation. As far as I gathered it offers the possibility to execute node applications on the JVM.
Project Avatar seems to build on Avatar.js. However the scope seems to be to provide an alternative Web-Framework for Java EE 7. Is it also possible to execute node programs (like i.e. grunt) with Project Avatar?
Update: Project Avatar was officially halted 2015-02-12.
Avatar.js is the open-source version of what was informally called 'node.jar' (See this post from the avatar-js mailing list). In other words, it is a NodeJS-compatible API, running on Nashorn. Project Avatar appears to be Oracle's answer to the NodeJS API, offering an alternative platform which also provides compatibility with the NodeJS API and ecosystem via Avatar.js.
Therefore it is not that Project Avatar is built on Avatar.js, but rather that "Avatar.js is one component of Project Avatar. Nashorn is the JavaScript engine used to run both." (again, from this post).
The Avatar.js homepage currently has a list of modules known to run, including "grunt". It would appear that Project Avatar currently includes a build of Avatar.js as "avatar-js.jar", as found in the current latest commit, though it is 4 months old. So I think the answer is that yes, the current build of Project Avatar will allow you to run Node-compatible modules.
As you've pointed out, both of these initiatives lack documentation, and are in their infancy. Time and community engagement will show where they fit best.
Indeed there is Avatar.js included in Project Avatar.
By looking at the Maven POM files of Project Avatar, I discovered that there is a binary distribution of Avatar.js available through the java.net Maven repository.
Based on this discovery I wrote a blog post how to run simple Node.js apps with Avatar.js here:
Running Node.js applications on the JVM with Nashorn and Java 8
Steps for OSX repeated here:
Download avatar-js.jar from the java.net Maven Repo. Current version
is here:
https://maven.java.net/content/repositories/public/com/oracle/avatar-js/0.10.25-SNAPSHOT/
Example file: avatar-js-0.10.25-20140313.063039-43.jar
Download the native library avatar-js.dylib from the java.net Maven
Repo. Current version is here:
https://maven.java.net/content/repositories/public/com/oracle/libavatar-js-macosx-x64/0.10.25-SNAPSHOT/
Example file:libavatar-js-macosx-x64-0.10.25-20140312.062209-35.dylib
For Linux
you would download the corresponding .so file from ../libavatar-js-linux-x64/0.10.25-SNAPSHOT/
For Windows you would
download the corresponding .dll file from
../libavatar-js-win-x64/0.10.25-SNAPSHOT/
Rename the native library to avatar-js.dylib and rename the jar to
avatar-js.jar and put both in a directory called dist.
Create a simple Node.js app in the a file called app.js.
Run the command: java -Djava.library.path=dist -jar dist/avatar-js.jar app.js
Project Avatar does indeed layer on top of Avatar.js; the code is integrated into our build using Maven. (The jar you found, Johann, was old because we no longer use it -- I just nuked it, thanks).
And yes, we're aware that our docs need more work. For now, we are focussing on fleshing out the server-side JavaScript framework. This services layer provides a runtime tuned for easily creating REST, WebSocket and Server-Sent Event endpoints.
Let's say I have some javadoc available online. Is it possible to download it as a .jar or .zip so I could attach it to library and use in my IDE (NetBeans)?
Edit:
I am not looking for a way of attaching Java documentation. I am after third party library docs which cannot be downloaded, but are available online.
third party library docs which cannot be downloaded, but are available online.
Could you tell me how to link the doxygen documentation with a Java project inside Eclipse?
Here is the background: I am involved in a C++ project, which has a Java Interface. Its document seems to be generated by doxygen rather than javadoc. I hope to use this documentation inside Eclipse, but I don't see how to. I have installed the doxygen plugin Eclox but apparently I don't see what to do next.
For information, here is the a part of my project's ./doc directory./doc