Is there a pre-compiled version of zxing for Windows? Both the Java version or the C++ port will do. I could find source packages on their site.
The Java artifacts for core and javase are available in Maven, from Sonatype's OSS repo: https://oss.sonatype.org/index.html#nexus-search;quick~zxing
This is of use if you're using Maven, but also means you can grab .jar files over the web too:
https://oss.sonatype.org/content/groups/google/com/google/zxing/
Related
I have downloaded the Netbeans sources (v8.1) to make a small change in Netbeans.
So I followed the instructions on that page:
http://wiki.netbeans.org/WorkingWithNetBeansSources
Imported the Netbeans sources with Mercurial: $ hg clone http://hg.netbeans.org/main-silver/. Works.
Build a new fully functional Netbeans Dev Version from the commandline with ant. Works.
According to the instructions I should be able to do that: "The whole source tree has NetBeans project metadata so you can just use NetBeans to develop NetBeans". But that doesn't work.
That's my environment: Netbeans 8.0.2 64Bit, Java 8, Ant 1.9.x, Mercurial 3.6.2. The sources are from 8.1.
As you can see in the screenshot below, the modules (like ant.browsetask or ant.debugger) do have a directory nbproject, but this directory contains only two files: project.properties and project.xml. Shouldn't there be more files? Are these two files sufficient for Netbeans, so it can be recognized as a project?
So how can I open the Netbeans sources in Netbeans?
Ok, I found the solution by myself.
Netbeans needs to have the plugin 'Netbeans Plugin Development' installed. I uninstall it usually, because I don't do that, but now's an exception.
The download page at scala-ide.org for the pre-configured Scala IDE for Eclipse (4.0.0 Release) states that its content includes SBT 0.13.6. I downloaded the Mac OS X 64-bit version, and found that the /plugins directory indeed contains a jar file called org.scala-ide.sbt.full.library_0.13.6.v-2... Is this a replacement for having a separate installation of SBT on one's development machine, perhaps facilitating some tighter integration between the Scala Eclipse plugin and SBT? If so, how does it work?
Yes, it does indeed include sbt. It is used internally to control the build, notably the incremental compiler.
It isn't a replacement for having sbt installed on your machine, it isn't really accessible from outside scala-ide.
As for tighter integration, not at the minute.
Maven Central's Eclipse jar files seem to be largely frozen around 2007-2009 (Versions 3.3, in general).
Is there a current (2014) Maven repository for Eclipse jars?
Have a look at the Services/Nexus eclipse Wiki-Page. The repository seems to be located at https://repo.eclipse.org.
There is no current Maven repository for Eclipse projects AFAIK. https://repo.eclipse.org only contains a very small subset of Eclipse artifacts.
There is an open issue in Eclipse bugzilla.
Good news: some parts (eclipse.platform, eclipse.jdt, eclipse.pde) of the Neon.2 release (december 2017) are now published on maven central as well (read more here).
https://repo1.maven.org/maven2/org/eclipse/platform/
https://repo1.maven.org/maven2/org/eclipse/jdt/
https://repo1.maven.org/maven2/org/eclipse/pde/
The poms are user friendly (simple version numbers, standard maven metadata for dependencies, source artifacts, 3rd party dependencies...) so it is now easy to use the libs in your project. Have a look at this simple example to use the Eclipse java formatter in a simple java application.
I'm trying to build the latest version of JGit. I checked out the latest version from the Git repository. According to the build instructions, I installed the dependencies via Orbit. I then ran mvn clean install which was able to compile everything and run all the tests. So this was great, there were no errors, and I can find the compiled .jar files.
I then opened Eclipse and imported the projects into a working set. For some reason, there are numerous errors in the build process.
Imports cannot be resolved:
import org.apache.commons.compress.archivers.ArchiveOutputStream;
import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
import org.apache.commons.compress.archivers.tar.TarConstants;
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream;
And more cannot be resolved:
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Response;
I tried installing Jetty via Eclipse (Install New Software). However, that did not resolved the issue.
Am I just not supposed to build JGit in Eclipse? All builds and testing should be done with Maven? I'm also confused as to why Jetty and Apache are being imported in some of these subprojects for JGit and they're not listed as dependencies of JGit on the wiki.
Thanks in advance.
The easiest way to install the dependencies is to use one of the target platforms, as described in Use a Target Platform. It includes all dependencies.
As for installing from the Orbit P2 repository, the listing there was incomplete. You also need to install "Apache Commons Compress", see updated instructions:
http://wiki.eclipse.org/EGit/Contributor_Guide#Option_2:_Install_from_Orbit_P2_Repository
Jetty can not be installed from Orbit, see here for instructions:
http://wiki.eclipse.org/EGit/Contributor_Guide#JGit_HTTP_Tests
Or again, use the target platform where Jetty is also included.
The Jetty and Compress libraries are used by part of the JGit infra, but the EGit support in Eclipse doesn't need everything that JGit has.
For example, JGit also provides a collection of command-line programs (jgit init, jgit add etc.) which are not used in Eclipse. So you need to build the 'pgm' module from MAven, but that in itself isn't used by EGit which is the UI in Eclipse. Similarly, the JGit HTTP server is useful but not required for EGit operation.
I believe the archivers are used to extract out tools via the pgm module for 'jgit archive', which extracts out the contents of a branch and generates a Zip or TGZ file on the fly.
If you don't want (or need) the pgm module (and i'd suggest possibly also avoiding the iplog as well) then you can uncomment those from the list of modules in the pom.xml file. Removing the http.server (and http.test) along with the pgm modules will probably allow you to compile without needing the Jetty and Apache compress modules.
How to I do the following using Maven?
I downloaded the Admob android sdk from http://code.google.com/mobile/ads/download.html
I am trying to install the Jar and the java docs that come in the downloaded ZIP file
How do I install both the JAR and the Java docs into my repo? thanks
oh btw, the javadocs are not located in a JAR, they are stored in a multilevel folder format.
Thanks
If the javadocs are not available in a remote maven repo. You have to install the jars into your repo. Use the Install Plugin to perform this task. This is what you have to do.