Unable to get the required gwtopenlayers jars - gwt-openlayers

How can I get the jars for org.gwtopenmaps.demo.openlayers.client.basic and org.gwtopenmaps.demo.openlayers.client.components.store packages.I want to import AbstractExample and ShowcaseExampleStore classes into my java file.

You won't find any jars for that, as the showcase is only available as a war.
Just download the GWT-OpenLayers sourcecode at github extract what you want.

Related

How to use Gradle to download JAR dependencies on production site?

In the hope of finding the solution on Google as it seems a very general task, I've been trying to do this past few weeks but strangely I couldn't find anything!
What I'm doing:
I am writing an small application, It will be at most a 20KB JAR file in the end. However it has many dependencies, Hibernate and SLF4J to name a few. Directly including these dependencies with the jar file will make it 9Mb.
What is used:
Gradle is used as the build tool. the custom task fatJar creates the jar including all required dependency jar files from (the original) maven repository.
The problem
with my slow internet connection I'd rather not to directly include dependencies, but download these them on the server and not my local production site. What would be the Gradle task like to:
Read the dependencies from jar file
Download them (I know how to do it during Gradle build task).
Add them to class path
Add classpath defined in MANIFEST.mf too
run the jar, by main class defined in MANIFEST.mf
I've read gradle documentation over and over, but no help.

How to find from where sbt is picking repositories file information

I am having issues to make sbt to pick dependencies.
I want to know from where sbt is reading the repositories information. Means which file it is reading.
Can we get the file name and location.
I tried to see project/repositories
and .sbt/repositores
they are not having content which sbt is showing
Thanks
show resolvers and show externalResolvers will show all of the Maven and/or Ivy repositories that your dependencies can be pulled from.
show fullClasspath will show the full pathnames of all of the JARs on your classpath.

where's the jar file in apache commons math 3.3.2?

Just downloaded apache commons math 3.3.2 zip (source as opposed to binary) and extracted it. I want to add the jar to classpath in eclipse, but I can't find any file that looks right- only jar is called test. maybe that's it but I was expecting something more like math.commons.3.3.2.jar.
the jar needed is in the binary (rather than source) download
In eclipse, right click your project in the explorer. Click properties, and in the left column click "Javadoc location". Enter the URL "http://commons.apache.org/proper/commons-math/" then it should add all the packages & jars to your project, allowing you to import and reference them with
org.apache.commons.math.(whichever package you would like);

JRuby Classpath Issue with class dependencies

I have some compiled code inside my_project/java/classes. I also have all the libraries for that code in my_project/java/lib as jars.
For some reason I cannot get the jars inside that lib to be available so the java classes can access them.
Details: https://gist.github.com/anonymous/5219067
As you can see, I can interact with the library I'm trying to import. It definitely there, and it's on the classpath.
I've also tried without success several times now to try and build a 'fat' jar with all the dependencies bundled inside of it, using several ways, primarily Eclipse's Export with dependencies packaged inside the jar, and the jar index shows that it has all the dependencies as matlabcontrol/** included the InvokationException class just as the error shows.
When I imported the class it was giving me trouble with in the Program.java file, then upon calling that same Matlab.initialize() function, I got an error for a different class. So I'm wondering if I'm not building the classes correctly, so the "import 'matlabcontrol.*" aren't being resolved properly.

Jar inclusion Issue

How can i add external jars to my project before exporting the project so that the person about to use my code need not have to download those jars.He simply has to refer the jar i provided to run my project(Not using Maven).
Thanks
You might want to create a zip file containing
your_jar.jar
the libraries needed in a subdirectory lib
and add a manifest-classpath entry to point to those libraries
Manifest-Version: 1.0
Created-By: Hand
Main-Class: com.bitplan.gen.parser.m2java
Class-Path: lib/com.bitplan.smartgenerator-4.2.3.jar
After unzipping your code can be started with java -jar your_jar.jar

Resources