Re: How to hide a secret value in my Java code?

2023-10-04 Thread Richard Grin
Thanks to everyone who replied with different solutions, especially to 
Neil for this detailed explanation about how to use the actions.


Le 04/10/2023 à 19:07, Neil C Smith a écrit :

On Wed, 4 Oct 2023 at 10:16, Richard Grin
 wrote:

Is it possible to add an environment variable for *only one* Java
project in NetBeans?

...

I use Maven to build the project.

Incidentally, to do this with Maven projects, use the project properties.

Under Actions, choose eg. `Run project` or `Run file via main()`.

Use the Add button under Set Properties and choose New Environment
Variable.  This will add to the text area eg. `Env.FOO=bar`.

That will be passed along to your project just when you run it via that action.

Best wishes,

Neil


-
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: How to hide a secret value in my Java code?

2023-10-04 Thread Richard Grin
I answer your question: it could be, for example, a password of a user of a 
database, put in a Java variable or used in an annotation, or a secret key for 
an API.

Any way of hiding the secret value in the  source code would be appropriate., 
using Maven or nor.



Envoyé depuis mon appareil Galaxy



 Message d'origine 
De : Alonso Del Arte 
Date : 04/10/2023 16:49 (GMT+01:00)
À : Richard Grin , NetBeans Mailing List 

Objet : Re: How to hide a secret value in my Java code?

I suppose you could encrypt the value in a String field or function in one 
class and then have another class that decrypts that value. This would be a 
slightly more laborious version of hiding the key under the welcome mat, but 
not much safer.

Maybe I'm misunderstanding. Is the secret value for Maven's use?

Al

On Wed, Oct 4, 2023 at 5:16 AM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hello,

Is it possible to add an environment variable for *only one* Java
project in NetBeans? I have added a Windows user variable in the system
parameters but I find the process a bit cumbersome.

Is there a better way of hiding a secret value than using an environment
variable?

A similar problem, but perhaps more difficult to solve: how to hide a
secret value used in an *annotation* in my code (I can't use System.getenv).

I use Maven to build the project.

Kind regards,

Richard


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

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



How to hide a secret value in my Java code?

2023-10-04 Thread Richard Grin

Hello,

Is it possible to add an environment variable for *only one* Java 
project in NetBeans? I have added a Windows user variable in the system 
parameters but I find the process a bit cumbersome.


Is there a better way of hiding a secret value than using an environment 
variable?


A similar problem, but perhaps more difficult to solve: how to hide a 
secret value used in an *annotation* in my code (I can't use System.getenv).


I use Maven to build the project.

Kind regards,

Richard


-
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: mysql connectivity problem with ApachNetbeans 18:Exception: com.mysql.jdbc.Driver

2023-08-25 Thread Richard Grin

Hi,

Put dependency into a dependencies tag.

Richard

Le 26/08/2023 à 07:12, Zulfi Khan a écrit :

Hi,
dependency information to pom.xml gives error. Below i smy pom.xml

http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>

    4.0.0
    com.mycompany
    DB1mav
    1.0-SNAPSHOT
    jar
    
    mysql
mysql-connector-j
    8.0.xx
    
    
UTF-8
11
11
com.mycompany.db1mav.DB1mav

    



 I am getting th efollowing error message:
[ERROR] Some problems were encountered while processing the POMs:
Malformed POM /home/zulfi/NetBeansProjects/DB1mav/pom.xml: 
Unrecognised tag: 'dependency' (position: START_TAG seen 
...\n    ... @8:17)  @ 
/home/zulfi/NetBeansProjects/DB1mav/pom.xml, line 8, column 17

 @
The build could not read 1 project -> [Help 1]

  The project com.mycompany:DB1mav:1.0-SNAPSHOT 
(/home/zulfi/NetBeansProjects/DB1mav/pom.xml) has 1 error
    Malformed POM /home/zulfi/NetBeansProjects/DB1mav/pom.xml: 
Unrecognised tag: 'dependency' (position: START_TAG seen 
...\n    ... @8:17)  @ 
/home/zulfi/NetBeansProjects/DB1mav/pom.xml, line 8, column 17 -> [Help 2]


To see the full stack trace of the errors, re-run Maven with the -e 
switch.

Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please 
read the following articles:
[Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException


Somebody please guide me.

Zulfi.



On Tuesday, August 22, 2023 at 02:10:34 PM CDT, Greenberg, Gary 
 wrote:



In your maven project check if you have:

 1. Proper dependency for the MySQL driver in your pom.xml file. I.e.



mysql

mysql-connector-java

8.0.xx



 2. After the build check you .m2/repository/mysql directory to see if
the jar file was downloaded
 3. Open this jar file with tar, 7-zip or any other proper utility and
find if your driver class is there.

*From:* Zulfi Khan 
*Sent:* Monday, August 21, 2023 9:42 PM
*To:* NetBeans Mailing List 
*Subject:* Re: mysql connectivity problem with ApachNetbeans 
18:Exception: com.mysql.jdbc.Driver


Hi,

Thanks for your response.

(a)Mavern Project:

I have started a mavern project “DB1mav”. I have attached an image of 
the execution screen (file: ExecutionScreen of Mavern Project.png) 
which shows the messages:


Starts1...

Starts2…

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)


at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)


at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)

at java.base/java.lang.Class.forName0(Native Method)

t at java.base/java.lang.Class.forName(Class.java:315)

at com.mycompany.db1mav.Dbconnect.connect(DB1ConnectMav.java:22)

:

:

This means I still have no clue for ClassNotFoundException

(b)Catch Block Code Changed:

I have replaced the command for error messsage in both the catch 
blocks as shown below :


} catch(Exception e) {

//System.err.println("Exception: " + e.getMessage());

e.printStackTrace(System.err);

} finally {

try {

if (con != null){

con.close();

return true;

}

} catch(SQLException e) {//System.err.println("Exception2: " + 
e.getMessage());


e.printStackTrace(System.err);

(c)Class path:

I have checked your images. The small image shows the folders which I 
also have instead of Libraries. I have shown this in my image “No 
libraries folder in project and in properties.png”. The image also 
contains properties popped up screen (i.e., screen which I popped on 
the project properties) i.e. categories. Items in my categories are 
different. The popped up screen (i.e., categories) show Javascript 
libraries option but no libraries option.


I am not able to set Class path because I don’t have Libraries folder 
in my mavern project. Please guide me. I hae different stuff than your 
first black image.


(d) Red connection failed message (i.e., in file connection failed.png)

I have also attached the image which shows the “connection failed 
access denied message...” in the Connectionfailed.png file. The red 
message if you can’t read in the image is ,given below:


Connection failed: Access denied for user 
'root@localhost'(jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=CONVERT_TO_NULL 
using com.mysql.cj.jdbc.Driver)


What I have to do for this red message? Should I try to delete the 
drivers which I installed in the Ant project?


(e) Jar file

I tried to add the jar in the path. Hence I clicked on the Services. 
It showed me Databases folder and two folders under it:


MySQL Server at localhost:3306[root](disconnected),

Java DB

and below this was:

Drivers 

Re: Predefined Variables for File Templates

2023-02-06 Thread Richard Grin

Extract of the link:

You can add the following predefined variables, if needed:

 *

   ${date} inserts the current date, in this format: Feb 16, 2008

 *

   ${encoding} inserts the default encoding, such as: UTF-8

 *

   ${name} inserts the name of the file.

 *

   ${nameAndExt} inserts the name of the file, together with its extension.

 *

   ${package} inserts the name of the package where the file is created.

 *

   ${time} inserts the current time, in this format: 7:37:58 PM

 *

   ${user} inserts the user name.

Le 07/02/2023 à 08:41, Tom Rushworth a écrit :


I'm sorry but for me that's overkill.  I don't need to create a new 
template.  I'm happy to modify an existing one.  Therefore, all I need 
is a list of the available predefined variables.


Tom

On 2/7/2023 2:16 AM, John Lavelle wrote:

https://netbeans.apache.org/tutorials/60/nbm-filetemplates.html

Best regards,
John


On Tue, Feb 7, 2023 at 2:42 AM Tom Rushworth  wrote:

When creating a file template, I know that there are predefined
variables. For example, ${date}, and ${time}.  Will someone point
me to
a list of all the predefined variables that I can use?


-
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: Project unloadable with Gradle 7.5.1 and NetBeans 16

2022-12-02 Thread Richard Grin

Hello Thomas,

I don't use Gradle. Perhaps you will find an explanation by reading 
https://lists.apache.org/list.html?d...@netbeans.apache.org (problems 
with Gradle in version 16)?


Regards,

Richard

Le 02/12/2022 à 08:51, Thomas Kellerer a écrit :

Thomas Kellerer schrieb am 02.12.2022 um 08:10:

our project switch from Gradle 6.9.x to 7.5.1 and now it doesn't work with NetBeans 16 
any more (the most recent "voting candidate")
Everything was working fine with Gradle 6.9.x even with the various NetBeans 16 
RC versions

Whenever I open the project, NetBeans shows the project is unloadable with this 
message

Reason: java.io.NotSerializableException: [extensions.propertyValues]


More background information:

When opening the project properties it shows "Source/Binary Format 1.5" in the 
"Sources" section (and I can not change it there)

The project the error message belongs to, is part of a multi-module project. 
The build.gradle in the root contains this:

 plugins {
 id "com.bmuschko.docker-remote-api" version 
"${dockerRemoteApiPluginVersion}"
 id "maven-publish"
 id "de.undercouch.download" version "${undercouchDownloadVersion}"
 id "io.mateo.cxf-codegen" version "${cxfCodeGenVersion}"
 id "com.github.node-gradle.node" version "${nodePluginVersion}"
 }

 apply from: "security/atlas.gradle"

 if (project.hasProperty('projVersion')) {
 project.version = project.projVersion
 }
 def version = project.version

 task(getVersion) {
 println(project.version)
 }

 allprojects {
 apply plugin: "base"
 }

 subprojects {
 apply plugin: "maven-publish"
 apply plugin: "com.bmuschko.docker-remote-api"

 docker {
 registryCredentials {
 url = projectDockerRegistry
 username = project.findProperty("repository_username")
 password = project.findProperty("repository_password")
 }
 }

 ext.dockerRegistryCredentialsForRead = docker {
 registryCredentials {
 url = dockerRegistryForRead
 username = project.findProperty("repository_username")
 password = project.findProperty("repository_password")
 }
 }

 ext.calculateShortTag = { String name -> "module-${name}" }
 ext.calculateFullTag = { String name -> 
"${projectDockerRegistry}/${group}/${name}:${version}" }

 plugins.with {
 // All projects (modules) with the JavaPlugin are using Java 11
 withType(JavaPlugin) {
 java {
 sourceCompatibility = JavaVersion.VERSION_11
 targetCompatibility = JavaVersion.VERSION_11
 }
 }
 }
 }

 wrapper {
 gradleVersion '7.5.1'
 distributionType Wrapper.DistributionType.ALL
 }


So maybe NetBeans doesn't understand the part where the JavaVersion is set for 
all sub-modules?

Thomas


-
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


--
Richard Grin


-
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: AutoText Completion Issue - ManagedBean

2022-11-28 Thread Richard Grin
Hello,

Which version of Jakarta EE and NetBeans ?

Richard



Envoyé depuis mon appareil Galaxy



 Message d'origine 
De : Mehmet Fatih ÇİN 
Date : 28/11/2022 20:24 (GMT+01:00)
À : NetBeans Mailing List 
Objet : AutoText Completion Issue - ManagedBean

Hello, I used  
component. but the instanceManagedBean value is not output on autocomplete. How 
should I go about this problem? Thank you for your interest.


Mehmet Fatih ÇİN




Re: [apache/netbeans] No more option for creating an EJB singleton in the wizard that creates an EJB (Issue #4892)

2022-11-11 Thread Richard Grin
Thanks Neil for this important information. It is a big problem for me 
because I have a training course scheduled for a month from now, but I 
understand it is not easy to fix all these issues.


Richard

Le 11/11/2022 à 11:06, Neil C Smith a écrit :


Are there any plans to fix this and other Jakarta EE 9.1 issues in
the final NetBeans 16 release?

Not in NB16, sorry - see dev@ mail thread 
<https://lists.apache.org/thread/m4ok1nnk4dt44kgycf5s64b3vwtj0xrc>. 
Hopefully fixes can happen in the NB17 timeframe.


—
Reply to this email directly, view it on GitHub 
<https://github.com/apache/netbeans/issues/4892#issuecomment-1311490131>, 
or unsubscribe 
<https://github.com/notifications/unsubscribe-auth/AAYFS72IY7VQGI2XONNXAPLWHYLATANCNFSM6AARTIF67I>.
You are receiving this because you authored the thread.Message ID: 



Re: registering latest Payara

2022-10-02 Thread Richard Grin

Hi Josh,

So, thanks to Jose Contreras and Gaurav Gupta too :-).

I have just tried your archetype webapp-jarkata91 to test with Jakarta 
EE 9.1 (at least to replace javax by jakarta, preparing for Jakarta 
EE10). It worked but I couldn't start GlassFish 6.2.5 from NetBeans and 
I had to start it with asadmin in a terminal. Is there a way to start it 
from NetBeans?


Best regards,

Richard

Le 02/10/2022 à 19:36, Josh Juneau a écrit :

Hi Richard,

Thanks for the kind words, but all of these latest changes for Jakarta 
EE were from Jose Contreras and Gaurav Gupta!  I've just created and 
submitted a Jakarta EE 10 Maven archetype (JDK11 and full profile). 
 It should become available at the following URL within the next few days:


https://mvnrepository.com/artifact/io.github.juneau001

Also, you should be able to manually create a Jakarta EE 10 
application within NetBeans...just do not select a server to deploy to 
for now.  Since Jakarta EE 10 is not yet supported by NetBeans, it 
will not allow you to deploy to any of the registered servers. 
 However, you should still be able to develop a Jakarta EE 10 app and 
deploy to a compliant server.


I'm also hoping to find some time to repair a few more issues with 
Jakarta EE for NetBeans 16, so stay tuned!


Thanks

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/us/search?query=Juneau

On Oct 2, 2022, at 2:42 AM, Richard Grin 
 wrote:




Hi Josh,

Thanks for your work for NetBeans.

It seems that bug #4605 has been fixed ("Impossible to create a Maven 
Web application for Jakarta EE 9.1" ; bug #4532). How can I get the 
new version of the Maven achetype to create a Jakarta EE 9.1 project? 
NetBeans 15 "Check for Updates"  displays "Your IDE is up to date".


I am teaching a course on Jakarta EE in November and I would like to 
use Jakarta EE 10. When do you think it will be possible to get the 
(pre-release) version of NetBeans 16 that will contain the PRs for 
Jakarta EE 10?


Best regards,

Richard

Le 02/10/2022 à 07:23, Josh Juneau a écrit :

Hi Glenn,

Yes, Michael is correct that there are PRs coming for Jakarta EE 10 
and Payara 6 in NetBeans 16.  You should be able to run Payara 5, 
GlassFish 6 along with Jakarta EE 9.1 in NetBeans 15.


Thanks

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/us/search?query=Juneau

On Oct 1, 2022, at 3:07 PM, Glenn Holmer 
 wrote:


I haven't done much EE programming since I retired, but want to update
an app I wrote to the latest Jakara EE.

Is that supported in NetBeans 15? Because I had trouble registering the
server in NetBeans. It's installed (payara-6.2022.1.Alpha4.zip), and I
can get the pages on 8080 and 4848, but here's what happens when I try
to register Payara:

0) I select a location (/opt/payara6)
1) I get "Detected a 6.2022.1 install. Click Next to register remote or
custom local domains." ("Local Domain" is selected, "Download 
Now..." is

greyed out)
2) I click Next, but nothing happens except that the "Click Next"
message disappears. "Finish" is greyed out.

What am I doing wrong? I'm running on openjdk 17.

--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."


-
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


--
Richard Grin


--
Richard Grin


Re: registering latest Payara

2022-10-02 Thread Richard Grin

Hi Josh,

Thanks for your work for NetBeans.

It seems that bug #4605 has been fixed ("Impossible to create a Maven 
Web application for Jakarta EE 9.1" ; bug #4532). How can I get the new 
version of the Maven achetype to create a Jakarta EE 9.1 project? 
NetBeans 15 "Check for Updates"  displays "Your IDE is up to date".


I am teaching a course on Jakarta EE in November and I would like to use 
Jakarta EE 10. When do you think it will be possible to get the 
(pre-release) version of NetBeans 16 that will contain the PRs for 
Jakarta EE 10?


Best regards,

Richard

Le 02/10/2022 à 07:23, Josh Juneau a écrit :

Hi Glenn,

Yes, Michael is correct that there are PRs coming for Jakarta EE 10 
and Payara 6 in NetBeans 16.  You should be able to run Payara 5, 
GlassFish 6 along with Jakarta EE 9.1 in NetBeans 15.


Thanks

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/us/search?query=Juneau

On Oct 1, 2022, at 3:07 PM, Glenn Holmer 
 wrote:


I haven't done much EE programming since I retired, but want to update
an app I wrote to the latest Jakara EE.

Is that supported in NetBeans 15? Because I had trouble registering the
server in NetBeans. It's installed (payara-6.2022.1.Alpha4.zip), and I
can get the pages on 8080 and 4848, but here's what happens when I try
to register Payara:

0) I select a location (/opt/payara6)
1) I get "Detected a 6.2022.1 install. Click Next to register remote or
custom local domains." ("Local Domain" is selected, "Download Now..." is
greyed out)
2) I click Next, but nothing happens except that the "Click Next"
message disappears. "Finish" is greyed out.

What am I doing wrong? I'm running on openjdk 17.

--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."


-
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


--
Richard Grin


Re: Unpacking the index for central repository is very long

2022-09-15 Thread Richard Grin

Hi Michael,

Downloading the file was quick. The unpacking was very long.

Wouldn't it be possible to search for Maven artefacts when a pom.xml is 
written and not before? It seems that other IDEs don't work like 
NetBeans and don't download and unpack the index in advance. Am I wrong?


Best regards,

Richard

Le 15/09/2022 à 03:14, Michael Bien a écrit :

Hi,

2h is indeed long.

Last time i measured it was about 20mins on my workstation which is 
about 6 years old by now. Would be interesting to try to figure out 
what causes the such big difference.


Was the download itself slow? This can happen of course due to outside 
factors.


The good news is that subsequent indexing should be faster since it 
will download a delta.


It actually did run an update while writing this mail, here the log line:
INFO [org.netbeans.modules.maven.indexer.NexusRepositoryIndexerImpl]: 
Indexing of central took 663.13 s.


there is some potential to parallelize it, but this is actually the 
only indexing job which is handled by a third party lib (local 
indexing is done by NB), so we would have to take a look upstream. 
There is also always the danger to melt laptops if you put all cores 
under load for a few minutes.


best regards,
michael


On 08.09.22 10:49, Richard Grin wrote:

Hello,

I have just downloaded and installed NetBeans 15 on Windows 11.

A very annoying problem: the loading and unpacking of the index for 
central repository took almost 2 hours. I'm afraid it will be even 
worse in the years to come.


Is there a workaround?

Regards,

Richard


-
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




--
Richard Grin


-
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



NetBeans 15. Impossible to create a Maven Web application for Jakarta EE 9.1

2022-09-08 Thread Richard Grin

Hello,

I have just downloaded and installed NetBeans 15 on Windows 11.

I can't create a Java with Maven - Web Application, Server GlassFish 
Server 6.2.5, Jakarta EE 9.1.


I launch NetBeans 15

Menu File > New Project > Java with Maven > Web Application.

Server: GlassFish Server 6.2.5
Java EE Version: Jakarta EE 9.1 Web.

Click on Finish.

In the Notifications Zone, an "Unexpected Exception" appears. The error 
message:


java.lang.IllegalStateException: No archetype defined for profile 
9.1-web in class 
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.J2eeArchetypeFactory$WebArchetypes; 
check whether all possible  pairs have been added
    at 
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.BaseJ2eeArchetypeProvider.getArchetypeFor(BaseJ2eeArchetypeProvider.java:135)
    at 
org.netbeans.modules.maven.j2ee.ui.wizard.archetype.J2eeArchetypeFactory.findArchetypeFor(J2eeArchetypeFactory.java:79)
    at 
org.netbeans.modules.maven.j2ee.ui.wizard.EEWizardIterator.instantiate(EEWizardIterator.java:102) 


    at ...
    ...

Notice that the creation of a Jakarta EE *8* Web application works.

Regards,

Richard


-
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: NetBeans 13 - Maven Web project - "Create entities from database" is not working

2022-03-06 Thread Richard Grin

Hello again...

I remind you my environment: Windows 10, MySQL 8.0.25, NetBeans 13, Java 
11, Payara 5.2022.1, project Java Web Jakarta EE 8.


I have 2 problems with the wizard "New entity class from database".

First problem : With this wizard I create an entity with the data source 
"jdbc/customer" (JDBC data source created in Payara). When I select this 
data source in the drop down list, I receive the error message "The name 
of the driver class for the datasource is missing.". It was not the case 
with the version 12.5 of NetBeans. I receive the same message for all 
the datasources, jdbc/_default, jdbc/_timerPool,...


I modify the file domain.xml of Payara to add the name of the driver and 
I restart Payara.


Second problem : Now, when I select "jdbc/customer", NetBeans does not 
display the table of the database. Instead it launches the "New 
Connection Wizard" as if I had clicked on the option "New Data source" 
in the drop down list for "Data Source". If it is the first time I 
create an entity class from the database, it works, but, the next time I 
create another entity from the same database, I receive an error message 
"Unable to add connection. Connection already exists.".


Do you have the same problems with NetBeans 13? Can you reproduce?

Regards,

Richard

Le 06/03/2022 à 08:44, Richard Grin a écrit :
Sorry. I have just understood my error: the application server was not 
started!


Le 06/03/2022 à 00:03, Richard Grin a écrit :

Hi,

My environment: Windows 10, MySQL 8.0.25, NetBeans 13, Java 11, 
Payara 5.2022.1


In NetBeans I have created a new connection to a database in MySQL in 
the tab "Services". It worked. In NetBeans I can see the tables of 
the database.


Then I create a new Maven project with the type "Java with Maven" > 
"Web Application". I change a little the file pom.xml : 11 instead of 
1.8 for source and target Java version and to update the old version 
2.3 of the maven-war-plugin (incompatibility during "clean and build" 
of the project).


Right after, I try to create entities from the table in the database 
: New > Entity classes from database.


A new window "New Entity from Database" pops up. I have to give the 
data source in a drop down list. The MySQL data source is not in the 
list so I choose the option "New Data Source". A new window pops up 
and I give a JNDI name and the database connection I created before 
in NetBeans. I click on OK.


No error message but no table is displayed in the window "New Entity 
from Database. So I can't create the entities from the database.


This procedure was working in NetBeans 12.5.

Can you help me? Is it a bug?

Richard



-
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: NetBeans 13 - Maven Web project - "Create entities from database" is not working

2022-03-05 Thread Richard Grin
Sorry. I have just understood my error: the application server was not 
started!


Le 06/03/2022 à 00:03, Richard Grin a écrit :

Hi,

My environment: Windows 10, MySQL 8.0.25, NetBeans 13, Java 11, Payara 
5.2022.1


In NetBeans I have created a new connection to a database in MySQL in 
the tab "Services". It worked. In NetBeans I can see the tables of the 
database.


Then I create a new Maven project with the type "Java with Maven" > 
"Web Application". I change a little the file pom.xml : 11 instead of 
1.8 for source and target Java version and to update the old version 
2.3 of the maven-war-plugin (incompatibility during "clean and build" 
of the project).


Right after, I try to create entities from the table in the database : 
New > Entity classes from database.


A new window "New Entity from Database" pops up. I have to give the 
data source in a drop down list. The MySQL data source is not in the 
list so I choose the option "New Data Source". A new window pops up 
and I give a JNDI name and the database connection I created before in 
NetBeans. I click on OK.


No error message but no table is displayed in the window "New Entity 
from Database. So I can't create the entities from the database.


This procedure was working in NetBeans 12.5.

Can you help me? Is it a bug?

Richard



-
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



NetBeans 13 - Maven Web project - "Create entities from database" is not working

2022-03-05 Thread Richard Grin

Hi,

My environment: Windows 10, MySQL 8.0.25, NetBeans 13, Java 11, Payara 
5.2022.1


In NetBeans I have created a new connection to a database in MySQL in 
the tab "Services". It worked. In NetBeans I can see the tables of the 
database.


Then I create a new Maven project with the type "Java with Maven" > "Web 
Application". I change a little the file pom.xml : 11 instead of 1.8 for 
source and target Java version and to update the old version 2.3 of the 
maven-war-plugin (incompatibility during "clean and build" of the project).


Right after, I try to create entities from the table in the database : 
New > Entity classes from database.


A new window "New Entity from Database" pops up. I have to give the data 
source in a drop down list. The MySQL data source is not in the list so 
I choose the option "New Data Source". A new window pops up and I give a 
JNDI name and the database connection I created before in NetBeans. I 
click on OK.


No error message but no table is displayed in the window "New Entity 
from Database. So I can't create the entities from the database.


This procedure was working in NetBeans 12.5.

Can you help me? Is it a bug?

Richard


-
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: Mysql [mysql] and Netbeans [java]

2021-12-01 Thread Richard Grin
Send more details, please. The server logs for instance.



Envoyé depuis mon appareil Galaxy



 Message d'origine 
De : Nigel Evenden 
Date : 01/12/2021 11:23 (GMT+01:00)
À : James Ostrowick 
Cc : Apache Netbeans Mailing List 
Objet : Re: Mysql [mysql] and Netbeans [java]

Tried but still get the error.

Nigel

On Wed, 1 Dec 2021, 03:50 James Ostrowick, 
mailto:ja...@ostrowick.co.za>> wrote:
I’ve seen this happen before, especially on a linux machine, I usually just 
make sure that the entity has this at the top:

@Entity
@Table(name = “accounts”)

i.e. ensure that the declaration for the table is in the correct case.

Kind Regards,
James Ostrowick


On 30 Nov 2021, at 22:49, Nigel Evenden 
mailto:nc.even...@gmail.com>> wrote:

I get an EJB error when running List.xhtml.  It's looking for ACCOUNTS when I 
have an accounts table.  I have set my.cnf to accept caps, but still get the 
error.



[Support] Re: error "records are not supported in -source 11 (use -source 16 or higher to enable records)"

2021-11-12 Thread Richard Schmidt
I have installed graalvm-ce-java16-21.2.0 which provides java 16 SDK and
and have downloaded and installed openjfx.io OpenJFX 16 and have developed
a javafx Maven projects in NetBeans 12.4 which has ben working fine. Now I
have declared the following record (the new data record type introduced in
Java 14):

record EventTargetFinder(List> filterTargetTypes) {
EventTargetFinder(List> filterTargetTypes) {
this.filterTargetTypes =
Collections.unmodifiableList(filterTargetTypes);
}

NetBeans is telling me "records are not supported in -source 11 (use
-source 16 or higher to enable records)".

I have searched Google and StackOverFlow and am unable to find relavant
information. I have examined the NetBeans project properties and have found
that the porject compiles with Java 16, but in the category "Sources" there
is label "Source/Binary Format:" with a combo box with the entry "11"
 selected and I am unable to change the selection.

Any help with getting over this hump would be appreciated.


Re: Where to put driver JAR

2021-11-01 Thread Richard Grin

Window Services > Databases > Drivers.

New Driver... and add the jar of the MySQL driver; Driver class 
com.mysq.cj.jdbc.Driver (for version 8 of MySQL).


Le 02/11/2021 à 06:31, Greenberg, Gary a écrit :


Just got a new laptop and installed NB 12.5 on it.
Need to connect to mySQL (remote host).

I did run mysql-jconnect MSI file which suppose to install the driver 
on my box.


However Netbeans cannot find it.

I can extract JAR from MSI, but not sure where shall I drop it in the 
Netbeans installation.


Can someone please advise?

Thanks,

*Gary Greenberg*

Staff Software Engineer


Problem with MicroProfile

2021-10-21 Thread Richard Grin

Hello,

NetBeans 12.5.

On https://start.microprofile.io I create a Maven application 
MicroProfile 4.0 with Payara Micro and Java 11.


I download the zip file, unzip it and open it with NetBeans.

I clean and build the project.

Then I run the project (right clic on the project and Run).

I open a browser and type the URL to use the application (for example 
localhost:8080/data/hello) and I get a 404 error. No URL works.


To test without NetBeans, I kill the previous process (started with 
"Run"), I go into the directory of the application and I launch the jar 
(for example, java -jar target\demo-microbundle.jar). Now, if I type the 
URL localhost:8080/data/hello, it works.


It seems there is a problem with NetBeans. Someone can help?

Regards,

Richard



-
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



Insertion of the code for an EntityManager in a session bean is not good

2021-10-06 Thread Richard Grin

Hello,

It's a regression but I don't remember in which version it worked (some 
years ago). It does not work in 12.4 nor in 12.5 (Windows 10).


The option "Insert code..." > "Use Entity Manager..." of the context 
menu of a session bean stateless does not insert the good code.


Even if the transactions are not managed by the EJB (the behaviour by 
default), it inserts this code (this code would be good if the 
transaction was managed by the EJB, i.e. in an EJB annotated by 
"@TransactionManagement(TransactionManagementType.BEAN)"):


  @PersistenceContext(unitName = "customerPU")
  private EntityManager em;
  @Resource
  private javax.transaction.UserTransaction utx;

  public void persist(Object object) {
    try {
  utx.begin();
  em.persist(object);
  utx.commit();
    } catch (Exception e) {
  Logger.getLogger(getClass().getName()).log(Level.SEVERE, 
"exception caught", e);

  throw new RuntimeException(e);
    }
  }

It should insert this code:

  @PersistenceContext(unitName = "customerPU")
  private EntityManager em;

  public void persist(Object object) {
    em.persist(object);
  }

Example of the code of the EJB in which I try to insert the code :

@Stateless
public class Test {

}

Richard


-
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: Java 17 and NetBeans

2021-10-01 Thread Richard Grin
Yes, it is what I have done in order to use Java 17 in my application.
If the default Java version is not Java 17, I receive an error message.



Envoyé depuis mon appareil Galaxy



 Message d'origine 
De : Pieter van den Hombergh 
Date : 01/10/2021 21:47 (GMT+01:00)
À : Richard Grin 
Cc : NetBeans Mailing List 
Objet : Re: Java 17 and NetBeans

Richard,
Typically the default that the maven compiler assumes is not the Java version 
you run it on. You need to set the release to 17 in your case. Easiest is to do 
that in a property in the pom file. The property is named maven.compiler.release



On Fri, Oct 1, 2021, 14:07 Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hello,

I created a Maven project with Java 17 and I received an error:
Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
(default-compile) on project XXXWithRecord: Fatal error compiling:
error: release version 17 not supported -> [Help 1]

In order to write code with Java 17, I had to change the default JDK of
NetBeans in etc/netbeans.conf.

Is it always true that you can't write code in a version later than the
default version of NetBeans? Besides running NetBeans code, what is the
purpose of this default version?

Regards,

Richard


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

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



Java 17 and NetBeans

2021-10-01 Thread Richard Grin

Hello,

I created a Maven project with Java 17 and I received an error:
Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
(default-compile) on project XXXWithRecord: Fatal error compiling: 
error: release version 17 not supported -> [Help 1]


In order to write code with Java 17, I had to change the default JDK of 
NetBeans in etc/netbeans.conf.


Is it always true that you can't write code in a version later than the 
default version of NetBeans? Besides running NetBeans code, what is the 
purpose of this default version?


Regards,

Richard


-
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: Creation of a Glassfish deployment descriptor does not work

2021-09-24 Thread Richard Grin

Hello Geertjan,

I wanted to create a GlassFish descriptor, glassfish-web.xml, not the 
standard web.xml, in order to change the context path of the application 
(action not standardized in the specification).


Richard

Le 24/09/2021 à 08:32, Geertjan Wielenga a écrit :


Is it still necessary to create a web.xml file? I believe it is 
optional now, for some time already.


Gj

On Fri, 24 Sep 2021 at 08:02, Richard Grin 
<mailto:richard.g...@univ-cotedazur.fr>> wrote:


Hello,

NetBeans 12.5.

In a Jakarta EE 8 Web project (with Payara Server 5.2021.7), New >
GlassFish > GlassFish descriptor does not create a file
glassfish-web.xml

There is not such file in the WEB-INF directory. No error message in
NetBeans.

It is also not possible to change the context path with the run
properties of the project.

Do you confirm?

It is possible to add a glassfish-web.xml to change the context
path but
not with the help of NetBeans (you have to know the doctype).

Richard


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

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



Creation of a Glassfish deployment descriptor does not work

2021-09-24 Thread Richard Grin

Hello,

NetBeans 12.5.

In a Jakarta EE 8 Web project (with Payara Server 5.2021.7), New > 
GlassFish > GlassFish descriptor does not create a file glassfish-web.xml


There is not such file in the WEB-INF directory. No error message in 
NetBeans.


It is also not possible to change the context path with the run 
properties of the project.


Do you confirm?

It is possible to add a glassfish-web.xml to change the context path but 
not with the help of NetBeans (you have to know the doctype).


Richard


-
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



Creation of a Glassfish deployment descriptor does not work

2021-09-23 Thread Richard Grin

Hello,

NetBeans 12.5.

In a Jakarta EE 8 Web project (with Payara Server 5.2021.7), New > 
GlassFish > GlassFish descriptor does not create a file glassfish-web.xml


There is not such file in the WEB-INF directory. No error message in 
NetBeans.


It is also not possible to change the context path with the run 
properties of the project.


Do you confirm?

Richard


-
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: Access to GitHub with a password is deprecated

2021-07-16 Thread Richard Grin
Thanks Neil. I have generated a token with the help of 
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token. 
I have used the generated token as the password and I can now push my 
code to GitHub using the token.


Richard

Le 16/07/2021 à 15:15, Neil C Smith a écrit :

On Fri, 16 Jul 2021 at 14:13, Richard Grin
 wrote:

Beginning August 13, 2021, GitHub will no longer accept account passwords when 
authenticating Git operations and will require the use of token-based 
authentication, such as a personal access token (for developers) or an OAuth or 
GitHub App installation token (for integrators) for all authenticated Git 
operations on GitHub.com..

I use a password to access GitHub. What other type of access is recommended to access 
it from NetBeans 12.4? Is there a link that explains how to do it? With the menu Team 
> Remote > Push... a user name and a password are asked.

You can use the token as the password.

Best wishes,

Neil

-
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



Access to GitHub with a password is deprecated

2021-07-16 Thread Richard Grin

Hello,

Beginning August 13, 2021, GitHub will no longer accept account 
passwords when authenticating Git operations and will require the use of 
token-based authentication,such as a personal access token(for 
developers) or an OAuth or GitHub App installation token (for 
integrators) for all authenticated Git operations on GitHub.com..


I use a password to access GitHub. What other type of access is 
recommended to access it from NetBeans 12.4? Is there a link that 
explains how to do it? With the menu Team > Remote > Push... a user name 
and a password are asked.


Regards,

Richard



Local terminal

2021-05-27 Thread Richard Grin

Hello,

On windows, if I want to open a local terminal in NetBeans I receive the 
message "Local Terminal requires cygwin. Please install cygwin and 
restart the IDE.".


Would it be possible to use wsl2 instead of cygwin? or the command 
prompt Windows?


Best regards,

Richard



-
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: Cannot remove library from project

2021-05-24 Thread Richard Grin

Hello Bayless Kirtley,

Perhaps this link will help you: 
https://stackoverflow.com/questions/5692256/maven-best-way-of-linking-custom-external-jar-to-my-project


Richard

Le 24/05/2021 à 00:03, Bayless Kirtley a écrit :


What is the secret for adding a dependency on a local library to a new 
Maven project?




-
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: About Git

2021-05-24 Thread Richard Grin

Thanks Andreas,

Do you know how to print the version number of Git on which JGit is based?

Best regards,

Richard

Le 23/05/2021 à 00:49, Andreas Reichel a écrit :

Richerard,

to my best knowledge it uses Eclipse JGIT and so is independent from 
your OS native Git.
(At the cost of less stability, REBASE seems to break quite often and 
I actually have to resort to native GIT/Smart Git for fixing it).


Best regards
Andreas

On Sat, 2021-05-22 at 20:27 +0200, Richard Grin wrote:

Hello,

2 questions about Git :

How can I know which version of Git is used by NetBeans? If I install a
new version of Git on my Windows machine, will it be used by NetBeans?
Does NetBeans use an internal version of Git?

Is it possible to launch any Git command from NetBeans (a little like we
can run any Maven goal), for example git restore?

Best regards,

Richard



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


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






About Git

2021-05-22 Thread Richard Grin

Hello,

2 questions about Git :

How can I know which version of Git is used by NetBeans? If I install a 
new version of Git on my Windows machine, will it be used by NetBeans? 
Does NetBeans use an internal version of Git?


Is it possible to launch any Git command from NetBeans (a little like we 
can run any Maven goal), for example git restore?


Best regards,

Richard



-
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: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard
I don't want to build an application. I am a beginner, I want to learn, 
I have a book for beginners where the examples are simple and supposed 
to be runnable, but some of them are not. My question is very simple : 
how the XML editor can be activated in a very simple project without 
modules ? The method given in the book does not work, and the only help 
I get here is "try disabling modules one by one until it works". OK, I 
give up and I unsubscribe this list.

Richard.

Le 07/03/2021 à 18:05, Geertjan Wielenga a écrit :


Don’t use the book like that. It is not there to follow step by step. 
It is there as a guide to implement the application you want to build.


As you can see, what you’re doing doesn’t work. You can continue being 
frustrated or use the book and the NetBeans Platform in the way 
they’re meant to be used — especially if you’re putting an IDE 
together, start with what there already is rather than developing from 
scratch.


And with the book, ask yourself what it is you’re going to be 
developing and then use the book to guide you with that.


Gj

On Sun, 7 Mar 2021 at 17:59, Richard <mailto:rgreno...@gmail.com>> wrote:


The answer is very simple : I don't want to build an application,
I just want to follow the examples in the book step by step. You
suggested me to purchase this book and to read it carefully, that
is what I am doing.

In chapter 1, we are just testing the effect of selecting ide
modules in the library on a sample project built from scratch that
contains no module : activating the Image editor, activating the
Utilities module, etc... and seeing how menus are modified and haw
images can be edited. Using the sample code downloaded from the
link given in the book gives the same result as my project built
from scratch.

As I said in the previous mail, the approach that you suggest for
the XML editor is very long and not understandable for a beginner
: how can I guess which modules are not needed ? For most of them,
I have no idea of what they are doing ! I thought that at least
the error message could help in finding the missing modules, but
it does not help.

I was trying this approach for almost an hour but I could not
identify the missing modules.

OK, forget this mail, I give up with NB Platform.


Richard

Le 07/03/2021 à 17:14, Geertjan Wielenga a écrit :


The question is what it is you’re trying to achieve here. Given
what you’re trying to do right now, your approach could be
considered to be “wrong”, i.e., start by thinking of the larger
idea of the application you’re trying to build and the features
you need for that.

A better approach than building up an IDE from scratch, as you
seem to be doing, is to start from the full IDE and remove the
parts you don’t need. It’s the exact opposite to what you’re
doing, please consider it.

Gj

On Sun, 7 Mar 2021 at 17:10, Richard mailto:rgreno...@gmail.com>> wrote:

Thank you Geertjan

This is a simple exercise to look at the possibilities that
each ide module can give. I tried successfully the image
editor and the Utilities module, but it is clear that some
other ide modules need to be selected for the XML editor
since I can run with all ide modules selected.

But how can I find the missing modules ? Of course, I could
start with all ide modules selected and try to unselect one
module at each run until it fails, but it would take a very
long time. How the error message can help ?


Richard

Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :


Your usage may vary with that book. All the principles and
ideas are correct, but some individual instructions may be
outdated.

Gj

On Sun, 7 Mar 2021 at 16:57, Richard mailto:rgreno...@gmail.com>> wrote:

Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the
nbp4beginners book. I
just created a sample project without any module, and
tried to select
some modules from the ide cluster in the
properties-libraries window,
such as Image or Utilities. All is OK.

Then I followed the 1.2.5.5 chapter in order to activate
the XML Text
editor :

> 1.2.5.5 XML Editor
> Users may need to edit XML files of one kind or
another in your
> application. In the ide cluster, select XML
> Text Editor and you will be prompted via the red
Resolve button to
> include other XML-related NetBeans
> modules

Some other related modules are selected when clicking
the

Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard
The answer is very simple : I don't want to build an application, I just 
want to follow the examples in the book step by step. You suggested me 
to purchase this book and to read it carefully, that is what I am doing.


In chapter 1, we are just testing the effect of selecting ide modules in 
the library on a sample project built from scratch that contains no 
module : activating the Image editor, activating the Utilities module, 
etc... and seeing how menus are modified and haw images can be edited. 
Using the sample code downloaded from the link given in the book gives 
the same result as my project built from scratch.


As I said in the previous mail, the approach that you suggest for the 
XML editor is very long and not understandable for a beginner : how can 
I guess which modules are not needed ? For most of them, I have no idea 
of what they are doing ! I thought that at least the error message could 
help in finding the missing modules, but it does not help.


I was trying this approach for almost an hour but I could not identify 
the missing modules.


OK, forget this mail, I give up with NB Platform.

Richard

Le 07/03/2021 à 17:14, Geertjan Wielenga a écrit :


The question is what it is you’re trying to achieve here. Given what 
you’re trying to do right now, your approach could be considered to be 
“wrong”, i.e., start by thinking of the larger idea of the application 
you’re trying to build and the features you need for that.


A better approach than building up an IDE from scratch, as you seem to 
be doing, is to start from the full IDE and remove the parts you don’t 
need. It’s the exact opposite to what you’re doing, please consider it.


Gj

On Sun, 7 Mar 2021 at 17:10, Richard <mailto:rgreno...@gmail.com>> wrote:


Thank you Geertjan

This is a simple exercise to look at the possibilities that each
ide module can give. I tried successfully the image editor and the
Utilities module, but it is clear that some other ide modules need
to be selected for the XML editor since I can run with all ide
modules selected.

But how can I find the missing modules ? Of course, I could start
with all ide modules selected and try to unselect one module at
each run until it fails, but it would take a very long time. How
the error message can help ?


    Richard

Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :


Your usage may vary with that book. All the principles and ideas
are correct, but some individual instructions may be outdated.

Gj

On Sun, 7 Mar 2021 at 16:57, Richard mailto:rgreno...@gmail.com>> wrote:

Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the nbp4beginners
book. I
just created a sample project without any module, and tried
to select
some modules from the ide cluster in the properties-libraries
window,
such as Image or Utilities. All is OK.

Then I followed the 1.2.5.5 chapter in order to activate the
XML Text
editor :

> 1.2.5.5 XML Editor
> Users may need to edit XML files of one kind or another in
your
> application. In the ide cluster, select XML
> Text Editor and you will be prompted via the red Resolve
button to
> include other XML-related NetBeans
> modules

Some other related modules are selected when clicking the
"Resolve"
button, all seems to be OK, but running the project fails,
and I get an
error message (see the attached document). This message does
not help me
in finding which module is missing.

Trying again with selecting the whole ide cluster (all ide
modules are
selected), and running again the project is fine : I get a
colored
syntax when opening xml files, and there is a contextual menu
for XML
options.

So, selecting only the XML Text editor module and the related
modules by
the "Resolve" button is not enough. Could anybody help me in
finding
what modules are really needed ? I join the log file that
contains the
errors.

Note for Geertjan : this is NOT the tutorial that we
discussed yesterday
and that works perfectly :)

Richard


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

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







Re: [Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard

Thank you Geertjan

This is a simple exercise to look at the possibilities that each ide 
module can give. I tried successfully the image editor and the Utilities 
module, but it is clear that some other ide modules need to be selected 
for the XML editor since I can run with all ide modules selected.


But how can I find the missing modules ? Of course, I could start with 
all ide modules selected and try to unselect one module at each run 
until it fails, but it would take a very long time. How the error 
message can help ?


Richard

Le 07/03/2021 à 17:03, Geertjan Wielenga a écrit :


Your usage may vary with that book. All the principles and ideas are 
correct, but some individual instructions may be outdated.


Gj

On Sun, 7 Mar 2021 at 16:57, Richard <mailto:rgreno...@gmail.com>> wrote:


Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the nbp4beginners book. I
just created a sample project without any module, and tried to select
some modules from the ide cluster in the properties-libraries window,
such as Image or Utilities. All is OK.

Then I followed the 1.2.5.5 chapter in order to activate the XML Text
editor :

> 1.2.5.5 XML Editor
> Users may need to edit XML files of one kind or another in your
> application. In the ide cluster, select XML
> Text Editor and you will be prompted via the red Resolve button to
> include other XML-related NetBeans
> modules

Some other related modules are selected when clicking the "Resolve"
button, all seems to be OK, but running the project fails, and I
get an
error message (see the attached document). This message does not
help me
in finding which module is missing.

Trying again with selecting the whole ide cluster (all ide modules
are
selected), and running again the project is fine : I get a colored
syntax when opening xml files, and there is a contextual menu for XML
options.

So, selecting only the XML Text editor module and the related
modules by
the "Resolve" button is not enough. Could anybody help me in finding
what modules are really needed ? I join the log file that contains
the
errors.

Note for Geertjan : this is NOT the tutorial that we discussed
yesterday
and that works perfectly :)

Richard


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

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





[Netbeans Platform] Error when activating XML Text Editor in a new project

2021-03-07 Thread Richard

Hello.

Running Netbeans 12.0 with OpenJDK11 on Linux Mint 19.3 x64.

Trying to run some examples in chapter 1 of the nbp4beginners book. I 
just created a sample project without any module, and tried to select 
some modules from the ide cluster in the properties-libraries window, 
such as Image or Utilities. All is OK.


Then I followed the 1.2.5.5 chapter in order to activate the XML Text 
editor :



1.2.5.5 XML Editor
Users may need to edit XML files of one kind or another in your 
application. In the ide cluster, select XML
Text Editor and you will be prompted via the red Resolve button to 
include other XML-related NetBeans

modules


Some other related modules are selected when clicking the "Resolve" 
button, all seems to be OK, but running the project fails, and I get an 
error message (see the attached document). This message does not help me 
in finding which module is missing.


Trying again with selecting the whole ide cluster (all ide modules are 
selected), and running again the project is fine : I get a colored 
syntax when opening xml files, and there is a contextual menu for XML 
options.


So, selecting only the XML Text editor module and the related modules by 
the "Resolve" button is not enough. Could anybody help me in finding 
what modules are really needed ? I join the log file that contains the 
errors.


Note for Geertjan : this is NOT the tutorial that we discussed yesterday 
and that works perfectly :)


Richard

---
>Log Session: Sunday, March 7, 2021 at 4:23:14 PM Central European Standard Time
>System Info: 
  Product Version = MyNbp 12.0-u2-ba34c2dabd3091a6ee93cfde08a653816a7e19ea
  Operating System= Linux version 4.15.0-136-generic running on amd64
  Java; VM; Vendor= 11.0.10; OpenJDK 64-Bit Server VM 11.0.10+9-Ubuntu-0ubuntu1.18.04; Ubuntu
  Runtime = OpenJDK Runtime Environment 11.0.10+9-Ubuntu-0ubuntu1.18.04
  Java Home   = /usr/lib/jvm/java-11-openjdk-amd64
  System Locale; Encoding = fr_FR (mynbp); UTF-8
  Home Directory  = /home/richard
  Current Directory   = /home/richard/NetBeans12Projects/NBPlatform/MyNbp
  User Directory  = /home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/testuserdir
  Cache Directory = /home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/testuserdir/var/cache
  Installation    = /home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/cluster
    /home/richard/netbeans-12.0/netbeans/ide
    /home/richard/netbeans-12.0/netbeans/platform
    /home/richard/netbeans-12.0/netbeans/platform
  Boot & Ext. Classpath   = 
  Application Classpath   = /home/richard/netbeans-12.0/netbeans/platform/lib/boot.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-modules.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-util-lookup.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-util-ui.jar:/home/richard/netbeans-12.0/netbeans/platform/lib/org-openide-util.jar
  Startup Classpath   = /home/richard/netbeans-12.0/netbeans/platform/core/org-openide-filesystems-compat8.jar:/home/richard/netbeans-12.0/netbeans/platform/core/core.jar:/home/richard/netbeans-12.0/netbeans/platform/core/org-netbeans-libs-asm.jar:/home/richard/netbeans-12.0/netbeans/platform/core/core-base.jar:/home/richard/netbeans-12.0/netbeans/platform/core/org-openide-filesystems.jar:/home/richard/netbeans-12.0/netbeans/platform/core/asm-tree-7.2.jar:/home/richard/netbeans-12.0/netbeans/platform/core/asm-7.2.jar:/home/richard/netbeans-12.0/netbeans/platform/core/asm-commons-7.2.jar:/home/richard/NetBeans12Projects/NBPlatform/MyNbp/build/cluster/core/locale/core_mynbp.jar
---
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.xml.text] use org.netbeans.modules.editor.deprecated.pre65formatting which is deprecated.
WARNING [org.netbeans.core.modules]: the modules [org.netbeans.modules.xml.text] use org.netbeans.modules.editor.structure which is deprecated.
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.parsing.impl.indexing.IndexingModule$Startup
java.lang.IllegalStateException: No ActiveDocumentProvider instance in global lookup.
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.(RepositoryUpdater.java:1330)
	at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.getDefault(RepositoryUpdater.java:167)
	at org.netbeans.modules.parsing.impl.indexing.IndexingModule$Startup.run(IndexingModule.java:48)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
	at org.openide.util.lookup.Lookup

Re: [Netbeans Platform] Tutorials are unusable since transition to Apache

2021-03-06 Thread Richard

Thank you all for your answers and the links.

Geertjan, I do not understand why the transfer to Apache is so complex 
and needs to change from html format to asciidoc format, thus removing 
the screenshots, but this is beyond the scope of this mail. Of course, 
screenshots are welcome, but not needed if the text of the tutorial 
gives enough details and is OK. Thank you for the cleaned piece of code, 
I could rebuild and run the XML tutorial.


I cannot contribute to improve tutorials if I do not understand them, as 
my knowledge in Java and Netbeans is rather low. But I consider that 
pointing out errors in the doc is also a contribution. Maybe the users 
list is not the right place to do that, but I don't want to do anymore 
and create a new account on github in order to contribute, at least 
until I have a better knowledge to be efficient.


Maybe you think that I am only a "consumer", but I am still at the 
learning stage with the Netbeans Platform. I am reading the 
nbp4beginners book, and I need also good tutorials. But you can't say 
that I am only a "consumer" : I know what is an open source project and 
a community, and I am a contributor for the community of Apache 
OpenOffice and LibreOffice users for which I spent most of my free time 
using Netbeans to develop and update a JavaDesktop tool that helps to 
repair corrupted documents (ODFRepar tool).


Richard

Le 06/03/2021 à 20:58, Geertjan Wielenga a écrit :
Everything as it was before worked fine for you. Not for me. :-) I was 
working on them all on my own -- and that is not how open source is 
supposed to work.


We're in Apache now, which means you get involved -- you don't say "I 
do not know where and how to fill an issue", instead you say: "Where 
do I go and how do I fill out an issue?"


And that is here:

https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-5397?filter=allopenissues

Also, all the tutorials are now on GitHub. Including the one you're 
referring to:


https://github.com/apache/netbeans-website/blob/master/netbeans.apache.org/src/content/tutorials/nbm-xmleditor.asciidoc

I've already fixed the broken code via this pull request, as a result 
of your mail:


https://github.com/apache/netbeans-website/pull/532

Nothing here is "rather disappointing" -- everything is in progress, 
including the tutorials. The big difference now is that you're in a 
project where you're no longer a consumer, you're a contributor.


Yes, the tutorials have been transferred from HTML to Asciidoc on 
GitHub and the process is far from complete. Your mail has motivated 
me to commit to working on one of the NetBeans Platform tutorials per 
day, it will take a while to get everything up to scratch -- and a 
simple copy and paste of the tutorials would not have done the trick, 
since the old ones were HTML and the new ones are Asciidoc on GitHub 
-- so that you can now contribute too.


Welcome to Apache. :-)

Gj


On Sat, Mar 6, 2021 at 8:51 PM Richard Grenon <mailto:rgreno...@gmail.com>> wrote:


Hello Geertjan.

Netbeans Platform concepts are not easy to understand (I have
purchased the book for beginners), and wrong tutorials are rather
discouraging.

I do not know where and how to fill an issue, and I discovered the
problem for the XML editor tutorial this evening. The old tutorial
has gone and the new one is wrong. You can have a look on this
tutorial that is rather short.

Only the first screenshot for creating the project is correct. All
following screenshots do not follow the text, and some of them
seem to be from other applications.

Finally, the short piece of code given for the method is melted
with html links, so it is unreadable.

I cannot provide correct screenshots and code because I have
erased my first test of this tutorial, and the html page with the
correct old version of the tutorial has gone.

I do not know if other Apache tutorials are wrong, but the
transfer of this one is rather disappointing. Why the old version
from netbeans.org <http://netbeans.org> has not been simply copied
to a new Apache page rather than rewritten with errors ? For me,
correcting the tutorial would be simply to provide a link pointing
on the old version.

So the question is : where can we find all the tutorials from the
old netbeans.org <http://netbeans.org>?

Richard

Le sam. 6 mars 2021 à 20:05, Geertjan Wielenga
mailto:geertjan.wiele...@googlemail.com>> a écrit :


Which screenshots specifically are wrong — I’d be happy to
collaborate with you to work on the tutorials that you would
like fixed. If you create a new issue for each tutorial you’d
like to work together on, with very precise descriptions of
what is wrong, ideally providing the correct screenshot or
code, and otherwise just being pre

Re: [Netbeans Platform] Tutorials are unusable since transition to Apache

2021-03-06 Thread Richard Grenon
Hello Geertjan.

Netbeans Platform concepts are not easy to understand (I have purchased the
book for beginners), and wrong tutorials are rather discouraging.

I do not know where and how to fill an issue, and I discovered the problem
for the XML editor tutorial this evening. The old tutorial has gone and the
new one is wrong. You can have a look on this tutorial that is rather
short.

Only the first screenshot for creating the project is correct. All
following screenshots do not follow the text, and some of them seem to be
from other applications.

Finally, the short piece of code given for the method is melted with html
links, so it is unreadable.

I cannot provide correct screenshots and code because I have erased my
first test of this tutorial, and the html page with the correct old version
of the tutorial has gone.

I do not know if other Apache tutorials are wrong, but the transfer of this
one is rather disappointing. Why the old version from netbeans.org has not
been simply copied to a new Apache page rather than rewritten with errors ?
For me, correcting the tutorial would be simply to provide a link pointing
on the old version.

So the question is : where can we find all the tutorials from the old
netbeans.org?

Richard

Le sam. 6 mars 2021 à 20:05, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> a écrit :

>
> Which screenshots specifically are wrong — I’d be happy to collaborate
> with you to work on the tutorials that you would like fixed. If you create
> a new issue for each tutorial you’d like to work together on, with very
> precise descriptions of what is wrong, ideally providing the correct
> screenshot or code, and otherwise just being precise in saying what should
> be corrected, we can work on this together to improve the tutorials in
> order of your preference.
>
> What do you think?
>
> Gj
>
> On Sat, 6 Mar 2021 at 19:54, Richard  wrote:
>
>> Hello.
>>
>> Some days ago, I successfully performed a tutorial for XML Editor
>> extension. The link was :
>>
>> https://platform.netbeans.org/tutorials/nbm-xmleditor.html
>>
>> As I had removed this test from my disk, today I tried to perform again
>> this tutorial, but the link points now to :
>>
>> https://netbeans.apache.org/tutorials/nbm-xmleditor.html
>>
>> On this new link, the screenshots do not correspond to the text, and the
>> code given for the method "actionPerformed" is unreadable because it
>> contains links to javadoc html pages, and all these links point to the
>> Apache transition page :
>>
>> https://netbeans.apache.org/about/oracle-transition.html
>>
>> Please, could anybody check this tutorial (and maybe other tutorials) or
>> provide a link to the correct old version ?
>>
>> Richard
>>
>> -
>> 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
>>
>>


[Netbeans IDE] Uninstalling a user plugin

2021-03-05 Thread Richard

Hello

Using NB 12.0, I have installed the C/C++ plugin from NB 8.2 plugin 
portal, and it appears in the "User Installed plugins" category.


Then I have built a module using NB platform, I built an nbm file and I 
installed it in the IDE for some tests. It appears also in the "User 
installed plugins" category. But when I wanted to uninstall this test 
module, the only way was to check the "User installed plugins" category. 
So, both the C/C++ module and my test module were uninstalled, and I had 
to reinstall C/C++


So, my question are :
(1) is there a way for uninstalling a specific module in the "User 
installed plugins" category ?
(2) is it possible to create a new category when installing a user 
module or a downloaded module ?


Best regards

Richard

-
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: Javadoc generation from within NetBeans

2021-02-22 Thread Richard Grin
With NetBeans 12.1 (Windows 10), it's "generate-sources javadoc:javadoc" 
too and not "compiler:compile javadoc:javadoc".


Richard

Le 22/02/2021 à 16:07, Glenn Holmer a écrit :

On 2/21/21 9:24 PM, Bradley Willcott wrote:

I am using NB 12.1 on Linux.

When I right right-click on a project, then "Properties" -> "Actions" 
: "Generate Javadoc", I get this under 'Execute Goals:' 
"compiler:compile javadoc:javadoc".


In a new project (using 12.3-beta3), I get "generate-sources 
javadoc:javadoc". Same if I install fresh with a clean userdir.


I have no problems using the Generate Javadoc menu option on the 
project right-click menu.


With a modular project and source set to >= 9?


 org.apache.maven.plugins
 maven-javadoc-plugin
 3.2.0
 
   11
   false
org.apache.logging.*
 



Oh, by the way, this is the default setting :)


Not what I'm seeing (unless it's changed since 12.1).


-
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: net beans12.1 C++

2021-02-12 Thread Richard

Hello.

I don't know if CC++ is fully integrated in NB 12.2, but using NB 12.0, 
I followed what was told in its "features" page :
Until the code integration is complete, go to the Plugin Manager, 
enable the NetBeans IDE 8.2 Update Center, which lets you install the 
NetBeans IDE 8.2 modules providing C and C++ features.
Then I configured the Tool collection with my GNU gcc / g++ installation 
using the CC++ option panel.

Building a simple C project printing "Hello" works fine.

Richard

Le 12/02/2021 à 13:37, David Gradwell a écrit :


Agreed – the hyperlinks don’t work.  I’m running NetBeans 12.2 on Mac 
OS 11.2.1.


I found that:

brew install ccls

works and puts ccls at /opt/homebrew/Cellar/ccls.  When I point 
netbeans at that I think it works, but am struggling with including 
header files in my “Hello World” project.  Has anyone got an uptodate 
guide to using C/C++ on NetBeans 12 ?


Thanks

David G

*From: *Geertjan Wielenga 
*Date: *Friday, 12 February 2021 at 12:29
*To: *David Gradwell 
*Cc: *"users@netbeans.apache.org" 
*Subject: *Re: net beans12.1 C++

You're saying the hyperlinks don't work? When you click nothing happens?

Gj

On Fri, Feb 12, 2021 at 12:55 PM David Gradwell <mailto:da...@gradwell.com>> wrote:


Gj,

I’m trying to get C++ working.  In my installation of NetBeans
12.2 I see the Options screen shown below, but the blue ccls and
clangd links do not work.  What should they point to ?  Is this
worth an issue or is it already known ?

David G

*From: *Geertjan Wielenga mailto:geert...@apache.org>>
*Date: *Wednesday, 19 August 2020 at 07:22
*To: *Albert Flex mailto:albert-f...@foxmail.com>>
*Cc: *"users@netbeans.apache.org
<mailto:users@netbeans.apache.org>" mailto:users@netbeans.apache.org>>
*Subject: *Re: net beans12.1 C++

Click one or both of those links, download, and browse to what you
downloaded in the panel below.

Gj

On Wed, 19 Aug 2020 at 04:43, Albert Flex mailto:albert-f...@foxmail.com>> wrote:

Some body know how to deal with it?

*Error! Filename not specified.*

‍





Re: [Netbeans platform] Pov-Ray renderer tutorial

2021-01-18 Thread Richard

Thank you GeertJan. I will go to another NB Platform tutorial.

I have completed the excellent EventManager tutorial. As the feedback 
link is also broken (PR_CONNECT_RESET_ERROR), I have here two 
suggestions for a further update of this tutorial :


-  On step 2 that illustrates handling of multiple selections with Nodes :

https://platform.netbeans.org/tutorials/nbm-selection-2.html

I suggest to replace the second JLabel in the MyViewer window with a 
JTextArea. If you have multiple selections, the date properties are 
separated with a "," on the same line and the label length extends too 
much. When I tried to add a new line character after the "," separator, 
it was ignored by JLabel and all date properties remain on the same 
line. A JTextArea accepts the new line character and allows to display 
several date properties with one date property per line.


- On step 4 illustrating a custom date property editor :

https://platform.netbeans.org/tutorials/nbm-property-editors.html

It is asked to add the |swingx-all-1.6.4.jar| library that should be 
found in the ide/modules/ext folder of the Netbeans IDE directory. This 
swingx jar does not exist in my Netbeans 12 installation. Is this normal 
? As a workaround, I could find the swingx jar in my Netbeans 8.2 
installation. It would be nice to suggest a download link for this 
library if it is no longer included in the last Netbeans versions.


Richard

Le 18/01/2021 à 11:52, Geertjan Wielenga a écrit :
Pretty old tutorial and indeed the sources are gone on java.net 
<http://java.net>.


I'd recommend to not do this tutorial until it's been updated, which 
could take a while.


Gj

On Mon, Jan 18, 2021 at 11:39 AM Richard <mailto:rgreno...@gmail.com>> wrote:


Hello.

I would like now to run the Pov-Ray renderer tutorial using
Netbeans 12
with Linux x64 OpenJDK 11 :

https://platform.netbeans.org/tutorials/nbm-povray-1.html

- At first step, the file that are created in the "povfile" module
for
Povray File Support are not the same as shown in the tutorial, and
running the povsuite does not allow to open the "Favorites" window as
suggested.

- Going further in step 3 of the tutorial with setting
dependencies for
povsuite, running the povsuite complains about missing modules that
cannot be installed, although I have clicked on the "Resolve" button
when setting dependencies.

So I wanted to have a look at the source code of the tutorial wich
should be there :


http://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.1/tutorials/PovSuite

But all java.net <http://java.net> links are now broken ! Could
anyone say where I can
find the source of this tutorial ?

And as this tutorial was designed for Netbeans 7.1, is it always
runnable with Netbeans 12 ?

Richard

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

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





[Netbeans platform] Pov-Ray renderer tutorial

2021-01-18 Thread Richard

Hello.

I would like now to run the Pov-Ray renderer tutorial using Netbeans 12 
with Linux x64 OpenJDK 11 :


https://platform.netbeans.org/tutorials/nbm-povray-1.html

- At first step, the file that are created in the "povfile" module for 
Povray File Support are not the same as shown in the tutorial, and 
running the povsuite does not allow to open the "Favorites" window as 
suggested.


- Going further in step 3 of the tutorial with setting dependencies for 
povsuite, running the povsuite complains about missing modules that 
cannot be installed, although I have clicked on the "Resolve" button 
when setting dependencies.


So I wanted to have a look at the source code of the tutorial wich 
should be there :


http://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.1/tutorials/PovSuite

But all java.net links are now broken ! Could anyone say where I can 
find the source of this tutorial ?


And as this tutorial was designed for Netbeans 7.1, is it always 
runnable with Netbeans 12 ?


Richard

-
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: [Netbeans platform] Illegal reflective access warning

2021-01-15 Thread Richard Grenon
Geertjan, thank you for your reply.

I am continuing with this good tutorial.

Richard

Le ven. 15 janv. 2021 à 11:52, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> a écrit :

> It’s unrelated to your code, it refers to something one of the JARs is
> doing that is part of the NetBeans Platform. Don’t worry about it.
>
> Gj
>
> On Fri, 15 Jan 2021 at 11:49, Richard  wrote:
>
>> Hello.
>>
>> I am using Netbeans 12 on Linux Mint 19.3 x64 OS in order to perform the
>> four steps Netbeans platform tutorial "EventManager" which starts here :
>>
>> https://platform.netbeans.org/tutorials/nbm-selection-1.html
>>
>> I am able to run each step of the tutorial (currently the third one),
>> but I am always receiving this warning:
>>
>> > WARNING: An illegal reflective access operation has occurred
>> > WARNING: Illegal reflective access by
>> > org.netbeans.ProxyURLStreamHandlerFactory
>> > (file:/home/richard/netbeans-12.0/netbeans/platform/lib/boot.jar) to
>> > field java.net.URL.handler
>> > WARNING: Please consider reporting this to the maintainers of
>> > org.netbeans.ProxyURLStreamHandlerFactory
>> > WARNING: Use --illegal-access=warn to enable warnings of further
>> > illegal reflective access operations
>> > WARNING: All illegal access operations will be denied in a future
>> release
>>
>> I searched on internet and I found that other users reported this kind
>> of warning (but not for the same class), but I did not find something
>> that could help me.
>>
>> Is this warning already reported to the maintainers and the bug
>> corrected in the last Netbeans 12.2 version ?
>>
>> Thanks in advance for infos.
>>
>> Richard
>>
>>
>> -
>> 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
>>
>>


[Netbeans platform] Illegal reflective access warning

2021-01-15 Thread Richard

Hello.

I am using Netbeans 12 on Linux Mint 19.3 x64 OS in order to perform the 
four steps Netbeans platform tutorial "EventManager" which starts here :


https://platform.netbeans.org/tutorials/nbm-selection-1.html

I am able to run each step of the tutorial (currently the third one), 
but I am always receiving this warning:



WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.netbeans.ProxyURLStreamHandlerFactory 
(file:/home/richard/netbeans-12.0/netbeans/platform/lib/boot.jar) to 
field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further 
illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release


I searched on internet and I found that other users reported this kind 
of warning (but not for the same class), but I did not find something 
that could help me.


Is this warning already reported to the maintainers and the bug 
corrected in the last Netbeans 12.2 version ?


Thanks in advance for infos.

Richard


-
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: Sudden erratic behaviour by Netbeans 12.0

2020-10-01 Thread Richard Grin

Hi,

Configuration for a user : 
c:\Users\\AppData\Roaming\NetBeans\


NetBeans cache with Windows : 
c:\Users\\AppData\Local\NetBeans\Cache\


Check these directories with the menu Help > About (User directory and 
Cache directory).


Regards,

Richard

Le 01/10/2020 à 11:30, David Gradwell a écrit :


Hi,

After months of using NetBeans 12.0 it has started behaving erratically.

Specifically:

 1. A long established and unchanged Maven project re-compiled and
produced the expected .jar but two source files were flagged as
errored but no line in either file had an error flag.
 2. None of the other projects (at least a dozen !) that depend on the
project in question could see the project.

Clean and build doesn’t help.

Closing and re-opening the project doesn’t help.

Questions:

 1. How do I clear the NetBeans cache ?
 2. Has anyone else seen anything like this ?

Regards

David Gradwell



Alt-insert "Use an Entity Manager" does not work

2020-09-25 Thread Richard Grin

Hello,

In a Maven Web application, NetBeans 12.1, Windows 10.

Alt-Insert "Use an Entity Manager..." in an EJB stateless inserts code 
for a bean managed transaction, even if the transaction is managed by 
the container.


Code inserted:

  @PersistenceContext(unitName = "customerPU")
  private EntityManager em;
  @Resource
  private javax.transaction.UserTransaction utx;

  public void persist(Object object) {
    try {
  utx.begin();
  em.persist(object);
  utx.commit();
    } catch (Exception e) {
  Logger.getLogger(getClass().getName()).log(Level.SEVERE, 
"exception caught", e);

  throw new RuntimeException(e);
    }
  }

Code that should have been inserted:

@PersistenceContext(unitName = "customerPU")
  private EntityManager em;

public void persist(Object object) {
  em.persist(object);
}

This is a regression. It worked in older versions of NetBeans but I 
can't remember which ones.


Richard


-
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: nbm-maven-plug for java14

2020-06-18 Thread Richard Linsdale

Eric,

I will see what I can do.

However it does seem to indicate that Java14 development using Maven is 
not supported (at least for NBM plugin or NB Platform application 
development). I guess this should be documented somewhere otherwise  
others may start down the path I have taken and then hit problems.


I would have hoped that whenever a release of Netbeans occurred which 
included support for a later version of Java, the release process would 
ensuring the nbm-maven-plugin was updated as well. Could this point be 
considered as you complete the 12.0 release retrospective?


regards

Richard


On 18/06/2020 14:07, Eric Barboni wrote:

Hi,
  I currently don't have jdk 14 installed. By compiling 4.6-SNAPSHOT on your 
machine you can test if your build pass jdk 14.
I'm not sure it will because some dependencies of nbm-maven plugin may use old 
dependencies that cannot "parse" jdk 14 jar.

Best Regards
Eric

-Message d'origine-
De : Richard Linsdale 
Envoyé : dimanche 14 juin 2020 00:12
À : Emilian Bold 
Cc : NetBeans Mailing 
Objet : Re: nbm-maven-plug for java14

Thanks for the reply.  Your reference is the the GitHub source repository, I 
was hoping for a maven repository url which holds the binary of the plugin 
snapshot (4.6-SNAPSHOT).

richard

On 13/06/2020 23:02, Emilian Bold wrote:

https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin

--emi

On Sun, Jun 14, 2020 at 12:45 AM Richard Linsdale
 wrote:

I have just upgraded to Netbeans 12.0 and java14 and am have trouble in getting 
a suitable version of the nbm-maven-plug which works in this environment.  
Version 4.5 does not accept Java14 compiled classes.  The documentation for the 
plugin states the latest version is 4.6-SNAPSHOT, but I can't find any details 
of where to find snapshot releases for this plugin.  Does anyone know the 
repository url?  Otherwise can I ask when the 4.6 version is planned to be 
released (and by implication will be available from Maven Central).

Product Version: Apache NetBeans IDE 12.0

Java: 14.0.1; OpenJDK 64-Bit Server VM 14.0.1+7

Runtime: OpenJDK Runtime Environment 14.0.1+7

System: Mac OS X version 10.14.6 running on x86_64; UTF-8; en_GB (nb)

User directory: /Users/richard/Library/Application
Support/NetBeans/12.0

Cache directory: /Users/richard/Library/Caches/NetBeans/12.0

thanks for any information

Richard

-
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



-
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: nbm-maven-plug for java14

2020-06-13 Thread Richard Linsdale
Thanks for the reply.  Your reference is the the GitHub source 
repository, I was hoping for a maven repository url which holds the 
binary of the plugin snapshot (4.6-SNAPSHOT).


richard

On 13/06/2020 23:02, Emilian Bold wrote:

https://github.com/apache/netbeans-mavenutils-nbm-maven-plugin

--emi

On Sun, Jun 14, 2020 at 12:45 AM Richard Linsdale
 wrote:

I have just upgraded to Netbeans 12.0 and java14 and am have trouble in getting 
a suitable version of the nbm-maven-plug which works in this environment.  
Version 4.5 does not accept Java14 compiled classes.  The documentation for the 
plugin states the latest version is 4.6-SNAPSHOT, but I can't find any details 
of where to find snapshot releases for this plugin.  Does anyone know the 
repository url?  Otherwise can I ask when the 4.6 version is planned to be 
released (and by implication will be available from Maven Central).

Product Version: Apache NetBeans IDE 12.0

Java: 14.0.1; OpenJDK 64-Bit Server VM 14.0.1+7

Runtime: OpenJDK Runtime Environment 14.0.1+7

System: Mac OS X version 10.14.6 running on x86_64; UTF-8; en_GB (nb)

User directory: /Users/richard/Library/Application Support/NetBeans/12.0

Cache directory: /Users/richard/Library/Caches/NetBeans/12.0

thanks for any information

Richard

-
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



nbm-maven-plug for java14

2020-06-13 Thread Richard Linsdale
I have just upgraded to Netbeans 12.0 and java14 and am have trouble in 
getting a suitable version of the nbm-maven-plug which works in this 
environment.  Version 4.5 does not accept Java14 compiled classes.  The 
documentation for the plugin states the latest version is 4.6-SNAPSHOT, 
but I can't find any details of where to find snapshot releases for this 
plugin.  Does anyone know the repository url?  Otherwise can I ask when 
the 4.6 version is planned to be released (and by implication will be 
available from Maven Central).


*Product Version:* Apache NetBeans IDE 12.0

*Java:* 14.0.1; OpenJDK 64-Bit Server VM 14.0.1+7

*Runtime:* OpenJDK Runtime Environment 14.0.1+7

*System:* Mac OS X version 10.14.6 running on x86_64; UTF-8; en_GB (nb)

*User directory:* /Users/richard/Library/Application Support/NetBeans/12.0

*Cache directory:* /Users/richard/Library/Caches/NetBeans/12.0

thanks for any information

Richard



Re: How to change font size of menubars in netbeans 11.3

2020-04-25 Thread Richard Grin

Hi,

You can launch NetBeans with this type of command (write  your 
executable instead of mine at the beginning) :


"C:\Program Files\NetBeans-11.3\netbeans\bin\netbeans64.exe" --fontsize 
30 --console suppress


Richard

Le 25/04/2020 à 05:53, Brain Rebooting a écrit :

HI,

I am running Apache Netbeans 11.3 in ubuntu 18.04 . Here how I can 
change font size for menubars?


Samiul alom sium


-
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: I cannot find the MySQL Plugin

2020-04-19 Thread Richard Grin
Obviously, you must change "customer" in the step 2 to the name of your 
database...


Le 19/04/2020 à 14:45, Richard Grin a écrit :


Hi Francis,

It's easy to use MySQL 8.0.19 with NetBeans.

1. In the tab Services, open the entry Databases > Drivers. If you 
don't already have an entry for MySQL, create a new one.


If you create a new one, a new window is opened. Add the path to the 
jar for the MySQL driver (path to mysql-connector-java-8.0.19.jar). 
For the driver class, enter com.mysql.cj.jdbc.Driver. Give any name 
for the Name.


If you already have an entry for MySQL, clic on Customize to check the 
information.


2. Right click on the driver and choose "Connect Using...". A "New 
Connection Wizard" window is displayed. In the Database field, enter 
jdbc:mysql://localhost:3306/customer?useTimezone=true=UTC 
(change the serverTimeZone if you want).


Enter the password and Test Connection.

Click Finish.


Perhaps there is another way to use MySQL into NetBeans, but the way I 
just described above worked for me.


Regards,

Richard


Le 19/04/2020 à 14:20, Dr Francis Greaves a écrit :

Dear All
I thought I would move from Oracle Netbeans 8.2 to the Apache 11.3 
version of Netbeans, only to come unstuck at the absence of a MySQL 
Plugin. I know there is a Database connection in the Services, but I 
cannot get that to connect.

Is there an alternative?
Looks Like I will stick with the 8.2 Netbeans for now.
Regards
Francis




Re: I cannot find the MySQL Plugin

2020-04-19 Thread Richard Grin

Hi Francis,

It's easy to use MySQL 8.0.19 with NetBeans.

1. In the tab Services, open the entry Databases > Drivers. If you don't 
already have an entry for MySQL, create a new one.


If you create a new one, a new window is opened. Add the path to the jar 
for the MySQL driver (path to mysql-connector-java-8.0.19.jar). For the 
driver class, enter com.mysql.cj.jdbc.Driver. Give any name for the Name.


If you already have an entry for MySQL, clic on Customize to check the 
information.


2. Right click on the driver and choose "Connect Using...". A "New 
Connection Wizard" window is displayed. In the Database field, enter 
jdbc:mysql://localhost:3306/customer?useTimezone=true=UTC 
(change the serverTimeZone if you want).


Enter the password and Test Connection.

Click Finish.


Perhaps there is another way to use MySQL into NetBeans, but the way I 
just described above worked for me.


Regards,

Richard


Le 19/04/2020 à 14:20, Dr Francis Greaves a écrit :

Dear All
I thought I would move from Oracle Netbeans 8.2 to the Apache 11.3 
version of Netbeans, only to come unstuck at the absence of a MySQL 
Plugin. I know there is a Database connection in the Services, but I 
cannot get that to connect.

Is there an alternative?
Looks Like I will stick with the 8.2 Netbeans for now.
Regards
Francis




Error: Could not find or load main class Initializing view, please wait ...

2020-04-16 Thread Richard Schmidt
I just completed a first time installation of apache netbeans 11.0 on a
windows 10 system. I have previously installed netbeans 8.2 which is using
jdk.1.8.0_241 installed in C:/ProgramFiles (x86)/java. I installed netbeans
11.0 in C;/Program Files/NetBeans 11.0/netbeans.

netbeans64.exe would not start, complaining that it could not find jdk 8 or
higher. After setting netbeans_jdkhome to my jdk1.8.0_241 path,
netbeans64.exe started fine. I then attempted to create my first javaFX
project using ANT. The project was created. But when I run it, I get a
window displaying Available Classes, but only containing the text
"Initializing view, please wait..." and when I click the text and then
click "Select Class",the output to the console contains the following error

Executing
C:\Users\don\Documents\NetBeansProjects\NewTest\dist\run2028048121\NewTest.jar
using platform C:\Program Files (x86)\java\jdk1.8.0_241\jre/bin/java
Error: Could not find or load main class Initializing view, please wait ...

Can anyone tell me what to do to get this program to run? Thanks.


Re: Netbeans and Derby

2020-03-20 Thread Richard Grin
Hello,

In the tab Services of NetBeans you have an entry Databases > Drivers. Add  the 
driver here: Cutomize and add the jar. Which version of Derby do you have? For 
the version 10.15, you must add 3 files: derbyclient.jar, derbyshared.jar and 
derbytools.jar. For the older versions, I think you have only to add 
derbyclient.jar (verify...).

Hope it help,

Richard

Le 19/03/2020 à 23:28, Klerman a écrit :
Hello, Richard
I want to give a try to the code generation from entities with Apache Netbeans.
Following some tutorials, I installed Netbeans 11.3 and Apache Derby on a 
computer with Ubuntu.
Some other tutorials show how to generate code, no programming, for simple CRUD 
cases.
But I can't make it work, because every time I select Connect to the Database 
Connection, I receive the error "not suitable jdbc driver".
All the information that I have found relates to the case when people receive 
that error when trying to open a connection to the database from code, which is 
not my case.
I haven't installed Glassfish, nor Payara.
Thanks for your help.



Re: NetBeans and Derby

2020-03-18 Thread Richard Grin
Hello,

Do you use Payara?

Richard



Envoyé depuis mon smartphone Samsung Galaxy.


 Message d'origine 
De : Klerman 
Date : 19/03/2020 05:43 (GMT+01:00)
À : users@netbeans.apache.org
Objet : NetBeans and Derby

Hello,
I'm not sure if this is the right place to post this question.
I'm trying to configure NetBeans 11.3 so it can be used with Derby.
I guess that Derby is correctly installed, as I can execute commands with its 
utilities in the Ubuntu Terminal.
I registered the Derby software in NetBeans, with Databases/Java Db/Properties.
NetBeans created a sample database automatically, but when I try to connect to 
it with Database Connection/Connect, I always get a message saying that a 
suitable jdbc client driver can't he found.
Ubuntu 18.04.4 LTS
Java 11.0.6
Apache Netbeans 11.3
Derby 10.15.1.3

Any suggestion will be greatly appreciated.

Klerman Gutierrez




Re: How to choose the browser for the administration console of Payara?

2020-03-05 Thread Richard Grin
Thanks Geertjan.

My system's default browser is Chrome, so I have changed the Web browser in the 
General preferences and now Chrome is used for the admin console.

So simple... :-)

Richard

Le 05/03/2020 à 23:23, Geertjan Wielenga a écrit :
Probably the Options Window or change your system’s default browser.

Gj

On Thu, 5 Mar 2020 at 23:04, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

NetBeans 11.3, Windows 10.

In the Services tab, entry Servers > Payara Server 5.201, right click >
"View Domain Admin Console" launches Internet Explorer.

I'd rather Chrome or Firefox. How to configure it?

Richard



How to choose the browser for the administration console of Payara?

2020-03-05 Thread Richard Grin
Hi,

NetBeans 11.3, Windows 10.

In the Services tab, entry Servers > Payara Server 5.201, right click > 
"View Domain Admin Console" launches Internet Explorer.

I'd rather Chrome or Firefox. How to configure it?

Richard



Re: Internationalization with Netbeans

2020-02-04 Thread Richard Grin




Envoyé depuis mon smartphone Samsung Galaxy.


 Message d'origine 
De : Jerome Lelasseux 
Date : 04/02/2020 14:59 (GMT+01:00)
À : users@netbeans.apache.org
Objet : Internationalization with Netbeans

Hi,

I need to internationalize my Netbeans platform app and I've never done this 
before, I have a few questions.

I tried the Netbeans internationalization (NB11.1) wizard which looks very 
convenient, except that the wizard ignores the // NOI18N comment, so I have to 
manually uncheck all the strings which do not need translation. Is it normal ? 
What tool is using //NOI18N ?

Also regarding in-file declarations such as 
@Messages("CTL_ChangeQuantization=Quantization..."), I understand I need to 
manually add the key in each localized property bundle. I have the feeling that 
actually it's more convenient to not use @Messages(), and rather hard-code the 
strings then use the Wizard to convert them into properties. Am I right or do I 
miss something ?

Jerome


Re: Adding Javadoc containing 'element-list' for a library added to a project

2019-11-29 Thread Richard Grin
Thanks Abhinav. I had not noticed this little icon "Show documentation in 
external web brower button".

When I click on this button, I receive a "Page not found" error (404). Yet I 
have the good URL for the javadoc of the JDK 11 (as I see in the Java Platform 
Manager).

I use NetBeans 11.2 without the "nb-javac Java editing support library".

Richard

Le 29/11/2019 à 15:00, A S a écrit :
Hi Richard,

I think it wasn't the correct name. What I called "Hint window" should be 
called "pop-up documentation window" which appears if you press Ctrl+Space 
while typing.
You may also enable its appearance automatically under 
Tools->Options->Editor->Code Completion

The behavior I reported about being able to see correct location in a browser 
is for the case where I have copied the elements-list to a file named 
packages-list in the Javadoc of the external library.
The pop-up documentation window only shows the type definitions for the 
external library, but is otherwise empty. But I am guessing this is because the 
Javadoc is not in the format expected by Netbeans and I am merely hacking it 
with the renaming trick.

Below is an example how it should look like. Here sourcing from online Javadoc 
for JDK11.
[Netbeans_javadoc.png]

Best regards
Abhinav


On Thu, Nov 28, 2019 at 11:33 PM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi Abhinav,

What is this "hint window"? How do you open it?

Richard

Le 28/11/2019 à 16:00, A S a écrit :
One additional info: With Alt-F1(or context menu) or by clicking on the "Show 
documentation in external web browser" button in the hint window, I do land to 
the correct part of the documentation in the external browser. Just that the 
documentation doesn't show up in the hint window in the editor.

On Thu, Nov 28, 2019 at 12:31 PM A S 
mailto:abhinav.sharma.s...@gmail.com>> wrote:
Thanks for your response Emi! I haven't tried with any other libraries or any 
other JDK versions to try other Javadoc formats. To be frank I only got to know 
these two possibilities because of the issue here, and am not aware of any 
other formats.

I am hoping some more experienced users have some insight here, and can 
guide/help me how in filing a bug if this is one.

Regards
Abhinav


On Wed, Nov 27, 2019 at 6:40 PM Emilian Bold 
mailto:emilian.b...@gmail.com>> wrote:
This sounds like a NetBeans bug.

In JDK 10, "element-list" was added to better support modules. So,
does NetBeans work with other modern Javadocs?

Maybe there is something subtler: does a library in a JDK 8 project
display Javadoc 11-style documentation?

--emi

On Wed, Nov 27, 2019 at 4:45 PM A S 
mailto:abhinav.sharma.s...@gmail.com>> wrote:
>
> Hello,
>
> I am only sporadically using Netbeans for some small projects, so my 
> apologies if the question is too amateurish. I was previously using Netbeans 
> 8.2, and the platform I was working with was Java 8.
>
> With a change to JDK 11 for the project, I switched up to Apache Netbeans 
> 11.2. For one of the libraries that I am using for the project, when I try to 
> add the Javadoc to the library, Netbeans complains because no package-list 
> exist. I see that the JDK 11 version has an 'element-list' in the javadoc 
> folder with contents similar to the 'package-list' of JDK 8 version. If I 
> copy the element-list and rename the file to package-list, Netbeans seems to 
> be able to add the Javadoc. However this only allows the path to be added as 
> javadoc, and the documentation isn't actually available when referencing a 
> method in the editor.
>
> My google searches are quit inconclusive on whether there is a way to read 
> such a Javadoc from Netbeans. Does anyone have a concrete answer on whether 
> this is possible? If yes, how?
>
> Best regards
> Abhinav Sharma


Re: Abstract methods not implemented

2019-11-28 Thread Richard Grin
It is not installed. Perhaps I must install it?

Richard

Le 29/11/2019 à 06:19, Geertjan Wielenga a écrit :

Does uninstalling nb-javac solve this problem?

Gj


On Fri, 29 Nov 2019 at 05:24, William Reynolds 
mailto:wnreyno...@stellarscience.com>> wrote:
Yes, its' a known bug in 11.2.
https://issues.apache.org/jira/browse/NETBEANS-3340 (it has been
reported numerous times, each one which links back to 3300).

I've had to go back to 11.1, since this bug makes the ide unusable.

On 11/28/2019 6:05 AM, Richard Grin wrote:
> Hello,
>
> If I write this code:
>
> Comparator c = new Comparator<>() {
>
> };
>
> I get an error " is not abstract and does not override
> abstract method Compare(Town, Town) in Comparator. It's normal, but, if
> I click on the red button at the left of the code, and then on
> "implement all abstract method", nothing happens.
>
> Is it a known problem?
>
> Richard
>
>
>
> -
> To unsubscribe, e-mail: 
> users-unsubscr...@netbeans.apache.org<mailto:users-unsubscr...@netbeans.apache.org>
> For additional commands, e-mail: 
> users-h...@netbeans.apache.org<mailto:users-h...@netbeans.apache.org>
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>

--
William Reynolds, Ph.D.
Stellar Science, LLC
wnreyno...@stellarscience.com<mailto:wnreyno...@stellarscience.com>
www.stellarscience.com<http://www.stellarscience.com>
877-763-8268 x710 (v)



Re: Adding Javadoc containing 'element-list' for a library added to a project

2019-11-28 Thread Richard Grin
Hi Abhinav,

What is this "hint window"? How do you open it?

Richard

Le 28/11/2019 à 16:00, A S a écrit :
One additional info: With Alt-F1(or context menu) or by clicking on the "Show 
documentation in external web browser" button in the hint window, I do land to 
the correct part of the documentation in the external browser. Just that the 
documentation doesn't show up in the hint window in the editor.

On Thu, Nov 28, 2019 at 12:31 PM A S 
mailto:abhinav.sharma.s...@gmail.com>> wrote:
Thanks for your response Emi! I haven't tried with any other libraries or any 
other JDK versions to try other Javadoc formats. To be frank I only got to know 
these two possibilities because of the issue here, and am not aware of any 
other formats.

I am hoping some more experienced users have some insight here, and can 
guide/help me how in filing a bug if this is one.

Regards
Abhinav


On Wed, Nov 27, 2019 at 6:40 PM Emilian Bold 
mailto:emilian.b...@gmail.com>> wrote:
This sounds like a NetBeans bug.

In JDK 10, "element-list" was added to better support modules. So,
does NetBeans work with other modern Javadocs?

Maybe there is something subtler: does a library in a JDK 8 project
display Javadoc 11-style documentation?

--emi

On Wed, Nov 27, 2019 at 4:45 PM A S 
mailto:abhinav.sharma.s...@gmail.com>> wrote:
>
> Hello,
>
> I am only sporadically using Netbeans for some small projects, so my 
> apologies if the question is too amateurish. I was previously using Netbeans 
> 8.2, and the platform I was working with was Java 8.
>
> With a change to JDK 11 for the project, I switched up to Apache Netbeans 
> 11.2. For one of the libraries that I am using for the project, when I try to 
> add the Javadoc to the library, Netbeans complains because no package-list 
> exist. I see that the JDK 11 version has an 'element-list' in the javadoc 
> folder with contents similar to the 'package-list' of JDK 8 version. If I 
> copy the element-list and rename the file to package-list, Netbeans seems to 
> be able to add the Javadoc. However this only allows the path to be added as 
> javadoc, and the documentation isn't actually available when referencing a 
> method in the editor.
>
> My google searches are quit inconclusive on whether there is a way to read 
> such a Javadoc from Netbeans. Does anyone have a concrete answer on whether 
> this is possible? If yes, how?
>
> Best regards
> Abhinav Sharma


Abstract methods not implemented

2019-11-28 Thread Richard Grin
Hello,

If I write this code:

Comparator c = new Comparator<>() {

};

I get an error " is not abstract and does not override 
abstract method Compare(Town, Town) in Comparator. It's normal, but, if 
I click on the red button at the left of the code, and then on 
"implement all abstract method", nothing happens.

Is it a known problem?

Richard




Re: Can't build newly cloned project.

2019-10-30 Thread Richard Grin
I was not clear enough :

I think that the problem about Java 11.0.5 existed before for other versions ** 
of Java SE **. (not of NetBeans).

Le 30/10/2019 à 10:31, Neil C Smith a écrit :


On Wed, 30 Oct 2019, 09:16 Richard Grin, 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

I think that the problem about Java 11.0.5 existed before for other versions.

It was introduced in JDK updates in mid-Oct, hence why it wasn't picked up 
earlier and the workaround only just made it into 11.2

Best wishes,

Neil


Re: Can't build newly cloned project.

2019-10-30 Thread Richard Grin
I think that the problem about Java 11.0.5 existed before for other versions. 
Did you try the workaround given by Lazlo?

Le 30/10/2019 à 00:35, Greenberg, Gary a écrit :
No, I am still running it on Java 8.

C:\Users\ggreenbe>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 

Sent: Tuesday, October 29, 2019 4:32 PM
To: users@netbeans.apache.org
Subject: Re: Can't build newly cloned project.


You must be running your IDE on new JDK 11.0.5

You need to install 11.2 to overcome that problem or

Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and 
https://issues.apache.org/jira/browse/NETBEANS-3253

The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program 
Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" 
-Dmaven.ext.class.path=\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" 
-Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): 
Malformed argument has embedded quote: "C:\Program 
Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program 
Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" 
-Djava.net.useSystemProxies=true clean install

Previously I didn’t get anything like that.
Any ideas how to fix it?

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



Re: Cannot run program "cmd": Malformed argument has embedded quote

2019-10-23 Thread Richard Grin
Thank you very much Lazlo and Neil. I have sent the information to all the 
students in my course starting this Monday.

Le 23/10/2019 à 23:20, Laszlo Kishalmi a écrit :

Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and 
https://issues.apache.org/jira/browse/NETBEANS-3253

It has been solved for 11.2, but the solution in NETBEANS-3253 can be applied 
on earlier versions.

On 10/23/19 2:14 PM, Richard Grin wrote:

Is this problem known? 
https://stackoverflow.com/questions/58411279/java-with-maven-wouldnt-build-cannot-run-program-cmd-malformed-argument-has

Is there a recommended workaround? Is it really a problem with the JDK version?

The error message when a project of type Maven - Web application is created: 
Cannot run program "cmd" (in directory 
"C:\Users\admin\Documents\NetBeansProjects"): Malformed argument has embedded 
quote:

Some of my students have this problem with the JDK 11.0.5.

On my computer, no problem with

Product Version: Apache NetBeans IDE 11.1

Java: 12; OpenJDK 64-Bit Server VM 12+33

Runtime: OpenJDK Runtime Environment 12+33

The command on my computer (perhaps the problem comes from the part in bold 
type?):

cd C:\Users\grin\Documents\Projets NetBeans pour TPs Java EE; 
JAVA_HOME=C:\\autresprogrammes\\java\\jdk-11 cmd /c "\"\"C:\\Program 
Files\\NetBeans-11.1\\netbeans\\java\\maven\\bin\\mvn.cmd\" 
-DarchetypeGroupId=io.github.juneau001 -DarchetypeArtifactId=webapp-javaee8 
-DarchetypeVersion=1.3 
-DarchetypeRepository=https://repo.maven.apache.org/maven2 
-DgroupId=fr.uns.grin -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT 
-Dpackage=fr.uns.grin.mavenproject1 
-Dbasedir=\"C:\\Users\\grin\\Documents\\Projets NetBeans pour TPs Java EE\" 
-Darchetype.interactive=false -Dmaven.ext.class.path=\"C:\\Program 
Files\\NetBeans-11.1\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" 
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate\""

The complete error message on a student's computer:

Cannot run program "cmd" (in directory 
"C:\Users\admin\Documents\NetBeansProjects"): Malformed argument has embedded 
quote: "F:\Program Files (x86)\NetBeans-11.1\netbeans\java\maven\bin\mvn.cmd" 
-DarchetypeGroupId=io.github.juneau001 -DarchetypeArtifactId=webapp-javaee8 
-DarchetypeVersion=1.3 
-DarchetypeRepository=https://repo.maven.apache.org/maven2 
-DgroupId=com.mycompany -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT 
-Dpackage=com.mycompany.mavenproject1 
-Dbasedir=C:\Users\admin\Documents\NetBeansProjects 
-Darchetype.interactive=false -Dmaven.ext.class.path="F:\Program Files 
(x86)\NetBeans-11.1\netbeans\java\maven-nblib\netbeans-eventspy.jar" 
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate


Cannot run program "cmd": Malformed argument has embedded quote

2019-10-23 Thread Richard Grin
Is this problem known? 
https://stackoverflow.com/questions/58411279/java-with-maven-wouldnt-build-cannot-run-program-cmd-malformed-argument-has

Is there a recommended workaround? Is it really a problem with the JDK version?

The error message when a project of type Maven - Web application is created: 
Cannot run program "cmd" (in directory 
"C:\Users\admin\Documents\NetBeansProjects"): Malformed argument has embedded 
quote:

Some of my students have this problem with the JDK 11.0.5.

On my computer, no problem with

Product Version: Apache NetBeans IDE 11.1

Java: 12; OpenJDK 64-Bit Server VM 12+33

Runtime: OpenJDK Runtime Environment 12+33

The command on my computer (perhaps the problem comes from the part in bold 
type?):

cd C:\Users\grin\Documents\Projets NetBeans pour TPs Java EE; 
JAVA_HOME=C:\\autresprogrammes\\java\\jdk-11 cmd /c "\"\"C:\\Program 
Files\\NetBeans-11.1\\netbeans\\java\\maven\\bin\\mvn.cmd\" 
-DarchetypeGroupId=io.github.juneau001 -DarchetypeArtifactId=webapp-javaee8 
-DarchetypeVersion=1.3 
-DarchetypeRepository=https://repo.maven.apache.org/maven2 
-DgroupId=fr.uns.grin -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT 
-Dpackage=fr.uns.grin.mavenproject1 
-Dbasedir=\"C:\\Users\\grin\\Documents\\Projets NetBeans pour TPs Java EE\" 
-Darchetype.interactive=false -Dmaven.ext.class.path=\"C:\\Program 
Files\\NetBeans-11.1\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" 
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate\""

The complete error message on a student's computer:

Cannot run program "cmd" (in directory 
"C:\Users\admin\Documents\NetBeansProjects"): Malformed argument has embedded 
quote: "F:\Program Files (x86)\NetBeans-11.1\netbeans\java\maven\bin\mvn.cmd" 
-DarchetypeGroupId=io.github.juneau001 -DarchetypeArtifactId=webapp-javaee8 
-DarchetypeVersion=1.3 
-DarchetypeRepository=https://repo.maven.apache.org/maven2 
-DgroupId=com.mycompany -DartifactId=mavenproject1 -Dversion=1.0-SNAPSHOT 
-Dpackage=com.mycompany.mavenproject1 
-Dbasedir=C:\Users\admin\Documents\NetBeansProjects 
-Darchetype.interactive=false -Dmaven.ext.class.path="F:\Program Files 
(x86)\NetBeans-11.1\netbeans\java\maven-nblib\netbeans-eventspy.jar" 
--batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate


Re: Maven project with java modules

2019-10-07 Thread Richard Grin
Thanks Geertjan, all is clear for me now.

Richard

Le 07/10/2019 à 10:36, Geertjan Wielenga a écrit :
If you’re using Maven, the point for you is to understand how Maven works with 
Jigsaw — there’s hundreds of tips and insights you can find on google about 
this.

For the Java modular project, look in the “Java with Ant” category. To do 
something similar to that witb Maven, just create a Maven POM parent project 
and add the Jigsaw modules from my repo to it.

Gj

Sent from my iPhone

On 7 Oct 2019, at 10:29, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:


Hi Geertjan,

I have studied your example but it is a little too complex just to know how to 
create modules with NetBeans because I don't use services in my little project.

I have just seen one of your YouTube video 
https://www.youtube.com/watch?v=jSqqLHCP9ms<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_watch-3Fv-3DjSqqLHCP9ms=DwMGaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=mbDljLosYPdmZgPL2qzX-pjBv_4xnxXEWOeG1_Zdqm8=pK6ELwOrLMR4AxFD14DwA7i4OeWucaBW0RE049CFo-o=Js46YCUvoMuhlbAD5byH6NSsd4ONgiAiD55pheP_5iE=>.
 The first part demonstrates and explains clearly how to use modules with 
NetBeans like a simple Java project with a module-info.java. It's exactly what 
I was looking for.

Just a question: In this YouTube video, you explain another way to use modules 
with NetBeans  with a "Java modular project". I can't find it in the last 
versions of NetBeans. Was it removed? Why? Perhaps it would be easier to 
understand for a first use of the modules.

Regards,

Richard

Le 06/10/2019 à 13:02, Geertjan Wielenga a écrit :
Just start by looking at the example I pointed you to on GitHub.

Gj

On Sun, 6 Oct 2019 at 12:58, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

So, there is no reasons to create several modules into a NetBeans project? If I 
have understood you correctly.

Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
A Jigsaw module is simply a Java SE project with a module-info.java file. In 
other words, in NetBeans, the concept of a Jigsaw module is synonymous with the 
Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_GeertjanWielenga_JigsawJavaModularProjectSamples_tree_master_AnagramGameMaven=DwMGaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=mbDljLosYPdmZgPL2qzX-pjBv_4xnxXEWOeG1_Zdqm8=pK6ELwOrLMR4AxFD14DwA7i4OeWucaBW0RE049CFo-o=YtV7gE7CflfH_eBQG3I2kURiP-ubkwR6Wg-tqfgAUto=>

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists<https://urldefense.proofpoint.com/v2/url?u=https-3A__cwiki.apache.org_confluence_display_NETBEANS_Mailing-2Blists=DwMGaQ=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE=mbDljLosYPdmZgPL2qzX-pjBv_4xnxXEWOeG1_Zdqm8=pK6ELwOrLMR4AxFD14DwA7i4OeWucaBW0RE049CFo-o=0wLZ6xHrsCb1_J8WrSUPMAGuZM2l9Fw90jDA5eeCx1I=>



Re: Maven project with java modules

2019-10-07 Thread Richard Grin
Hi Geertjan,

I have studied your example but it is a little too complex just to know how to 
create modules with NetBeans because I don't use services in my little project.

I have just seen one of your YouTube video 
https://www.youtube.com/watch?v=jSqqLHCP9ms. The first part demonstrates and 
explains clearly how to use modules with NetBeans like a simple Java project 
with a module-info.java. It's exactly what I was looking for.

Just a question: In this YouTube video, you explain another way to use modules 
with NetBeans  with a "Java modular project". I can't find it in the last 
versions of NetBeans. Was it removed? Why? Perhaps it would be easier to 
understand for a first use of the modules.

Regards,

Richard

Le 06/10/2019 à 13:02, Geertjan Wielenga a écrit :
Just start by looking at the example I pointed you to on GitHub.

Gj

On Sun, 6 Oct 2019 at 12:58, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

So, there is no reasons to create several modules into a NetBeans project? If I 
have understood you correctly.

Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
A Jigsaw module is simply a Java SE project with a module-info.java file. In 
other words, in NetBeans, the concept of a Jigsaw module is synonymous with the 
Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

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



Re: Maven project with java modules

2019-10-06 Thread Richard Grin
So, there is no reasons to create several modules into a NetBeans project? If I 
have understood you correctly.

Le 06/10/2019 à 12:28, Geertjan Wielenga a écrit :
A Jigsaw module is simply a Java SE project with a module-info.java file. In 
other words, in NetBeans, the concept of a Jigsaw module is synonymous with the 
Java project type.

Gj

On Sun, 6 Oct 2019 at 12:24, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

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



Re: Maven project with java modules

2019-10-06 Thread Richard Grin
Thanks Geertjan for this example I will study.

No menu in NetBeans 11.1 (I forgot the version of NetBeans in my previous 
message) to create a new module? Do I have to create a new Folder and then to 
add a module-info.java jnside this new Folder?

Le 06/10/2019 à 12:16, Geertjan Wielenga a écrit :

https://github.com/GeertjanWielenga/JigsawJavaModularProjectSamples/tree/master/AnagramGameMaven

Gj


On Sun, 6 Oct 2019 at 12:03, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

Where can I find a good example to create a Maven NetBeans project with
java modules (not NetBeans modules)?

I can't find a command "Create new module" in the New menu after
creating a simple Java project.

Regards,

Richard


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

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



Appending data to file in a MemoryFileSystem.

2019-09-19 Thread Richard Linsdale

Hopefully somebody can help direct me to a solution to this problem

In a Netbeans plug-in which I am developing, I have created a 
MemoryFileSystem for storage of transient files.


I now wish to add a feature to append data to an existing file (in the 
MemoryFileSystem), but I can't find a solution.


If the file was in the OS file system, then I could use the 
FileUtils.toFile() method to get a  and then use new 
FileWriter (, true) to create a writer with which I could append 
the data.


As the file is in a MemoryFileSystem, use of FileUtils.toFile returns 
null, so it's not a route to follow.


Use of .getOutputStream() returns a valid outputstream, but 
is positioned at the start of the file and will therefore overwrite the 
existing data.


Any suggestions welcome, as I want to avoid copying the existing file 
content to a new file on every append request and then renaming the file 
(which is my probably short term fall back).


In the longer-term, it would be nice to have 
.getOutputStream(boolean append) as a extension to the API, 
but that can come later.


regards

Richard


-
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: Injection of an EntityManager is not adapted to CMT mode

2019-08-01 Thread Richard Grin
OK, thanks Javier. It's done: 
https://issues.apache.org/jira/browse/NETBEANS-2934 (and another one: 
https://issues.apache.org/jira/browse/NETBEANS-2935).

Le 01/08/2019 à 16:39, Javier Ortiz a écrit :
Yes, please do. 
https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-2931?filter=allopenissues

On Thu, Aug 1, 2019, 9:29 AM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Do I have to report this problem elsewhere for it to have a chance to be fixed?

I found other problems in other codes generated by NetBeans and I prefer to 
report them the right way.

Regards,

Richard

Le 29/07/2019 à 16:06, Richard Grin a écrit :

Hi Ortiz,

The EJB in which I inject is NOT annotated by

@TransactionManagement( TransactionManagementType.BEAN)

so, by default, the transactions are managed by the container: one automatic 
commit or rollback at the end of the method which started the transaction (I 
won't go into the details... ; see 
https://javaee.github.io/tutorial/transactions004.html#BNCIJ). A 
UserTransaction must not be used. The old versions of NetBeans inserted the 
good code.

See the code of Arjan Tijms in 
https://stackoverflow.com/questions/8772175/how-to-implement-container-managed-transaction-cmt.

Regards,

Richard

Le 29/07/2019 à 13:33, Javier Ortiz a écrit :
The current one seems completely correct to me. What error/problem are you 
getting?

That's an atomic operation.

On Mon, Jul 29, 2019, 5:31 AM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

NetBeans 11.1.

The code generated by NetBeans for the injection of an EntityManager is
not adapted to the CMT (Container Managed Transaction) mode. "Generate"
menu for "Insert code..." > "Use Entity Manager...".

The generated code:

 @PersistenceContext(unitName = "xxx")
 private EntityManager em;
 @Resource
 private javax.transaction.UserTransaction utx;

 public void persist(Object object) {
 try {
 utx.begin();
 em.persist(object);
 utx.commit();
 } catch (Exception e) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception
caught", e);
 throw new RuntimeException(e);
 }
 }

It should be

 @PersistenceContext(unitName = xxx")
 private EntityManager em;

 public void persist(Object object) {
     em.persist(object);
 }

Richard


--
Cordialement,

Richard Grin

--
Cordialement,

Richard Grin

--
Cordialement,

Richard Grin


Re: Injection of an EntityManager is not adapted to CMT mode

2019-08-01 Thread Richard Grin
Do I have to report this problem elsewhere for it to have a chance to be fixed?

I found other problems in other codes generated by NetBeans and I prefer to 
report them the right way.

Regards,

Richard

Le 29/07/2019 à 16:06, Richard Grin a écrit :

Hi Ortiz,

The EJB in which I inject is NOT annotated by

@TransactionManagement( TransactionManagementType.BEAN)

so, by default, the transactions are managed by the container: one automatic 
commit or rollback at the end of the method which started the transaction (I 
won't go into the details... ; see 
https://javaee.github.io/tutorial/transactions004.html#BNCIJ). A 
UserTransaction must not be used. The old versions of NetBeans inserted the 
good code.

See the code of Arjan Tijms in 
https://stackoverflow.com/questions/8772175/how-to-implement-container-managed-transaction-cmt.

Regards,

Richard

Le 29/07/2019 à 13:33, Javier Ortiz a écrit :
The current one seems completely correct to me. What error/problem are you 
getting?

That's an atomic operation.

On Mon, Jul 29, 2019, 5:31 AM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

NetBeans 11.1.

The code generated by NetBeans for the injection of an EntityManager is
not adapted to the CMT (Container Managed Transaction) mode. "Generate"
menu for "Insert code..." > "Use Entity Manager...".

The generated code:

 @PersistenceContext(unitName = "xxx")
 private EntityManager em;
 @Resource
 private javax.transaction.UserTransaction utx;

 public void persist(Object object) {
 try {
 utx.begin();
 em.persist(object);
 utx.commit();
 } catch (Exception e) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception
caught", e);
 throw new RuntimeException(e);
 }
 }

It should be

 @PersistenceContext(unitName = xxx")
 private EntityManager em;

 public void persist(Object object) {
     em.persist(object);
 }

Richard


--
Cordialement,

Richard Grin

--
Cordialement,

Richard Grin


Re: Injection of an EntityManager is not adapted to CMT mode

2019-07-29 Thread Richard Grin
Hi Ortiz,

The EJB in which I inject is NOT annotated by

@TransactionManagement( TransactionManagementType.BEAN)

so, by default, the transactions are managed by the container: one automatic 
commit or rollback at the end of the method which started the transaction (I 
won't go into the details... ; see 
https://javaee.github.io/tutorial/transactions004.html#BNCIJ). A 
UserTransaction must not be used. The old versions of NetBeans inserted the 
good code.

See the code of Arjan Tijms in 
https://stackoverflow.com/questions/8772175/how-to-implement-container-managed-transaction-cmt.

Regards,

Richard

Le 29/07/2019 à 13:33, Javier Ortiz a écrit :
The current one seems completely correct to me. What error/problem are you 
getting?

That's an atomic operation.

On Mon, Jul 29, 2019, 5:31 AM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

NetBeans 11.1.

The code generated by NetBeans for the injection of an EntityManager is
not adapted to the CMT (Container Managed Transaction) mode. "Generate"
menu for "Insert code..." > "Use Entity Manager...".

The generated code:

 @PersistenceContext(unitName = "xxx")
 private EntityManager em;
 @Resource
 private javax.transaction.UserTransaction utx;

 public void persist(Object object) {
 try {
 utx.begin();
 em.persist(object);
 utx.commit();
 } catch (Exception e) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception
caught", e);
 throw new RuntimeException(e);
 }
 }

It should be

 @PersistenceContext(unitName = xxx")
 private EntityManager em;

 public void persist(Object object) {
     em.persist(object);
 }

Richard


--
Cordialement,

Richard Grin


Injection of an EntityManager is not adapted to CMT mode

2019-07-29 Thread Richard Grin
Hi,

NetBeans 11.1.

The code generated by NetBeans for the injection of an EntityManager is 
not adapted to the CMT (Container Managed Transaction) mode. "Generate" 
menu for "Insert code..." > "Use Entity Manager...".

The generated code:

     @PersistenceContext(unitName = "xxx")
     private EntityManager em;
     @Resource
     private javax.transaction.UserTransaction utx;

     public void persist(Object object) {
     try {
     utx.begin();
     em.persist(object);
     utx.commit();
     } catch (Exception e) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, "exception 
caught", e);
     throw new RuntimeException(e);
     }
     }

It should be

     @PersistenceContext(unitName = xxx")
     private EntityManager em;

     public void persist(Object object) {
     em.persist(object);
     }

Richard



Re: Is "Run JPQL Query" working?

2019-07-25 Thread Richard Grin
 of the database linked to the data source 
jdbc/sample. So the problem happens only with this "Run JPQL Query". Perhaps 
the context is not the same during the running of the application and the 
running of "Run JPQL Query"?

Richard

PS: the code in pom.xml for org.eclipse.persistance:


org.eclipse.persistence
org.eclipse.persistence.core
2.5.2


org.eclipse.persistence
org.eclipse.persistence.asm
2.5.2


org.eclipse.persistence
org.eclipse.persistence.antlr
2.5.2


org.eclipse.persistence
org.eclipse.persistence.jpa
2.5.2


org.eclipse.persistence
org.eclipse.persistence.jpa.jpql
2.5.2


org.eclipse.persistence
javax.persistence
2.1.0


Le 24/07/2019 à 18:23, Geertjan Wielenga a écrit :
Will take a look, best will be if you file an issue, steps to reproduce, etc.

Gj

On Wed, 24 Jul 2019 at 17:54, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi Geertjan,

You wrote a short article in your blog on this feature a few years ago.
Do you know if it still works?

Regards,

Richard

Le 23/07/2019 à 19:48, Richard Grin a écrit :
> Hi,
>
> NetBeans 11.1 beta 4 (I have not installed the final version yet).
>
> I can't use the tool to test the JPQL queries with a right click on
> persistence.xml > "Run JPQL Query".
>
> The JPQL query: "select c from Customer c" with the sample database
> provided by the installation. I have generated the entities with New >
> "Entity Classes From Database...".
>
> I receive this message: javax.persistence.PersistenceException: No
> Persistence provider for EntityManager named null
>   at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:85)
>
> persistence.xml:
>
> 
>  xmlns="http://java.sun.com/xml/ns/persistence;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
> http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd;>
> 
> org.eclipse.persistence.jpa.PersistenceProvider
>   jdbc/sample
>   
> 
>   
> 
> 
>
> Any help?
>
> Richard Grin
>
--
Cordialement,

Richard Grin



Is "Run JPQL Query" working?

2019-07-23 Thread Richard Grin
Hi,

NetBeans 11.1 beta 4 (I have not installed the final version yet).

I can't use the tool to test the JPQL queries with a right click on 
persistence.xml > "Run JPQL Query".

The JPQL query: "select c from Customer c" with the sample database 
provided by the installation. I have generated the entities with New > 
"Entity Classes From Database...".

I receive this message: javax.persistence.PersistenceException: No 
Persistence provider for EntityManager named null
     at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:85)

persistence.xml:


http://java.sun.com/xml/ns/persistence; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence 
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd;>
   
org.eclipse.persistence.jpa.PersistenceProvider
     jdbc/sample
     
   
     
   


Any help?

Richard Grin


-
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



Design and Source view of persistence.xml don't match

2019-07-19 Thread Richard Grin
Hi,

I continue to test NetBeans 11.1 beta 4 and report potential bugs (is it the 
right place to do it?)

Web project with Payara 5.192.

Just after having created a Web project with Maven, if I display 
persistence.xml, the 2 views, Source and Design, don't match (for example the 
version of JPA or the JDBC connection). Do you have the same problem?

I join an image of the Design view and here it is the source:


http://xmlns.jcp.org/xml/ns/persistence;<http://xmlns.jcp.org/xml/ns/persistence>
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;<http://www.w3.org/2001/XMLSchema-instance>
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence 
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd;<http://xmlns.jcp.org/xml/ns/persistencehttp://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd>>






Another (small and not important) problem: in the design view it is not 
possible to check "Include All Entity Classes...", even after having added 
entity classes coming from the wizard "Add Entities from database".

In another project, I have added jdbc/sample 
inside the persistence unit and nothing have appeared in the Design view. The 
design view seems unstable: sometimes good, sometimes not good. However it is 
not a blocker because it is always possible to use the source view.

Richard

-
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: Versions of Java

2019-07-19 Thread Richard Grin
Thanks Neil.

I wanted to test the beta 4 version before the issue of the final 
version but it seems I should have to study Maven deeper.

Just for information, everything, including Payara, seems to work well 
with JDK 11 (it was not the case before).

Richard

Le 19/07/2019 à 12:45, Neil C Smith a écrit :
> On Fri, 19 Jul 2019 at 11:03, Richard Grin
>  wrote:
>> NetBeans is running with Java 10.0.1 (certainly the reason of
>> "Defaults") but the entry "Java Dependencies" is under the project and I
>> changed the version of Java for the project to Java 11.
>>
>> Perhaps a right click on the projects > Properties does not change
>> anything when the project is built with Maven?
> The property you're talking about is the JDK that is being used to run
> Maven, etc.  You can add additional ones under Tools / Java Platforms
> in the main menu.  The (default) refers to the JDK the IDE is running
> on.
>
> The pom.xml content you quoted has nothing to do with what JDK you're
> building on, but what compatibility you're building with.  There
> doesn't need to be a link, except the source and target (or release)
> level needs to be supported by the chosen JDK.
>
> I've never tried setting a newer JDK there than NetBeans is running on
> - not sure what implications there might be to do so?  I do have a
> number of different 8 and 11 platforms configured.
>
> Out of interest, why run the IDE on an out-of-support JDK anyway?
>
> Best wishes,
>
> Neil

-- 
Cordialement,

Richard Grin


-
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: Versions of Java

2019-07-19 Thread Richard Grin
NetBeans is running with Java 10.0.1 (certainly the reason of 
"Defaults") but the entry "Java Dependencies" is under the project and I 
changed the version of Java for the project to Java 11.

Perhaps a right click on the projects > Properties does not change 
anything when the project is built with Maven?

Le 19/07/2019 à 11:39, Neil C Smith a écrit :
> On Fri, 19 Jul 2019 at 10:31, Richard Grin
>  wrote:
>> Why "JDK 10 (Default)" under the entry "Java Dependencies" in the Projects 
>> tab?
> The (Default) sounds like you're running on a Java 10 JDK?
>
> Best wishes,
>
> Neil

-- 
Cordialement,

Richard Grin


-
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



Versions of Java

2019-07-19 Thread Richard Grin
Hi,

NetBeans 11.1 beta 4.

Web project with Payara 5.192.

I have put Java 11 for all the properties of the project, with a right clic on 
the project and the choice "Properties" (Sources and Build > Compile).

Why "JDK 10 (Default)" under the entry "Java Dependencies" in the Projects tab?

And in pom.xml there is

1.8
1.8

No links between the content of pom.xml and the properties of the project?

I am not used to Maven...

Thanks for your help.

Richard


Re: Error message during creation of an Entreprise Application with Maven

2019-07-18 Thread Richard Grin
Yes Geertjan, perhaps, but, if it is a bug, it would be better to try to repair 
it, or to remove the functionality if it is no longer useful.

Richard



Envoyé depuis mon smartphone Samsung Galaxy.


 Message d'origine 
De : Geertjan Wielenga 
Date : 18/07/2019 13:05 (GMT+01:00)
À : Richard Grin 
Cc : NetBeans Mailing List 
Objet : Re: Error message during creation of an Entreprise Application with 
Maven

Probably better to create standard Web Applications in Maven nowadays, rather 
than Enterprise Applications.

Gj

On Thu, Jul 18, 2019 at 12:20 PM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tested NetBeans 11.1 beta 4.

Payara 5.192 installed.

In the properties of the project :

  *   Source/Binary Format: 1.8.
  *   Build > Compile JDK 10 (Default).

Creation of a Java EE 8 Entreprise Application. The attached window is 
displayed and I click on "Finish".

An error is displayed in the logs (tab "Ouput - Priming 
tpCustomerApplication-ear":



Building tpCustomerApplication-ear-1.0-SNAPSHOT 1.0-SNAPSHOT

The POM for fr.grin:tpCustomerApplication-ejb:jar:1.0-SNAPSHOT is missing, no 
dependency information available
The POM for fr.grin:tpCustomerApplication-web:war:1.0-SNAPSHOT is missing, no 
dependency information available

BUILD FAILURE

Total time: 0.331 s
Finished at: 2019-07-18T12:04:02+02:00
Final Memory: 7M/37M

Failed to execute goal on project tpCustomerApplication-ear: Could not resolve 
dependencies for project fr.grin:tpCustomerApplication-ear:war:1.0-SNAPSHOT: 
The following artifacts could not be resolved: 
fr.grin:tpCustomerApplication-ejb:jar:1.0-SNAPSHOT, 
fr.grin:tpCustomerApplication-web:war:1.0-SNAPSHOT: Could not find artifact 
fr.grin:tpCustomerApplication-ejb:jar:1.0-SNAPSHOT -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the 
following articles:
[Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

=

I have modified nothing; all was generated by NetBeans.

I am not used to Maven. Did I missed something or is it a bug?

Richard Grin

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

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


Re: early access Netbeans builds

2019-06-18 Thread Richard Grin
There is a 404 error for the link "There is also a *windows version* of this 
job" on the page https://builds.apache.org/job/netbeans-linux/.

Le 18/06/2019 à 09:40, Geertjan Wielenga a écrit :
Daily build link is listed on the download page:

https://netbeans.apache.org/download/nb110/nb110.html

JDK 12 is already supported in Apache NetBeans 11.0.

Gj

On Tue, Jun 18, 2019 at 8:11 AM Pieter van den Hombergh 
mailto:pieter.van.den.hombe...@gmail.com>> 
wrote:
Hi all,

I would like to gain some experience with the upcoming NB version (11.1?) 
and/or jdk 12 or 13 ea, to have a look at the features. How can I obtain such 
version or where is the netcat version?

--
Pieter Van den Hombergh.
No software documentation is complete with out it's source code.

--
Cordialement,

Richard Grin


Re: NetBeans for Java EE 8

2019-06-16 Thread Richard Grin
Hi Pieter,

Thanks for this information. Which plugin did you use exactly? Geertjan says 
that the PRs are not integrated yet.

Do you mean the plugins which can be found with the NetBeans menu Tools > 
Plugins: Payara EE Common, Payara Common, Payara Server, Payara Tooling?

Richard

Le 16/06/2019 à 16:26, Pieter van den Hombergh a écrit :
As Geertjan indicates, the jee 8 integration works well with the payara plugin 
and nb 11.
I hvae used in an exam setting recently.

On Sat, 15 Jun 2019, 11:46 Richard Grin, 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

I'm preparing a course on Java EE for this fall. When can I expect a
NetBeans version adapted to Java EE 8? Is it already planned?

Will the last versions of Payara be included in the available servers?

I have been using NetBeans for a long time because the installation of
the working environment was very simple for students but this is not
quite the case these days.

Richard


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

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


--
Cordialement,

Richard Grin


Re: NetBeans for Java EE 8

2019-06-15 Thread Richard Grin
Thanks a lot Josh for the information.  I have just read your message after 
answering Geerjan (whom I was asking for it).

Le 15/06/2019 à 17:37, Josh Juneau a écrit :
Hi Richard,

The PR for inclusion of Java EE 8 support has been issued...I'm just working 
out a few minor build discrepancies...hoping to get it into the next release.  
As far as creating a Java EE 8 application project, you can also use the Maven 
archetype that I developed for use with Apache NetBeans:

https://github.com/juneau001/javaee8-archetype

The Java EE 8 support uses this archetype when it creates a new Java EE 8 
project.  The Java EE 8 support also adds support for GlassFish 5.0.1 and 
GlassFish 5.1.  Let me know if you have any questions.


Josh Juneau
juneau...@gmail.com<mailto:juneau...@gmail.com>
http://jj-blogger.blogspot.com
https://www.apress.com/us/search?query=Juneau<https://www.apress.com/index.php/author/author/view/id/1866>



On Sat, Jun 15, 2019 at 5:30 AM Geertjan Wielenga 
mailto:geert...@apache.org>> wrote:

Can you be very explicit about ‘but that is not quite the case these days’? Do 
you mean specifically the need for an installer, which already exists, but you 
can’t find it? We need very explicit statements because we really want to 
support you.

And what do you mean explicitly about NetBeans ‘adapted to Java EE 8’, very 
explicitly? We have a PR right now about Payara integration by the Payara team, 
as well as a PR by Josh Juneau about various UI elements explicitly including 
Java EE 8. So these are available but not integrated yet.

Though using Maven you could set up an archetype, e.g., the AirHacks archetypes 
by Adam Bien, which support Java EE 8, and deploy to GlassFish, from Apache 
NetBeans 11.0 onwards.

Gj


On Sat, 15 Jun 2019 at 11:46, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

I'm preparing a course on Java EE for this fall. When can I expect a
NetBeans version adapted to Java EE 8? Is it already planned?

Will the last versions of Payara be included in the available servers?

I have been using NetBeans for a long time because the installation of
the working environment was very simple for students but this is not
quite the case these days.

Richard


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

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


--
Cordialement,

Richard Grin


Re: NetBeans for Java EE 8

2019-06-15 Thread Richard Grin
Hi Geertjan,

A use case that you can reproduce with NetBeans 11.0 (Build 
incubator-netbeans-release-404-on-20190319)
Java: 1.8.0_172; Java HotSpot(TM) 64-Bit Server VM 25.172-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_172-b11
System: Windows 10 version 10.0 running on amd64; Cp1252; fr_FR (nb).

Menu File > New Project. Java with Maven and Web Application. Next.

I give a name to the project. Next.

Server Payara 5.192. No choice for Java EE 8. I choose Java EE 7 Web. Click 
Finish.

If I want to use a wizard to generate some code:

Right click on the project > New > Entity Classes from Database.

Right click on the project > New > JSF Pages from Entity Classes. Add all the 
entity classes. Next.

I choose JSF 2.2 (no "JSF 2.3").

[  Just by the way, at this moment there is a problem if I launch the 
application by mistake. NetBeans is stuck for a very long time because Payara 
cannot start and it is not possible to cancel quickly the process by clicking 
on the square linked to the process at the bottom of the NetBeans window.  ]

If I want to use Java EE 8 instead of Jva EE 7, I must make changes in pom;xml 
(which ones exactly? Not so clear) and in web.xml and persistence.xml (change 
the versions).

Instead I could use some Maven archetypes as you suggest; I think I will choose 
this solution if nothing is changed in NetBeans before my course. I have found 
2 archetypes: from Adam Bien and from Philip Riecks.

But with the older versions of NetBeans and Java EE, all was out of the box and 
it was a big advantage over other IDEs. It's no longer quite the case today 
with NetBeans 11 and Java EE 8. It is the simple explanation of what I said in 
my previous message. In my course I have a lot of things to explain in a very 
short time and don't want to spend too much time in installation details or on 
Maven.

It's good news that Payara will soon be integrated in NetBeans without an 
external plugin. Where can I find the elements by Josh Juneau about Java EE 8? 
Will they be integrated in the next version of NetBeans? Around what date will 
it be ready (to find out if I can wait before preparing my course)?

Thanks for the good work of the whole team working on NetBeans.

Best regards,

Richard

Le 15/06/2019 à 12:30, Geertjan Wielenga a écrit :

Can you be very explicit about ‘but that is not quite the case these days’? Do 
you mean specifically the need for an installer, which already exists, but you 
can’t find it? We need very explicit statements because we really want to 
support you.

And what do you mean explicitly about NetBeans ‘adapted to Java EE 8’, very 
explicitly? We have a PR right now about Payara integration by the Payara team, 
as well as a PR by Josh Juneau about various UI elements explicitly including 
Java EE 8. So these are available but not integrated yet.

Though using Maven you could set up an archetype, e.g., the AirHacks archetypes 
by Adam Bien, which support Java EE 8, and deploy to GlassFish, from Apache 
NetBeans 11.0 onwards.

Gj


On Sat, 15 Jun 2019 at 11:46, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hi,

I'm preparing a course on Java EE for this fall. When can I expect a
NetBeans version adapted to Java EE 8? Is it already planned?

Will the last versions of Payara be included in the available servers?

I have been using NetBeans for a long time because the installation of
the working environment was very simple for students but this is not
quite the case these days.

Richard


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

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


--
Cordialement,

Richard Grin


NetBeans for Java EE 8

2019-06-15 Thread Richard Grin
Hi,

I'm preparing a course on Java EE for this fall. When can I expect a 
NetBeans version adapted to Java EE 8? Is it already planned?

Will the last versions of Payara be included in the available servers?

I have been using NetBeans for a long time because the installation of 
the working environment was very simple for students but this is not 
quite the case these days.

Richard


-
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: Question on Netbeans 11 and C++

2019-05-08 Thread Richard Grin
When is Java EE *8* scheduled ? I cannot see it in the link.

Thanks

Richard



Envoyé depuis mon smartphone Samsung Galaxy.


 Message d'origine 
De : Geertjan Wielenga 
Date : 09/05/2019 05:07 (GMT+01:00)
À : Emilian Bold 
Cc : Koos du Preez , NetBeans Mailing 

Objet : Re: Question on Netbeans 11 and C++

Here's the roadmap, C/C++ inclusion is scheduled for September:

https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+Release+Roadmap

Thanks,

Gj

On Thu, May 9, 2019 at 12:56 AM Emilian Bold 
mailto:emilian.b...@gmail.com>> wrote:
> 1 Does NB11 also include C++ projects (I only saw Java, PHP and couple other 
> web based types)

No. I suspect the next release will include the C++ projects.

In the meantime you can try CoolBeans ( https://coolbeans.xyz ) which
does compile the C++ modules.

> 3 Does NB11 support C++17 ?

I suspect not entirely... but only because a low level library I know
related to the clang frontend is from Oct 2017 while C++17 seems to
have been finalized in 2018.

Would be interested about your feedback.

--emi

On Wed, May 8, 2019 at 10:22 PM Koos du Preez
mailto:koos.dupr...@terraclear.com>> wrote:
>
> We are using Netbeans 8.2 extensively for cross platform C++ development and 
> I was curious with Netbeans 11 release, I have the following questions
>
> 1 Does NB11 also include C++ projects (I only saw Java, PHP and couple other 
> web based types)
>
> 2 Can you upgrade NB8.2 projects to NB11 ?
>
> 3 Does NB11 support C++17 ?
>
>
> Thanks!

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

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



How to tell NetBeans where to find a package?

2019-04-14 Thread Richard Grin
Hi,

The last version of Payara (5.191) changed the place of the package 
javax.faces.

How can I tell NetBeans where is the new place for this package after 
the installation of Payara?

Richard


-
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: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Richard Grin
Hi Geertjan,

1. Oracle JS Parser and nbjavac are installed and active.

Still the same problem (when I received your last message).

2. In the plugin list of the plugin manager, I see that "Java Web and EE" is 
not active, neither "Java SE" (I have never tried to create a Java SE project).

I activate "Java Web and EE". A message prints that Java SE will be activated 
too. The installations seems OK but the plugins Java SE and Java Web and EE are 
still marked not "active" in the list of the installed plugins, even after a 
restart of NetBeans. But, if I check one of the two, the button "Activate" is 
disabled and the button Uninstall is available. Normal or a bug?

3. Eventually, without really hoping it, I tried to create a Maven Web 
Application and it worked!

To be sure, I add entities from database and JSF pages from entities, and it 
works.

4. Conclusion: the activation did not work automatically but it worked by 
activating through the plugin manager.

Now, I am looking forward to the new version totally compatible with Java EE 8 
and Jakarta EE.

All these manipulations solved another of my problems: now, when I change the 
server of my project in order to provide packages, the errors in the code are 
automatically removed, perhaps because I have activated Java SE? "2 birds with 
one stone"

Thanks for your help, Geertjan.

Richard

Le 07/04/2019 à 08:34, Geertjan Wielenga a écrit :
Still having this problem? Close NetBeans and look for Oracle JS Parser in the 
Plugin Manager and install it, same for nb-javac library.

Gj


On Sat, 6 Apr 2019 at 23:33, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Options Window: Test Connection is OK. No Proxy.

Richard

Le 06/04/2019 à 21:07, Geertjan Wielenga a écrit :
Are you sure your NetBeans has access to on-line, no problems with proxies, 
check the Options window?

Gj

On Sat, Apr 6, 2019 at 8:55 PM Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM) 
64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the end 
of "Finding feature" for 20 minutes but nothing happened.

Perhaps a problem due to the previous tests? Is it possible to clean the 
environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com<mailto:juneau...@gmail.com>
http://jj-blogger.blogspot.com<http://jj-blogger.blogspot.com/>
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample)

Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-07 Thread Richard Grin
Hi Kai,

I have been working with Java EE 8 for a long time too, without Maven, using 
NetBeans 9, but not "out of the box" (I had to add plugins from NetBeans 8.2). 
NetBeans 11 seems simpler now that I have solved my problems, thanks to the 
help of Josh and Geertjan.

Regards,

Richard

Le 07/04/2019 à 08:14, Kai Uwe Pel a écrit :
Hi Richard,

please check this link for your references:

https://javaee.github.io/tutorial/usingexamples001.html

Since a long time I'm working with Java EE 8 and Vue.js, and I'm using NetBeans 
IDE v8.2 and v11 only, which works properly.

Regards,
Kai
https://www.nyriad.com


On 4/6/2019 8:55 PM, Richard Grin wrote:

Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM) 
64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the end 
of "Finding feature" for 20 minutes but nothing happened.

Perhaps a problem due to the previous tests? Is it possible to clean the 
environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com<mailto:juneau...@gmail.com>
http://jj-blogger.blogspot.com<http://jj-blogger.blogspot.com/>
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it works.

I liked a lot NetBeans because it was simple to create Web and Enterprise 
Applications and I was looking forward to trying the first version of Apache 
NetBeans for these types of application but It seems not to be really ready for 
this task. Or perhaps I made a mistake?



Re: Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Richard Grin
Hi Josh,

I have just tried to run Apache NetBeans under 1.8.0_172; Java HotSpot(TM) 
64-Bit Server VM 25.172-b11 and I have the same problem. I waited for the end 
of "Finding feature" for 20 minutes but nothing happened.

Perhaps a problem due to the previous tests? Is it possible to clean the 
environment of NetBeans without a new installation?

Thanks for your work on providing a Java EE 8 support.

Richard

Le 06/04/2019 à 16:02, Josh Juneau a écrit :
Hi Richard,

Thanks for the message regarding Java EE 8 support in NetBeans 11.  We are 
working on providing Java EE 8 support (and Jakarta EE support) for an upcoming 
release.  It was a very large task to get the code transfer for the Java EE 
support and licensing conversion completed so that a the Java EE support could 
be included with NetBeans, so unfortunately Java EE 8 support did not make it 
yet.

I am surprised to hear that the Maven web application creation did not complete 
successfully.  However, I do see that you are running Apache NetBeans under JDK 
10.  Can you please try to run Apache NetBeans under the same JDK8 that you are 
using with GlassFish 5.1?  I think that may be your issue with the Maven 
support.  Since GlassFish 5.1 only supports JDK 8, you may find inconsistencies 
in behavior if you are trying to manage the server using JDK 9+.

Thanks for the feedback, and the team will keep you updated on Java EE 8 and 
Jakarta EE support.

Josh Juneau
juneau...@gmail.com<mailto:juneau...@gmail.com>
http://jj-blogger.blogspot.com<http://jj-blogger.blogspot.com/>
https://www.apress.com/index.php/author/author/view/id/1866

On Apr 6, 2019, at 7:36 AM, Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:

Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it works.

I liked a lot NetBeans because it was simple to create Web and Enterprise 
Applications and I was looking forward to trying the first version of Apache 
NetBeans for these types of application but It seems not to be really ready for 
this task. Or perhaps I made a mistake?


How to tell NetBeans to parse again the code of a class?

2019-04-06 Thread Richard Grin
Hi,

When I change the server of a Web application, I provide packages not
provided by the former server.

The problem: NetBeans is still pointing out errors ("package does not
exist" with a red icon on the left of code) while there are no more
errors. If I modify a single line (adding and removing a space), the
error disappears.

How can I remove all these error messages at once? "Clean and build" of
the project does not solve the problem.


-
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



Problems with NetBeans 11 creating Web applications for Java EE 8

2019-04-06 Thread Richard Grin
Hi,

I have just tried NetBeans 11 and I am a bit disappointed.

My environment: Windows 10 64 bit, openjdk 11 2018-09-25.
NetBeans is running over Java 10.0.1. GlassFish 5.1 (and Payara) from Eclipse 
is running over JDK 8.

Goal: creation of a Web application for Java EE 8

1. Creation of a Web Java project with Maven :
I choose "Java with Maven" > "Web Application".
Message: "This feature is not yet enabled. Press Next to activate it.
Maven Web Application project template, created with Maven Archetype Plugin".
I click Next. New page "Finding Feature" without any message nor information 
about the finding. I don't know what it's happening.
After a long time I cancel because nothing happens. However, Yesterday the 
process went a little farther ("Oracle JS Parser Implementation (1.0) was 
loaded), but without success at the end.

2. Creation of a Web application with ant.
*It's not possible to choose Java EE 8*. The only options are Java EE 7, 6, 5. 
I choose Java EE 7.
Next. I check JavaServer Faces. In the tab "Libraries" I choose Server Library. 
The project is created.
I install nbjavac (1.6).
New entity classes from database (from sample). Problem because 
javax.persistence is not known. However, it is in jakarta.persistence.jar 
provided by Eclipse GlassFish 5.1. How can I tell NetBeans where are the jars?
If I change the server, Payara 5.184 instead of Eclipse GlassFish 5.1, it works.

I liked a lot NetBeans because it was simple to create Web and Enterprise 
Applications and I was looking forward to trying the first version of Apache 
NetBeans for these types of application but It seems not to be really ready for 
this task. Or perhaps I made a mistake?


Re: File: Open Recent File … Not working

2018-08-29 Thread Richard Reader
Another data point to add to the list

*Product Version:* Apache NetBeans IDE 9.0 (Build
incubator-netbeans-release-334-on-20180708)

*Java:* 10.0.2; Java HotSpot(TM) 64-Bit Server VM 10.0.2+13

*Runtime:* Java(TM) SE Runtime Environment 10.0.2+13

*System:* Mac OS X version 10.13.6 running on x86_64; UTF-8; en_GB (nb)


Doesn’t work.



Cheers,

Richard

On 29 August 2018 at 14:55:28, Glenn Holmer (ce...@kolabnow.com.invalid)
wrote:

On 08/29/2018 08:39 AM, Giacomo Trimarchi wrote:
> *Apache Netbeans 9.0
> *"Clicking on a file in menu: File -> Open Recent File -> “Filename”"
> works fine.

Works here, too. Tried using NetBeans 9.0 on both Oracle JDK 1.8.0_162
and OpenJDK 11 RC, running under Debian Stretch.

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."

-
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: problems running project

2018-07-09 Thread Schulte, Richard
Figured out the issue by delving into ant scripts.
thanks

Richard Schulte | O: 402.938.1465 | richard.schu...@essvote.com

From: Geertjan Wielenga [mailto:geertjan.wiele...@googlemail.com.INVALID]
Sent: Monday, July 09, 2018 12:22 PM
To: us...@netbeans.incubator.apache.org
Subject: Re: problems running project


What is needed from you:
- your operating system
- which version, exactly, of Java are you using
- are you using the 9.0-VC3 announced here and elsewhere, if not, please use 
that
- please provide a project that can be used to reproduce the problem
- right now we know nothing about your project -- is it based on Ant, on Maven, 
on what?
- please provide step by step instructions what must be done with your project 
to run it

Thanks,

Gj



On Mon, Jul 9, 2018 at 7:16 PM, Schulte, Richard 
mailto:richard.schu...@essvote.com>> wrote:
I migrated a project from Netbeans 8/JDK 8 to Netbeans 9/JDK 10.  The project 
builds successfully, but it fails with ‘Error: Could not create Java Virtual 
Machine.  Error: A fatal exception has occurred’.  I can run the project from a 
script file, so it works if everything is set up correctly.  Can someone 
provide a pointer to how Netbeans’  Run -> Run Main Project starts the project? 
 How can I determine what exception is being thrown?
thanks




problems running project

2018-07-09 Thread Schulte, Richard
I migrated a project from Netbeans 8/JDK 8 to Netbeans 9/JDK 10.  The project 
builds successfully, but it fails with 'Error: Could not create Java Virtual 
Machine.  Error: A fatal exception has occurred'.  I can run the project from a 
script file, so it works if everything is set up correctly.  Can someone 
provide a pointer to how Netbeans'  Run -> Run Main Project starts the project? 
 How can I determine what exception is being thrown?
thanks



Re: Oracle Java 9 reached end of life.

2018-04-25 Thread Richard Reader
I think you should be able to find what you need here
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html

Cheers,
Richard

On 25 April 2018 at 10:18:03, Giacomo Trimarchi (
giac...@amarulasolutions.com) wrote:

Hi guys,

After new installation of my system (Ubuntu 18.04) I can't find Oracle Java
9 because "Oracle Java 9 has reached end of life".

Where I can find it ?

Thanks
Giacomo
--
|Giacomo TrimarchiAmarula Solutions BV |
|Tecnical SalesCruquiuskade 47 |
|Phone:  +31(0)851119172  Amsterdam 1018 AM NL |
|Mobile: +39(342)9082648   |
|  [`as] http://www.amarulasolutions.com   |