Re: Netbeans JAR file execution from command line



"Lion-O" <nosp@xxxxxxxxxxxxxx> wrote in message
news:slrnek1udu.5cb.nosp@xxxxxxxxxxxxxxxxxxxxxx
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.

In that case I likely just grabbed the wrong JAR file (and because it worked
on my system, I was thrown off)

--
LTP

:)


.



Relevant Pages

  • Re: Netbeans 5.5 & JWSDP 2 with .xml.bind import problems
    ... When I try to run the ant build script I get a message saying ... The same happens if I use Netbeans and create a new project based ... I'm generally a little confused about which jar files need to be ... around with the library manager in netbeans to add new libraries and ...
    (comp.lang.java.programmer)
  • Re: Packages & JARs
    ... > more specifically while using the Netbeans IDE. ... > classes into a JAR and executed it from there, it also used a package ... Reason I ask is because I have downloaded JAR files ...
    (comp.lang.java.help)
  • run applet directly from browser
    ... i have a applet program in netbeans, i imported two jar files, and the ... project worked fine when i run it from netbeans. ... The exact problem arised when i tried to deploy it to html file using ...
    (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 ... The manifest file in the jar defines a classpath which includes optional ...
    (comp.lang.java.help)
  • Deploying Crystal Enterprise examples with Netbeans
    ... These are found in the WEB-INF\lib directory, in jar files. ... Note that I can't find these Tomcat logs: there's a "dummy" log in the ... Tomcat log directory inside Netbeans, and I can't find any other file ... Crystal Reports Server XI Examples. ...
    (comp.lang.java.programmer)