If you can provide step by step instructions with as much details as possible, this is where you file your issue: https://issues.apache.org/jira/projects/NETBEANS
Gj On Wed, Sep 26, 2018 at 1:56 PM, Peter Hull <[email protected]> wrote: > Thanks as always Geertjan! > > It seems that, if you export a package, NB won't find any main classes > in it. For example if I change the module-info.java in the > com.toy.anagrams module in your examples to: > module com.toy.anagrams { > requires java.base; > requires java.desktop; > requires java.logging; > requires com.wordlibrary; > exports com.toy.anagrams.ui; // Add this! > } > Then browsing for main classes in the project properties won't present > the main class as a choice. > > Pete > On Wed, Sep 26, 2018 at 12:37 PM Geertjan Wielenga > <[email protected]> wrote: > > > > Also, see these complete examples: > > > > https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples > > > > Gj > > > > On Wed, Sep 26, 2018 at 1:34 PM, Geertjan Wielenga < > [email protected]> wrote: > >> > >> https://www.youtube.com/watch?v=jSqqLHCP9ms > >> > >> Gj > >> > >> On Wed, Sep 26, 2018 at 1:32 PM, Peter Hull <[email protected]> > wrote: > >>> > >>> I created a new Java modular project (NB 9.0, openjdk 11) but I was > >>> unable to run it because no main class was specified, and it couldn't > >>> find any for me to choose from, in Browse Main Classes it said <No > >>> main classes found>. > >>> I set the main.class property in nbproject/project.properties and now > >>> NB can run my main class (press F6) however the JAR does not contain > >>> the Main-Class in its Manifest. > >>> Is this normal/expected? (from reading about Java modules I'm not > >>> clear on whether they should be in executable jars or not) > >>> Thanks > >>> Peter > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [email protected] > >>> For additional commands, e-mail: [email protected] > >>> > >>> For further information about the NetBeans mailing lists, visit: > >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >>> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >
