kandi background
Explore Kits

JarBundler | rich Ant task which will create a Mac OS X application | Plugin library

 by   UltraMixer Java Version: 3.3.0 License: Apache-2.0

 by   UltraMixer Java Version: 3.3.0 License: Apache-2.0

kandi X-RAY | JarBundler Summary

JarBundler is a Java library typically used in Plugin applications. JarBundler has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub, Maven.
JarBundler is a feature-rich Ant task which will create a macOS application bundle from a list of Jar files and a main class name. You can add an icon resource, set various macOS native look-and-feel bells and whistles, and maintain your application bundles as part of your normal build and release cycle. Project moved from
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • JarBundler has a low active ecosystem.
  • It has 57 star(s) with 11 fork(s). There are 12 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 1 open issues and 7 have been closed. On average issues are closed in 136 days. There are no pull requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of JarBundler is 3.3.0
JarBundler Support
Best in #Plugin
Average in #Plugin
JarBundler Support
Best in #Plugin
Average in #Plugin

quality kandi Quality

  • JarBundler has 0 bugs and 0 code smells.
JarBundler Quality
Best in #Plugin
Average in #Plugin
JarBundler Quality
Best in #Plugin
Average in #Plugin

securitySecurity

  • JarBundler has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • JarBundler code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
JarBundler Security
Best in #Plugin
Average in #Plugin
JarBundler Security
Best in #Plugin
Average in #Plugin

license License

  • JarBundler is licensed under the Apache-2.0 License. This license is Permissive.
  • Permissive licenses have the least restrictions, and you can use them in most projects.
JarBundler License
Best in #Plugin
Average in #Plugin
JarBundler License
Best in #Plugin
Average in #Plugin

buildReuse

  • JarBundler releases are available to install and integrate.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • It has 3693 lines of code, 233 functions and 28 files.
  • It has high code complexity. Code complexity directly impacts maintainability of the code.
JarBundler Reuse
Best in #Plugin
Average in #Plugin
JarBundler Reuse
Best in #Plugin
Average in #Plugin
Top functions reviewed by kandi - BETA

kandi has reviewed JarBundler and discovered the below as its top functions. This is intended to give you an instant insight into JarBundler implemented functionality, and help decide if they suit your requirements.

  • Executes the task
    • Build the DOM
    • Write the list of services
    • Copy the help book directory
  • Start the main application
    • Place a window
  • Add a configured service
    • Set the name of the executable files
      • Set a set of jars to use
        • Adds a configured document type
          • Adds a configured help book
            • Set the extension list
              • Adds a Java property
                • Adds a configured LSEnvironment

                  Get all kandi verified functions for this library.

                  Get all kandi verified functions for this library.

                  JarBundler Key Features

                  Massive code refactoring code formatting specify maven source encoding fix Ant build files run examples with a modern JavaApplicationStub (universalJavaApplicationStub)

                  Updates to docs and examples

                  Optional supportsAutomaticGraphicsSwitching attribute which defaults to true (for Plist key NSSupportsAutomaticGraphicsSwitching) PullRequest !14, thanks to Björn Kautler (@Vampire) for his contribution!

                  Update Ant from 1.9.3 to 1.9.14

                  Bugfix: JarBundler on Windows created a classpath with backward slashes which broke the Info.plist file on macOS \ in classpath are now replaced with /

                  Remove support for Java 1.3 if no jvmversion attribute is set, the default version is now 1.4+ removed deprecated growboxintrudes attribute removed deprecated liveresize attribute removed deprecated smalltabs attribute

                  Updated HelloWorld example to show JVM details, classpath and mainArgs

                  Support for Java 9+ in jvmversion attribute

                  JarBundler Examples and Code Snippets

                  See all related Code Snippets

                  Community Discussions

                  Trending Discussions on JarBundler
                  • Using Jarbundler with ant
                  Trending Discussions on JarBundler

                  QUESTION

                  Using Jarbundler with ant

                  Asked 2017-Jul-18 at 08:07

                  Im trying to use a jarbundler to create a .app file with ant. But I'm getting the following error:

                  taskdef class net.sourceforge.jarbundler.JarBundler cannot be found using the classloader AntClassLoader[/Users/Ida/NetBeansProjects/supernova/build/classes/lib/jarbundler-core-3.3.0.jar]

                  My build.xml looks like this:

                   <path id="classpath">
                          <fileset dir="dist/lib">
                              <include name="*.jar"/>
                          </fileset>
                      </path>
                  
                      <target name="clean">
                          <delete dir="build"/>
                      </target>
                  
                      <target name="compile">
                          <mkdir dir="build/classes"/>
                          <javac srcdir="src" destdir="build/classes">
                              <classpath>
                                  <path refid="classpath"/>
                                  <path location="${jar.dir}/${ant.project.name}.jar"/>
                              </classpath>
                          </javac>
                          <copy todir="build/classes">
                              <fileset dir="src" excludes="**/*.java"/>
                          </copy>
                      </target>
                  
                      <target name="dist">
                          <mkdir dir="build/classes/lib"/>
                          <copy flatten="true" todir="build/classes/lib" includeemptydirs="false">
                              <fileset dir="dist/lib">
                                  <include name="*.jar"/>
                              </fileset>
                          </copy>
                          <mkdir dir="build/jar"/>
                          <jar destfile="build/jar/SuperNova.jar" basedir="build/classes">
                              <fileset dir="dist/lib">
                                  <include name="*.jar"/>
                              </fileset>
                              <manifest>
                                  <attribute name="Main-Class" value="com.lumenradio.supernova.SuperNovaApp"/>
                              </manifest>
                          </jar>
                      </target>
                  
                      <target name="jar">
                          <mkdir dir="build/jar"/>
                          <jar destfile="build/jar/SuperNova.jar" basedir="build/classes">
                              <fileset dir="dist/lib">
                                  <include name="*.jar"/>
                              </fileset>
                              <manifest>
                                  <attribute name="Main-Class" value="com.lumenradio.supernova.SuperNovaApp"/>
                              </manifest>
                          </jar>
                      </target>
                  
                      <target name="run" depends="jar">
                          <java fork="true" classname="com.lumenradio.supernova.SuperNovaApp">
                              <classpath>
                                  <path refid="classpath"/>
                                  <path location="build/jar/SuperNova.jar"/>
                              </classpath>
                          </java>
                      </target>
                  
                  
                  
                      <target name='package-app'>
                          <taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler">
                              <classpath>
                                  <pathelement location="build/classes/lib/jarbundler-core-3.3.0.jar"/>
                              </classpath>
                          </taskdef>
                          <jarbundler dir="dist" name="SuperNova" 
                              mainclass="com.lumenradio.supernova.SuperNovaApp"
                              jar="build/jar/SuperNova.jar"/>
                      </target>
                  

                  Does anybody now why I'm getting this error and how I should solve it?

                  EDIT

                  Thanks for your help. I can now build the .app file but when I'm trying to run it I get the following error:

                  Error: Could not find or load main class com.lumenradio.supernova.SuperNovaApp

                  My target now looks like this:

                  <target name='package-app'>
                          <taskdef name="jarbundler" classpath="build/classes/lib/jarbundler-core-3.3.0.jar" 
                          classname="com.ultramixer.jarbundler.JarBundler"/>
                  
                          <jarbundler dir="dist" name="SuperNova" 
                              jar="build/jar/SuperNova.jar"
                              mainclass="com.lumenradio.supernova.SuperNovaApp"
                              icon="SuperNova copy.icns"
                              stubfile="universalJavaApplicationStub"
                              useJavaXKey="true"
                              jvmversion="1.7+"/>
                      </target>
                  

                  ANSWER

                  Answered 2017-Jul-13 at 18:26

                  I downloaded the jar to take a look, and I think the issue is that your classname is wrong. The JarBundler class is located in com.ultramixer.jarbundler.JarBundler, so try this instead:

                      <taskdef name="jarbundler" classname="com.ultramixer.jarbundler.JarBundler">
                          <classpath>
                              <pathelement location="build/classes/lib/jarbundler-core-3.3.0.jar"/>
                          </classpath>
                      </taskdef>
                  

                  Also, since you're only loading a single library, there's no need use a nested classpath instead of taskdef's classpath attribute, so you can simplify it somewhat:

                      <taskdef
                          name="jarbundler"
                          classname="com.ultramixer.jarbundler.JarBundler"
                          classpath="build/classes/lib/jarbundler-core-3.3.0.jar"
                      />
                  

                  Source https://stackoverflow.com/questions/45081471

                  Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                  Vulnerabilities

                  No vulnerabilities reported

                  Install JarBundler

                  Check the Releases page to get the latest distribution.
                  Run mvn clean install to build the project and push the JAR artifacts to your local maven repo. You can then use the SNAPSHOT version in your project. To skip the GPG signing process (for maven central release) add -Dgpg.skip to your commandline.

                  Support

                  Take a look at ./docs/index.html (Currently outdated. Sorry.).

                  Find more information at:

                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                  over 650 million Knowledge Items
                  Find more libraries
                  Reuse Solution Kits and Libraries Curated by Popular Use Cases
                  Explore Kits

                  Save this library and start creating your kit

                  Clone
                  • https://github.com/UltraMixer/JarBundler.git

                  • gh repo clone UltraMixer/JarBundler

                  • git@github.com:UltraMixer/JarBundler.git

                  Share this Page

                  share link

                  See Similar Libraries in

                  Consider Popular Plugin Libraries
                  Try Top Libraries by UltraMixer
                  Compare Plugin Libraries with Highest Support
                  Compare Plugin Libraries with Highest Quality
                  Compare Plugin Libraries with Highest Security
                  Compare Plugin Libraries with Permissive License
                  Compare Plugin Libraries with Highest Reuse
                  Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                  over 650 million Knowledge Items
                  Find more libraries
                  Reuse Solution Kits and Libraries Curated by Popular Use Cases
                  Explore Kits

                  Save this library and start creating your kit