Re: Java programs run in Netbeans but not outside

2020-08-15 Thread Mark Eggers
I do something similar and then package up everything as a zip file or
tar.gz with the assembly plugin.

Something like this:



org.apache.maven.plugins
maven-assembly-plugin
2.6

src/main/assembly/assembly.xml



And the assembly.xml file (leaving out the schema for brevity):


bin

tar.gz
zip

false
false


target


*.jar
lib/





Then, mvn package followed by mvn assembly:single gives me a tar.gz and
a zip file containing the correct structure. I can ship that around,
unpack it, and run the program from the command line with:

java -jar ./jarname.jar

Works for me.

. . . just my two cents
/mde/

On 8/15/2020 9:07 PM, Bradley Willcott wrote:
> Hi Bayless,
> 
> Are you using an Ant build or Maven?  If Maven, have a look at
> "maven-jar-plugin" and "maven-dependency-plugin".  Here is an example of
> both from one of my projects:
> 
>     
>     
>     
> org.apache.maven.plugins
> maven-jar-plugin
>     3.2.0
>     
>     
>     
> true
> libs/ <<===  Important
> org.markdownj.cli.Main
> true
> true
>     
>     
>     
>     
>     
> org.apache.maven.plugins
> maven-dependency-plugin
>     3.1.1
>     
>     
>     copy-dependencies
>     prepare-package
>     
> copy-dependencies
>     
>     
> runtime
> test
>     
>     ${project.build.directory}/libs    
> <<===  Important
>     
>     
>     
>     
>     
>     
>     
> 
> Of course, the "<<===  Important" text is not part of the POM text.
> 
> All you need to do then is copy the 'libs' directory to the same
> directory you install the 'jar' file to, and then it should work a
> charm.  Does for me.
> 
> Brad.
> 
> On 15/8/20 8:13 pm, Bayless Kirtley wrote:
>> I recently upgraded from Netbeans 8.1 to 11.1  and due to problems
>> with java 8 I also went to 11. I have been working on some existing
>> projects and everything works fine from within Netbeans. When I try to
>> deploy though, it seems that Netbeans is no longer including the lib
>> directory in the dist directory and the programs will not run. Even
>> when I just replace the jar file in the dist directory, leaving the
>> lib directory as it was, the programs still will not run. What do I
>> need to do to correct this situation?
>>
>> Bayless
>>
>>
>>
> 

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.openejb.client.RemoteInitialContexFactory

2020-08-15 Thread Anwar AliKhan
Hi,

When I run the java program like this it works fine.
java -cp
$OPENEJB_HOME/lib/openejb-client-3.1.4.jar:$OPENEJB_HOME/lib/jakarta.ejb-api-3.2.4.jar:.
org.acme.HelloClient
Hello World

But When I try to run same in Netbeans I get this error. (see bottom of
email)
Even though I do not have compile error and the classes are loaded  via
maven dependencies.

import java.util.Properties;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.rmi.PortableRemoteObject;
import org.acme.Hello;
import org.apache.openejb.client.RemoteInitialContextFactory;;  *// UNUSED
IMPORT WARNING*

public class HelloClient {

public static void main(String[] args) throws Exception
{
Properties props = new Properties();

props.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.openejb.client.RemoteInitialContexFactory");
props.put(Context.PROVIDER_URL,"ejbd://127.0.0.1:4201");
Context ctx = new InitialContext(props);
Object ref = ctx.lookup("HelloBeanRemote");
Hello h = (Hello)PortableRemoteObject.narrow(ref,Hello.class);
String result = h.sayHello();
System.out.println(result);
}
}

--- exec-maven-plugin:1.5.0:exec (default-cli) @ EJBHello ---
Exception in thread "main" javax.naming.NoInitialContextException: Cannot
instantiate class: org.apache.openejb.client.RemoteInitialContexFactory
[Root exception is java.lang.ClassNotFoundException:
org.apache.openejb.client.RemoteInitialContexFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
at javax.naming.InitialContext.init(InitialContext.java:244)
at javax.naming.InitialContext.(InitialContext.java:216)
at com.mycompany.ejbhello.HelloClient.main(HelloClient.java:28)
Caused by: java.lang.ClassNotFoundException:
org.apache.openejb.client.RemoteInitialContexFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:91)
at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
... 4 more
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1
(Exit value: 1)
at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)


[platform] StatusBar and ShowOnlyEditor

2020-08-15 Thread Patrik Karlström
Activating ShowOnlyEditor in a platform application hides the status bar.

Is it possible to keep the status bar visible even when ShowOnlyEditor is
activated?

/Patrik


Re: JavaFx maven with FXML

2020-08-15 Thread HRH
 Ok, thanks for the link. I reported this as a bug (here is the link: 
[NETBEANS-4718] The default package for generated FXML file in maven based 
JavaFx application is not detected - ASF JIRA)

| 
| 
|  | 
[NETBEANS-4718] The default package for generated FXML file in maven bas...


 |

 |

 |




On Sunday, August 16, 2020, 7:24:19 AM GMT+4:30, Ernie Rael 
 wrote:  
 
 ApacheNetbeans uses jira

    https://issues.apache.org/jira/projects/NETBEANS/issues

the bugzilla is historical bugs before the move to Apache.

-ernie

On 8/15/2020 7:41 PM, HRH wrote:
> Ernie, I tried to report the bug, unfortuenately, the bugzilla 
> reporting page at Log in to Apache NetBeans Bugzilla 
> 
>
>
>     
>
>
>    Log in to Apache NetBeans Bugzilla
>
> 
> doesn't accept my login credentials as valid (which works fine when I 
> logging to apache NetBeans) to report a bug. Perhaps, someone valid 
> credentials can report the bug mentioned in this thread.
>
> Thanks
>
>
>
> On Saturday, August 15, 2020, 10:52:13 PM GMT+4:30, HRH 
>  wrote:
>
>
>
> ** This is a bug; normal operations with default options should work. **
>
> Agreed. I will report the bug.
> On Saturday, August 15, 2020, 10:24:20 PM GMT+4:30, Ernie Rael 
>  wrote:
>
>
> This is a bug; normal operations with default options should work.
>
> It guess this NewFile operation isn't fully mavenized in a jfx context
> (or some such).
>
> -ernie
>
> On 8/14/2020 8:59 PM, HRH wrote:
> > Hello Ernie,
> >
> > ** How are these files created (the ones that have to be moved?) **
> > Here are the steps to create the FXML file that needs to be moved:
> >
> > 1- File->New Project->Java with Maven->FXML JavaFx Maven Archetype
> > (Gluon)-> to create the project.
> > 2- File ->New File -> JavaFX->Empty FXML->->Use Java
> > Controller->...->Finish.
> >
> > The resulting FXML file by default is placed in the
> > ${Project}\src\main\resources\fxml directory. Albeit, in step 2 above,
> > it does give you an option to put it in the org.opejfx.${Project}, so
> > one doesn't have to do the manual move. However, that would be a lucky
> > guess if you are new to Netbean JavaFx. As I indicated earlier if one
> > doesn't need to use FXML or just uses the Ant built for JavaFx then,
> > there aren't any issues.
> >
> > If you feel this ought to be reported as a bug, please let me know and
> > I will file a report.
> >
> > Thanks,
> > Anthony.
> >
> > On Saturday, August 15, 2020, 2:06:17 AM GMT+4:30, Ernie Rael
> > mailto:err...@raelity.com>> wrote:
> >
> >
> > I didn't completely follow this. How are these files created (the ones
> > that have to be moved?) If they come from standard NetBeans operations,
> > then there is a bug. Please file it and either post the issue number
> > here, or add me as a watcher. Thanks.
> >
> > -ernie
> >
> > On 8/14/2020 11:11 AM, HRH wrote:
> > > Thanks, that would work.
> > >
> > > On Friday, August 14, 2020, 10:28:50 PM GMT+4:30, Geertjan Wielenga
> > > mailto:geert...@apache.org> 
> >> wrote:
> > >
> > >
> > >
> > > To create a new FXML file, just copy one of the existing ones in the
> > > project into the same place where the original FXML file is found.
> > >
> > > Gj
> > >
> > > On Fri, 14 Aug 2020 at 19:51, HRH  
> > >
> > >  
>  > >
> > >
> > >
> > >    Thanks Geertjan,
> > >
> > >    Indeed, I used one of those Gluon OpenJFX projects from the New
> > >    Project wizard. The one that uses FXML (not the simple one),
> > >    however, the manual file transfer needed. Hopefully, the next
> > >    release of Netbeans can automate this file transfer, in order to
> > >    eliminate the manual intervention. Please note that if one chooses
> > >    not to build the JavaFx with FXML, then there is no issue and
> > >    everything works fine.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >    On Friday, August 14, 2020, 7:32:50 PM GMT+4:30, Geertjan Wielenga
> > >    mailto:geert...@apache.org> 
> >
> >  
>  >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >    The two Gluon OpenJFX projects in the New Project wizard run and
> > >    debug out of the box, no changes needed.
> > >
> > >    Gj
> > >
> > >    On Fri, 14 Aug 2020 at 16:41, HRH  
> > >> 
> wrote:
> > >
> > >        Hi,
> > >
> > >        I just noticed (the hard way) the generated Empty FXML by the
> > >        IDE is stored in the ${Proje

Re: Java programs run in Netbeans but not outside

2020-08-15 Thread Bradley Willcott

Hi Bayless,

Are you using an Ant build or Maven?  If Maven, have a look at 
"maven-jar-plugin" and "maven-dependency-plugin".  Here is an example of 
both from one of my projects:


    
    
    
org.apache.maven.plugins
maven-jar-plugin
    3.2.0
    
    
    
true
libs/ <<===  Important
org.markdownj.cli.Main
true
true
    
    
    
    
    
org.apache.maven.plugins
maven-dependency-plugin
    3.1.1
    
    
    copy-dependencies
    prepare-package
    
copy-dependencies
    
    
runtime
test
    
    ${project.build.directory}/libs     
<<===  Important

    
    
    
    
    
    
    

Of course, the "<<===  Important" text is not part of the POM text.

All you need to do then is copy the 'libs' directory to the same 
directory you install the 'jar' file to, and then it should work a 
charm.  Does for me.


Brad.

On 15/8/20 8:13 pm, Bayless Kirtley wrote:
I recently upgraded from Netbeans 8.1 to 11.1  and due to problems 
with java 8 I also went to 11. I have been working on some existing 
projects and everything works fine from within Netbeans. When I try to 
deploy though, it seems that Netbeans is no longer including the lib 
directory in the dist directory and the programs will not run. Even 
when I just replace the jar file in the dist directory, leaving the 
lib directory as it was, the programs still will not run. What do I 
need to do to correct this situation?


Bayless





-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: JavaFx maven with FXML

2020-08-15 Thread Ernie Rael

ApacheNetbeans uses jira

   https://issues.apache.org/jira/projects/NETBEANS/issues

the bugzilla is historical bugs before the move to Apache.

-ernie

On 8/15/2020 7:41 PM, HRH wrote:
Ernie, I tried to report the bug, unfortuenately, the bugzilla 
reporting page at Log in to Apache NetBeans Bugzilla 







Log in to Apache NetBeans Bugzilla


doesn't accept my login credentials as valid (which works fine when I 
logging to apache NetBeans) to report a bug. Perhaps, someone valid 
credentials can report the bug mentioned in this thread.


Thanks



On Saturday, August 15, 2020, 10:52:13 PM GMT+4:30, HRH 
 wrote:




** This is a bug; normal operations with default options should work. **

Agreed. I will report the bug.
On Saturday, August 15, 2020, 10:24:20 PM GMT+4:30, Ernie Rael 
 wrote:



This is a bug; normal operations with default options should work.

It guess this NewFile operation isn't fully mavenized in a jfx context
(or some such).

-ernie

On 8/14/2020 8:59 PM, HRH wrote:
> Hello Ernie,
>
> ** How are these files created (the ones that have to be moved?) **
> Here are the steps to create the FXML file that needs to be moved:
>
> 1- File->New Project->Java with Maven->FXML JavaFx Maven Archetype
> (Gluon)-> to create the project.
> 2- File ->New File -> JavaFX->Empty FXML->->Use Java
> Controller->...->Finish.
>
> The resulting FXML file by default is placed in the
> ${Project}\src\main\resources\fxml directory. Albeit, in step 2 above,
> it does give you an option to put it in the org.opejfx.${Project}, so
> one doesn't have to do the manual move. However, that would be a lucky
> guess if you are new to Netbean JavaFx. As I indicated earlier if one
> doesn't need to use FXML or just uses the Ant built for JavaFx then,
> there aren't any issues.
>
> If you feel this ought to be reported as a bug, please let me know and
> I will file a report.
>
> Thanks,
> Anthony.
>
> On Saturday, August 15, 2020, 2:06:17 AM GMT+4:30, Ernie Rael
> mailto:err...@raelity.com>> wrote:
>
>
> I didn't completely follow this. How are these files created (the ones
> that have to be moved?) If they come from standard NetBeans operations,
> then there is a bug. Please file it and either post the issue number
> here, or add me as a watcher. Thanks.
>
> -ernie
>
> On 8/14/2020 11:11 AM, HRH wrote:
> > Thanks, that would work.
> >
> > On Friday, August 14, 2020, 10:28:50 PM GMT+4:30, Geertjan Wielenga
> > mailto:geert...@apache.org> 
>> wrote:

> >
> >
> >
> > To create a new FXML file, just copy one of the existing ones in the
> > project into the same place where the original FXML file is found.
> >
> > Gj
> >
> > On Fri, 14 Aug 2020 at 19:51, HRH 

> >
> >  
 >
> >
> >
> >    Thanks Geertjan,
> >
> >    Indeed, I used one of those Gluon OpenJFX projects from the New
> >    Project wizard. The one that uses FXML (not the simple one),
> >    however, the manual file transfer needed. Hopefully, the next
> >    release of Netbeans can automate this file transfer, in order to
> >    eliminate the manual intervention. Please note that if one chooses
> >    not to build the JavaFx with FXML, then there is no issue and
> >    everything works fine.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >    On Friday, August 14, 2020, 7:32:50 PM GMT+4:30, Geertjan Wielenga
> >    mailto:geert...@apache.org> 
>
>  

> >
> >
> >
> >
> >
> >
> >
> >
> >
> >    The two Gluon OpenJFX projects in the New Project wizard run and
> >    debug out of the box, no changes needed.
> >
> >    Gj
> >
> >    On Fri, 14 Aug 2020 at 16:41, HRH 
> >> 
wrote:

> >
> >        Hi,
> >
> >        I just noticed (the hard way) the generated Empty FXML by the
> >        IDE is stored in the ${Project}\src\main\resources\fxml
> >        directory and unless this is manually copied or moved to
> > src\main\resources\org\openjfx\${Project} folder the app will
> >        fail at the run time.
>
> >
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 

> >
> For additional commands, e-mail: users-h...@netbeans.apache.org 

> 

Make controller option missing

2020-08-15 Thread HRH
Hi,
In the Ant-based JavaFx project, there is a nifty option "Make controller" when 
right-clicking on the .fxml file. This will update the associated controller 
with the .fxml once changes made to the .fxml file. In the maven based JavaFx 
project, this option is missing or at least I can't find it by right-clicking 
on the .fxml file. Any idea?
Thanks


Re: JavaFx maven with FXML

2020-08-15 Thread HRH
 Ernie, I tried to report the bug, unfortuenately, the bugzilla reporting page 
at Log in to Apache NetBeans Bugzilla 


| 
| 
|  | 
Log in to Apache NetBeans Bugzilla


 |

 |

 |

doesn't accept my login credentials as valid (which works fine when I logging 
to apache NetBeans) to report a bug. Perhaps, someone valid credentials can 
report the bug mentioned in this thread.
Thanks



On Saturday, August 15, 2020, 10:52:13 PM GMT+4:30, HRH 
 wrote:  
 
  
** This is a bug; normal operations with default options should work. **
Agreed. I will report the bug.
On Saturday, August 15, 2020, 10:24:20 PM GMT+4:30, Ernie Rael 
 wrote:  
 
 This is a bug; normal operations with default options should work.

It guess this NewFile operation isn't fully mavenized in a jfx context 
(or some such).

-ernie

On 8/14/2020 8:59 PM, HRH wrote:
> Hello Ernie,
>
> ** How are these files created (the ones that have to be moved?) **
> Here are the steps to create the FXML file that needs to be moved:
>
> 1- File->New Project->Java with Maven->FXML JavaFx Maven Archetype 
> (Gluon)-> to create the project.
> 2- File ->New File -> JavaFX->Empty FXML->->Use Java 
> Controller->...->Finish.
>
> The resulting FXML file by default is placed in the 
> ${Project}\src\main\resources\fxml directory. Albeit, in step 2 above, 
> it does give you an option to put it in the org.opejfx.${Project}, so 
> one doesn't have to do the manual move. However, that would be a lucky 
> guess if you are new to Netbean JavaFx. As I indicated earlier if one 
> doesn't need to use FXML or just uses the Ant built for JavaFx then, 
> there aren't any issues.
>
> If you feel this ought to be reported as a bug, please let me know and 
> I will file a report.
>
> Thanks,
> Anthony.
>
> On Saturday, August 15, 2020, 2:06:17 AM GMT+4:30, Ernie Rael 
>  wrote:
>
>
> I didn't completely follow this. How are these files created (the ones
> that have to be moved?) If they come from standard NetBeans operations,
> then there is a bug. Please file it and either post the issue number
> here, or add me as a watcher. Thanks.
>
> -ernie
>
> On 8/14/2020 11:11 AM, HRH wrote:
> > Thanks, that would work.
> >
> > On Friday, August 14, 2020, 10:28:50 PM GMT+4:30, Geertjan Wielenga
> > mailto:geert...@apache.org>> wrote:
> >
> >
> >
> > To create a new FXML file, just copy one of the existing ones in the
> > project into the same place where the original FXML file is found.
> >
> > Gj
> >
> > On Fri, 14 Aug 2020 at 19:51, HRH  
> > >> wrote:
> >
> >
> >
> >    Thanks Geertjan,
> >
> >    Indeed, I used one of those Gluon OpenJFX projects from the New
> >    Project wizard. The one that uses FXML (not the simple one),
> >    however, the manual file transfer needed. Hopefully, the next
> >    release of Netbeans can automate this file transfer, in order to
> >    eliminate the manual intervention. Please note that if one chooses
> >    not to build the JavaFx with FXML, then there is no issue and
> >    everything works fine.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >    On Friday, August 14, 2020, 7:32:50 PM GMT+4:30, Geertjan Wielenga
> >    mailto:geert...@apache.org> 
> >> wrote:
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >    The two Gluon OpenJFX projects in the New Project wizard run and
> >    debug out of the box, no changes needed.
> >
> >    Gj
> >
> >    On Fri, 14 Aug 2020 at 16:41, HRH  > wrote:
> >
> >        Hi,
> >
> >        I just noticed (the hard way) the generated Empty FXML by the
> >        IDE is stored in the ${Project}\src\main\resources\fxml
> >        directory and unless this is manually copied or moved to
> >        src\main\resources\org\openjfx\${Project} folder the app will
> >        fail at the run time.
>
> >
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> 
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> 
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: FXML import statement issue in Maven based project

2020-08-15 Thread Chuck Davis
I think all you need is the requires phrase.

On Sat, Aug 15, 2020 at 6:42 PM HRH  wrote:

> Thanks, that was the missing part that caused the error. Do I need to
> revise the statement that begins with the "opens" directive? I took the
> liberty and changed it. The module file looks as follow:
>
> module org.openjfx.fxmavenfxml {
> requires javafx.controls;
> requires javafx.fxml;
> requires javafx.base;
> requires javafx.graphics;
> requires java.base;
> requires javafx.web;
>
>// opens org.openjfx.fxmavenfxml to javafx.fxml;
> opens org.openjfx.fxmavenfxml to javafx.web;
> exports org.openjfx.fxmavenfxml;
> }
>
> Should I keep the new "opens org.openjfx.fxmavenfxml to javafx.web;"?
>
> Thanks again
> On Sunday, August 16, 2020, 12:49:46 AM GMT+4:30, Chuck Davis <
> cjgun...@gmail.com> wrote:
>
>
> Did you revise the module file?
>
> On Sat, Aug 15, 2020 at 11:34 AM HRH  wrote:
>
> Hi,
>
> I had an FXML file that was working fine until I added an UI component
> "WebView". The  in the FXML file
> marked as an error because somehow the javafx.web from the JavaFx\Lib is
> not seen. I have already modified the POM file to include this dependency
> as follow alas the FXMLLoader.load() failes to load the FXML file and it
> throws a runtime exception:
>
>  
> 
> org.openjfx
> javafx-controls
> 14
> 
> 
> org.openjfx
> javafx-fxml
> 14
> 
> 
> org.openjfx
> javafx-web
> 14
> 
> 
>
> Any insight as why the  cause an error?
>
> Thanks in advance.
>
>


Re: FXML import statement issue in Maven based project

2020-08-15 Thread HRH
 Thanks, that was the missing part that caused the error. Do I need to revise 
the statement that begins with the "opens" directive? I took the liberty and 
changed it. The module file looks as follow:
module org.openjfx.fxmavenfxml {
    requires javafx.controls;
    requires javafx.fxml;
    requires javafx.base;
    requires javafx.graphics;
    requires java.base;
    requires javafx.web;

   // opens org.openjfx.fxmavenfxml to javafx.fxml;
    opens org.openjfx.fxmavenfxml to javafx.web;
    exports org.openjfx.fxmavenfxml;
}
Should I keep the new "opens org.openjfx.fxmavenfxml to javafx.web;"?
Thanks again
On Sunday, August 16, 2020, 12:49:46 AM GMT+4:30, Chuck Davis 
 wrote:  
 
 Did you revise the module file?

On Sat, Aug 15, 2020 at 11:34 AM HRH  wrote:

Hi,
I had an FXML file that was working fine until I added an UI component 
"WebView". The  in the FXML file marked as 
an error because somehow the javafx.web from the JavaFx\Lib is not seen. I have 
already modified the POM file to include this dependency as follow alas the 
FXMLLoader.load() failes to load the FXML file and it throws a runtime 
exception:
 
    
    org.openjfx
    javafx-controls
    14
    
    
    org.openjfx
    javafx-fxml
    14
    
    
    org.openjfx
    javafx-web
    14
    
    
Any insight as why the  cause an error?
Thanks in advance.


  

[RCP] How to add a Table or other components in an Editor for a custom file type

2020-08-15 Thread Sam K. Raju
Hi,

I am developing an application using Netbeans RCP. I registered a new file
type with extension 'api' and mime-type 'text/x-api' and added Editor and
Editor Library 2 to my application dependency.

I created an explore view with an action to open a new file "test.api". It
opens my file in an editor with a toolbar with default actions like
indentation, highlight, macro, etc.

I want to add a splitter to the window where the editor is shown in the
upper part and a table in the lower part of the splitter. What I want to
achieve is something similar to the SQL file editor where you write SQL
queries in the editor and the result of the SQL query is shown in the table
in the same window.

Could someone please help me with this?

-- 
Thanks and regards,
Sam K. Raju


Re: FXML import statement issue in Maven based project

2020-08-15 Thread Chuck Davis
Did you revise the module file?

On Sat, Aug 15, 2020 at 11:34 AM HRH  wrote:

> Hi,
>
> I had an FXML file that was working fine until I added an UI component
> "WebView". The  in the FXML file
> marked as an error because somehow the javafx.web from the JavaFx\Lib is
> not seen. I have already modified the POM file to include this dependency
> as follow alas the FXMLLoader.load() failes to load the FXML file and it
> throws a runtime exception:
>
>  
> 
> org.openjfx
> javafx-controls
> 14
> 
> 
> org.openjfx
> javafx-fxml
> 14
> 
> 
> org.openjfx
> javafx-web
> 14
> 
> 
>
> Any insight as why the  cause an error?
>
> Thanks in advance.
>
>


FXML import statement issue in Maven based project

2020-08-15 Thread HRH
Hi,
I had an FXML file that was working fine until I added an UI component 
"WebView". The  in the FXML file marked as 
an error because somehow the javafx.web from the JavaFx\Lib is not seen. I have 
already modified the POM file to include this dependency as follow alas the 
FXMLLoader.load() failes to load the FXML file and it throws a runtime 
exception:
 
    
    org.openjfx
    javafx-controls
    14
    
    
    org.openjfx
    javafx-fxml
    14
    
    
    org.openjfx
    javafx-web
    14
    
    
Any insight as why the  cause an error?
Thanks in advance.



Re: JavaFx maven with FXML

2020-08-15 Thread HRH
 
** This is a bug; normal operations with default options should work. **
Agreed. I will report the bug.
On Saturday, August 15, 2020, 10:24:20 PM GMT+4:30, Ernie Rael 
 wrote:  
 
 This is a bug; normal operations with default options should work.

It guess this NewFile operation isn't fully mavenized in a jfx context 
(or some such).

-ernie

On 8/14/2020 8:59 PM, HRH wrote:
> Hello Ernie,
>
> ** How are these files created (the ones that have to be moved?) **
> Here are the steps to create the FXML file that needs to be moved:
>
> 1- File->New Project->Java with Maven->FXML JavaFx Maven Archetype 
> (Gluon)-> to create the project.
> 2- File ->New File -> JavaFX->Empty FXML->->Use Java 
> Controller->...->Finish.
>
> The resulting FXML file by default is placed in the 
> ${Project}\src\main\resources\fxml directory. Albeit, in step 2 above, 
> it does give you an option to put it in the org.opejfx.${Project}, so 
> one doesn't have to do the manual move. However, that would be a lucky 
> guess if you are new to Netbean JavaFx. As I indicated earlier if one 
> doesn't need to use FXML or just uses the Ant built for JavaFx then, 
> there aren't any issues.
>
> If you feel this ought to be reported as a bug, please let me know and 
> I will file a report.
>
> Thanks,
> Anthony.
>
> On Saturday, August 15, 2020, 2:06:17 AM GMT+4:30, Ernie Rael 
>  wrote:
>
>
> I didn't completely follow this. How are these files created (the ones
> that have to be moved?) If they come from standard NetBeans operations,
> then there is a bug. Please file it and either post the issue number
> here, or add me as a watcher. Thanks.
>
> -ernie
>
> On 8/14/2020 11:11 AM, HRH wrote:
> > Thanks, that would work.
> >
> > On Friday, August 14, 2020, 10:28:50 PM GMT+4:30, Geertjan Wielenga
> > mailto:geert...@apache.org>> wrote:
> >
> >
> >
> > To create a new FXML file, just copy one of the existing ones in the
> > project into the same place where the original FXML file is found.
> >
> > Gj
> >
> > On Fri, 14 Aug 2020 at 19:51, HRH  
> > >> wrote:
> >
> >
> >
> >    Thanks Geertjan,
> >
> >    Indeed, I used one of those Gluon OpenJFX projects from the New
> >    Project wizard. The one that uses FXML (not the simple one),
> >    however, the manual file transfer needed. Hopefully, the next
> >    release of Netbeans can automate this file transfer, in order to
> >    eliminate the manual intervention. Please note that if one chooses
> >    not to build the JavaFx with FXML, then there is no issue and
> >    everything works fine.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >    On Friday, August 14, 2020, 7:32:50 PM GMT+4:30, Geertjan Wielenga
> >    mailto:geert...@apache.org> 
> >> wrote:
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >    The two Gluon OpenJFX projects in the New Project wizard run and
> >    debug out of the box, no changes needed.
> >
> >    Gj
> >
> >    On Fri, 14 Aug 2020 at 16:41, HRH  > wrote:
> >
> >        Hi,
> >
> >        I just noticed (the hard way) the generated Empty FXML by the
> >        IDE is stored in the ${Project}\src\main\resources\fxml
> >        directory and unless this is manually copied or moved to
> >        src\main\resources\org\openjfx\${Project} folder the app will
> >        fail at the run time.
>
> >
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 
> 
> For additional commands, e-mail: users-h...@netbeans.apache.org 
> 
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

  

Re: JavaFx maven with FXML

2020-08-15 Thread Ernie Rael

This is a bug; normal operations with default options should work.

It guess this NewFile operation isn't fully mavenized in a jfx context 
(or some such).


-ernie

On 8/14/2020 8:59 PM, HRH wrote:

Hello Ernie,

** How are these files created (the ones that have to be moved?) **
Here are the steps to create the FXML file that needs to be moved:

1- File->New Project->Java with Maven->FXML JavaFx Maven Archetype 
(Gluon)-> to create the project.
2- File ->New File -> JavaFX->Empty FXML->->Use Java 
Controller->...->Finish.


The resulting FXML file by default is placed in the 
${Project}\src\main\resources\fxml directory. Albeit, in step 2 above, 
it does give you an option to put it in the org.opejfx.${Project}, so 
one doesn't have to do the manual move. However, that would be a lucky 
guess if you are new to Netbean JavaFx. As I indicated earlier if one 
doesn't need to use FXML or just uses the Ant built for JavaFx then, 
there aren't any issues.


If you feel this ought to be reported as a bug, please let me know and 
I will file a report.


Thanks,
Anthony.

On Saturday, August 15, 2020, 2:06:17 AM GMT+4:30, Ernie Rael 
 wrote:



I didn't completely follow this. How are these files created (the ones
that have to be moved?) If they come from standard NetBeans operations,
then there is a bug. Please file it and either post the issue number
here, or add me as a watcher. Thanks.

-ernie

On 8/14/2020 11:11 AM, HRH wrote:
> Thanks, that would work.
>
> On Friday, August 14, 2020, 10:28:50 PM GMT+4:30, Geertjan Wielenga
> mailto:geert...@apache.org>> wrote:
>
>
>
> To create a new FXML file, just copy one of the existing ones in the
> project into the same place where the original FXML file is found.
>
> Gj
>
> On Fri, 14 Aug 2020 at 19:51, HRH 

> >> wrote:
>
>
>
>    Thanks Geertjan,
>
>    Indeed, I used one of those Gluon OpenJFX projects from the New
>    Project wizard. The one that uses FXML (not the simple one),
>    however, the manual file transfer needed. Hopefully, the next
>    release of Netbeans can automate this file transfer, in order to
>    eliminate the manual intervention. Please note that if one chooses
>    not to build the JavaFx with FXML, then there is no issue and
>    everything works fine.
>
>
>
>
>
>
>
>
>
>
>
>
>
>    On Friday, August 14, 2020, 7:32:50 PM GMT+4:30, Geertjan Wielenga
>    mailto:geert...@apache.org> 
>> wrote:


>
>
>
>
>
>
>
>
>
>    The two Gluon OpenJFX projects in the New Project wizard run and
>    debug out of the box, no changes needed.
>
>    Gj
>
>    On Fri, 14 Aug 2020 at 16:41, HRH > wrote:

>
>        Hi,
>
>        I just noticed (the hard way) the generated Empty FXML by the
>        IDE is stored in the ${Project}\src\main\resources\fxml
>        directory and unless this is manually copied or moved to
>        src\main\resources\org\openjfx\${Project} folder the app will
>        fail at the run time.

>
>
>
>
>


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org 

For additional commands, e-mail: users-h...@netbeans.apache.org 



For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: [platform] Module load order maven application

2020-08-15 Thread Emilian Bold
Yes, adding OpenIDE-Module-Module-Dependencies by hand is pretty old school
:-)

--emi

sâm., 15 aug. 2020, 14:37 Patrik Karlström  a scris:

> This is really cool,
> first I noticed that the nbm-maven-plugin supports 
> configuration,
> then that I don't have to use them. :)
>
> Looking at a module's *generated* manifest tells me that they end up there
> due to their maven dependency. Nice!
>
>
> Den fre 14 aug. 2020 kl 18:42 skrev Patrik Karlström :
>
>> I will start declaring manifest dependencies, moduleType, and add
>> something like the WindowManager.invokeWhenUIReady() that modules can
>> register for and be run after the foundation of the application is set up
>> and ready to go.
>>
>> /Patrik
>>
>>



Java programs run in Netbeans but not outside

2020-08-15 Thread Bayless Kirtley
I recently upgraded from Netbeans 8.1 to 11.1  and due to problems with 
java 8 I also went to 11. I have been working on some existing projects 
and everything works fine from within Netbeans. When I try to deploy 
though, it seems that Netbeans is no longer including the lib directory 
in the dist directory and the programs will not run. Even when I just 
replace the jar file in the dist directory, leaving the lib directory as 
it was, the programs still will not run. What do I need to do to correct 
this situation?


Bayless



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: [platform] Module load order maven application

2020-08-15 Thread Patrik Karlström
This is really cool,
first I noticed that the nbm-maven-plugin supports 
configuration,
then that I don't have to use them. :)

Looking at a module's *generated* manifest tells me that they end up there
due to their maven dependency. Nice!


Den fre 14 aug. 2020 kl 18:42 skrev Patrik Karlström :

> I will start declaring manifest dependencies, moduleType, and add
> something like the WindowManager.invokeWhenUIReady() that modules can
> register for and be run after the foundation of the application is set up
> and ready to go.
>
> /Patrik
>
>
>>>