Donate Share

One-JAR(TM)

Code

Programming Languages: Java

License: BSD License

Repositories

browse code, statistics cvs -d:pserver:anonymous@one-jar.cvs.sourceforge.net:/cvsroot/one-jar login

cvs -z3 -d:pserver:anonymous@one-jar.cvs.sourceforge.net:/cvsroot/one-jar co -P modulename

Show:

What's happening?

  • One-JAR(TM)

    simontuffs changed the public information on the One-JAR(TM) project.

    2009-12-21 17:39:51 UTC by simontuffs

  • ant task does not close files, leads to too many files open

    When building a jar with one-jar, the OnJarTask does not close the FileInputStream used to copy files into the ZipOutputStream. On certain systems (notably Ubuntu Linux) the default number of files allowed to be open for a normal user is 1024, so if the number of classes to be added to main.jar exceeds that number, the task will fail. Here is some sample output: jar-dna-docsync-client...

    2009-12-16 20:16:09 UTC by stevedonie

  • Followup: RE: Accessing directory inside a Jar

    Hi Simon, First of all thanks for your replay. I've been watching the code of your class loader, and i have learned a couple of things. the expansion wroked and I love your project. In case you need help with the documentation, tutorials or that kind of stuff, just let me know, I would be pleased to help! Thanks a lot Josef Sauter.

    2009-11-29 13:20:42 UTC by josefsauter

  • Followup: RE: Accessing directory inside a Jar

    Hi Josef: you can use the One-Jar-Expand and One-Jar-Expand-Dir manifest attributes in your one-jar archive to cause the JarClassLoader to expand files into the filesystem, at a known location. This is partially documented in the FAQ: http://one-jar.sourceforge.net/index.php?page=documents&file=faq and fully documented in the JarClassLoader.java source code load(String) method. Make sure the...

    2009-11-25 17:11:09 UTC by simontuffs

  • Accessing directory inside a Jar

    Hi, I have the following problem and i dont know how to get around it. One of the libraries i am using for my project, requires me to set the directory to the native libraries. Since I just want to have one jar! I want to have this libraries inside that Jar. But I have to set that directory, some thing normally like this: setNativeLibrariesDirectory(new...

    2009-11-21 17:08:51 UTC by josefsauter

  • MainClass.getPackage().getImplementationTitle() etc...

    In the current release 0.96 the methods MainClass.getPackage().getImplementationTitle() MainClass.getPackage().getImplementationVendor() MainClass.getPackage().getImplementationVersion() etc. do not return the information from main/main.jar correctly. Also all other jars loaded from lib do not correctly return the information contained in the jar file. I have attached a patched version from...

    2009-11-07 13:15:47 UTC by nklose08

  • Comment: Spring fails to find @Component bean with classpath scanning

    Problem is in JarClassLoader, it's "protected void loadByteCode(InputStream is, String jar, String tmp, Manifest man) throws IOException" method ignore directories, which Spring's component scan tries to find via call to "public Enumeration findResources(String name) throws IOException".

    2009-10-22 12:47:57 UTC by sslavic

  • Followup: RE: NoSuchMethodError

    I found the solution - the class was in the classpath twice - what else could it have been. :-) This happens when you are debugging projects from colleagues... Eddie.

    2009-09-22 09:54:35 UTC by eddie07

  • NoSuchMethodError

    Hi, I am trying to use one-jar for a new project (this is not the first time I am using it). After packaging everything I am able to start my application but I get the exception: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at...

    2009-09-21 15:50:20 UTC by eddie07

  • Comment: Spring fails to find @Component bean with classpath scanning

    +1.

    2009-09-08 14:08:41 UTC by sslavic

Our Numbers