Hi Mark, I've set up as a project, but my interest is in the single *.java file that I'm planning to implement on the production machine.
Basically I want the Netbeans IDE to do my debugging as I go along (which, as I last dabbled in Java some eight or nine years ago, I'm finding very useful). Thanks very much for the tips. - Dave 2009/12/14 MSB <[email protected]>: > > Morning Dave, > > Must admit that I use Netbeans all of the time and I just want to ask a > couple of questions to bve clear about what you are asking. > > Firstly, can I assume that you now have the IDE set up so that you can build > and test your project within Netbeans? > Secondly, have you created a project for your application? > > If the answer to both of these questions is 'yes' and all that you are > concerned about now is deploying the application, then take a look in the > dist sub-folder of your project folder. There, you will find a file called > readme.txt that explains what you need to do to distribute the application. > I have pasted into this message the contents of the readme file from a very > simple test application; > > ======================== > BUILD OUTPUT DESCRIPTION > ======================== > > When you build an Java application project that has a main class, the IDE > automatically copies all of the JAR > files on the projects classpath to your projects dist/lib folder. The IDE > also adds each of the JAR files to the Class-Path element in the application > JAR files manifest file (MANIFEST.MF). > > To run the project from the command line, go to the dist folder and > type the following: > > java -jar "rowstyle.jar" > > To distribute this project, zip up the dist folder (including the lib > folder) > and distribute the ZIP file. > > Notes: > > * If two JAR files on the project classpath have the same name, only the > first > JAR file is copied to the lib folder. > * Only JAR files are copied to the lib folder. > If the classpath contains other types of files or folders, none of the > classpath elements are copied to the lib folder. In such a case, > you need to copy the classpath elements to the lib folder manually after the > build. > * If a library on the projects classpath also has a Class-Path element > specified in the manifest,the content of the Class-Path element has to be on > the projects runtime path. > * To set a main class in a standard Java project, right-click the project > node > in the Projects window and choose Properties. Then click Run and enter the > class name in the Main Class field. Alternatively, you can manually type the > class name in the manifest Main-Class element. > > As Hannes indicated, I think that your problems are centered around the > -classpath; it 'tells' the runtime environment where to search for, find and > load the necessary resources at runtime (bet you knew that already, sorry). > > Yours > > Mark B > > > > Dave Coventry-4 wrote: >> >> Hannes, >> >> Thanks for taking the time to help. >> >> I'd already seen the link but I added the jar files to the Run tab. It >> was only when I added it to the Compile tab that it worked. >> >> I have a feeling I'm going to find it difficult to imp[lement on my >> Debian Production system. >> >> Thanks again, >> >> Dave >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > -- > View this message in context: > http://old.nabble.com/Installing-the-POI-jars-for-Netbeans-tp26765779p26773995.html > Sent from the POI - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
