Re: Creer un executable sur Mac OS X
"Laurent Forêt" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.general.french |
|---|---|
| Message-ID | <[email protected]> |
Inline On 3/23/06, Pierre-François HAUVETTE <[email protected]> wrote: > Bonjour à tous, > > Je suis nouveau sur la liste, et nouveau dans le developpement avec > netbeans... Bienvenu, plus on est de fou ... > Je suis en train de faire une appli à partir de la platform de netbeans5. Bonne idée ;) ! > Lorsque je lui demande de creer l'archive ZIP, il me creer un executable > windows, et un script bash. Comment ca, c'est nouveau ca ! Aurais je loupé quelque chose ? > Ma question: comment utiliser tout ceci pour faire un executable mac?? > Bref, un bundle? Un jar exécutable n'est il pas suffisant ? le build te génére un jar éxécutable dans dist avec le META-INF/manifest.mf tout bien renseigné si je ne m'abuse . > > PIF > Hercule ;) ! ps : POUR infos : ======================== 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 "yourApp.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. * If the classpath contains a folder of classes or resources, none of the classpath elements are copied to the dist folder. * 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.