Re: Netbeans JAR file execution from command line



How can I prevent a compatibility problem? I like to send people JAR
files to execute, and don't want them to have to have netbeans
installed and certainly don't want them to have to copy files from
netbeans to java class path.

Which NB version?

Normally NetBeans will put the compiled jar and all libraries it might
need in the 'dist' subdirectory of your projects home. Extra libraries
are stored in the dist/lib subdirectory. Also refer to the 'README.TXT'
file which explains as much.

The manifest file in the jar defines a classpath which includes optional
jar files in the lib subdirectory.

If those files aren't there then I wonder if your project has been
properly setup.

--
Groetjes, Peter

..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc

.



Relevant Pages

  • Need a much simpler NetBeans tutorial!
    ... I have NetBeans IDE 5.5 and I am trying to learn how to write beans ... Load the JAR file. ... Open the Palette Manager for Swing/AWT components by selecting ...
    (comp.lang.java.help)
  • Re: JAR files not working on macs
    ... to submit applicant evaluations to a centralized database. ... the form and created in Java 1.6 and Netbeans 5.5. ... I've packaged it up in a JAR ... what changes I have to make to my jar file to make it work on a mac. ...
    (comp.lang.java.programmer)
  • Re: Netbeans JAR file execution from command line
    ... netbeans to java class path. ... need in the 'dist' subdirectory of your projects home. ... Extra libraries ... jar files in the lib subdirectory. ...
    (comp.lang.java.help)
  • Re: NetBeans how to
    ... folder that was being picked up. ... Does it refer specifically to NetBeans? ... (is the jar in your CLASSPATH). ... > Are you compiling from NetBeans? ...
    (comp.lang.java.softwaretools)
  • Re: Applet deployment problem
    ... Your applet depends on PieDataset. ... Have Netbeans create a jar (with all ... You can list the contents of the jar with the command ... and added arhive in the html file. ...
    (comp.lang.java.programmer)