jar

How to package all my dependency JAR libraries in 1 jar with NetBeans?

I want to build and develop with NetBeans. How can I make Clean + Build operation to generate a single .jar which includes - all my class files - all dependency jars in a "/lib/" folder inside the BIG.JAR I saw there are some scripts and xml-s in the NetBeans project, but could somebody tell me how to do it correctly. Best Regards, L...

bash command: search for class in file system of jars

I'm wanting to recursively search my maven repository (an n folder deep heirachy of jars) for a specific class inside an unknown jar. jar -tvf myJar.jar | grep ClassIWant.class works great for a known jar but I'm having problems piping/chaining bash commands to achieve a recursive search. Any hints much appreciated. Related: http://st...

Provide xsd schema in jar

Hello, I have written a little library. Now I want to let the user configure the lib with a xml file just like in spring. I have a xsd file to validate the xml config and therefore I have a few questions. Is it possible to achive this spring like configuration with a noNamespaceSchemaLocation? Where should I put the xsd in the lib in ord...

Getting at XML files inside Android.jar.res.drawable

As I've been researching another problem online, I've seen references to folks modifying the XML files contained inside the Android.jar.res.drawable folder and then copying them to their drawable folder for use in their project. But I can't open these files, instead I get the following error. Could not open the editor: org.eclipse.ui.P...

Can I update an Eclipse plugin project, which is simply a wrapper around a jar?

Greetings, I have a java project which I export as a jar. This java project also uses JNI. So far, the only method I could find to use this jar in an Eclipse plugin is to wrap it in an other eclipse plugin project, and add this jar wrapper plugin to dependencies of my actual plugin. I've wrestled with Eclipse's paths and dependency se...

Android: provide own implementations of java.* classes for jar

I have a .jar in my Android project which has many references and uses of the java.awt.* classes and other classes not available on Android. How can I provide my own implementations of these classes so that I can embed the unmodified .jar file (the only modification is being ran through dx) in my Android application and it will use my ow...

using IVY dependencies manager programmatically

Hey all i need help using IVY as dependencies manager my application need to load plug-ins at RUN-TIME means while the core application is running ,user can request for a new plug-in and install them , i wish to manage all installed plug-ins using the core application DB. i want to get a pom from my plug-ins server (or some othe...

Netbeans - adding resource files to jar file with Ant

I want add some resource files (non-code text-based files) to the jar file in a Java project using Netbeans 6.9, I'd expect using Ant. I had thought that this would be reasonably simple...but after quite a bit of searching I can't find how to do it..! Any pointers in the right direction? ...

How to execute jar file from a browser remotely?

Currently I have a browser extension that can run a Java jar library locally on the same machine. Since the CPU needed by the jar file is so huge, I would like to run the jar from an outside machine, means another separate machine just for handling the jar running. So then later my browser extension can send request/xml to this jar serv...

maven install file manually without version

How do I add a jar file to my local repository without appending the version number to the jar file? Lets say I have a jar file named abc.jar and run the following command, it will create abc-1.0.jar and if I bundle this artifact in a war file, the resulting file name will be abc-1.0.jar. If I remove the -Dversion, the command fails. If...

How to export GWT project classes into JAR file

Hi, I find it difficult to export classes from one project into JAR file, so that I could import it in another project. How do I try? I right-click on project in Package Explorer -> Export -> Java -> JAR file -> select all the packages I need. 'Export generated class files and resources' option is checked, other options are left unch...

Error in JAR file format. zip-style comment?

Hi folks, I am trying to make a java bean which will have a Clock.java file , Clockbean info file, Clock.mf file and 2 gif files . my class compiles fine but when i create a jar file , i get invalid manifest file when i create a jar using jar cfm Clock.jar HTPJB/Clock/Clock.class and similarly for the ClockBeanInfo.java(this class bas...

how or with what to run *.jar file

Possible Duplicate: How to run a JAR file hi how or with what to run *.jar file ? can i get any tool for this (free if there is....) thank's in advance ...

How to create a gwt.xml file for an external jar?

I have an external JAR signpost-core-1.2.1.1.jar (from http://code.google.com/p/oauth-signpost/), that I want to include into my Java GWT project. So I add this external JAR file to my build path in Eclipse and put theese imports to my Class: import oauth.signpost.basic.DefaultOAuthConsumer; import oauth.signpost.exception.OAuthCommuni...

Automatically version JAR's in Eclipse

Hi. Is there any functionality in Eclipse (similar to Visual Studio), to automatically tag the JAR's with increasing version? I googled for this first, but didn't find any specific answer. Thanks! ...

Is there any reason to *not* compress a JAR?

Netbeans has an option to compress JARs after building them. Is there any reason to not do this? Does it make the JVM start slower maybe? Why aren't JARs compressed automatically by all compilers without giving you the option? ...

problem with JAX-RS and foursquare

I don't know why I can't use the MultivaluedMap here, can someone help. Eclipse is giving me that it can't be resolved into a type import java.io.*; import java.net.HttpURLConnection; import java.net.URL; import java.util.Map; import javax.net.ssl.SSLContext; import com.sun.jersey.api.client.*; import com.sun.jersey.api.client.config....

How can I detect what version of JavaDB/Derby I'm using?

I use JavaDB (Derby) as an embedded database in my Java Swing application. I would like to detect and print the version of JavaDB I'm using. I have included derby.jar in my .jar-file for the application. How can I detect and print the version of my embedded JavaDB? ...

Multiple runnable classes inside JAR, how to run them?

Hello, I'm having problems with running multiple different classes from one JAR file. I know that I can set one of the classes inside JAR to by Main class that will be run after command java -jar myjar.jar, but what I want is something like: java -jar myjar.jar MyClass Is it possible to do this that way, or do I have to create multi...

is it possible to load jars-in-jars in JWS?

Hi, I have found MANY threads on packing all dependencies along with the project into one jar package, and it seems like there are many different ways to achieve this (oneJar, FatJar, Ant-build...) So cooking up my own recipe, I have (after quite some effort) managed to package the project I am working on. In this one jar file, there i...