Re: deploy on save not working ?

2024-05-30 Thread Mark Eggers

Is this on Windows?

. . . just my two cents
/mde/

On 5/30/2024 5:32 AM, Roberto Bottoni wrote:

the server is Tomcat 10.1.20.
If I have to restart the server, the "deploy on save" feature is useless.
R.


Il 30-05-2024 14:21 Eric Bresie ha scritto:

Which server is in  use?

Some servers may not redeploy automatically and may require
restarting.

Did the browser session get refreshed?

Eric Bresie
ebre...@gmail.com

On Thu, May 30, 2024 at 5:53 AM Roberto Bottoni
 wrote:


Hi,

I'm using NB 21 with JDK 21 in a Maven project (JSF).

I have selected "Deploy on Save" in the project settings.

When I run the application and save a file (for example a JavaBean),
the
modifications are not reflected in the app, that is, the JavaBean is
not
updated according to the changes I have made.

thanks.
Roberto.



-

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

 --
 Questo messaggio è stato analizzato con Libraesva ESG ed è
risultato non infetto.
This message has been checked by Libraesva ESG and is believed to be
clean.


-
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: Run-Time Error: email Validation project still giving errors

2024-03-14 Thread Mark Eggers

Zulifi,

This is the same issue that you've had with your other project. As has 
been pointed out, I answered that question here:


https://lists.apache.org/thread/pq84cb84w8822g9rt133vctc14nbzb9f

Again, in particular:

1. Remove the following. They are no longer valid since Java 9

11
11

2. Add the following in the properties section

11

3. Create a build section in your pom.xml. Minimally it should look like:




org.apache.maven.plugins
maven-compiler-plugin
3.12.1

${maven.compiler.release}





If you follow the instructions given above and make the recommended 
changes to your pom.xml, the project will build.


. . . just my two cents
/mde/

PS: Please spend some time reading 
https://maven.apache.org/users/index.html. In particular, study 
https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html 
and https://maven.apache.org/guides/getting-started/index.html.


On 3/14/2024 9:55 AM, Zulfi Khan wrote:

Dear Michael Bien-Good Morning,

I have attached the image of Pom.xml.

I have also the email validation project in my first email.

Kindly guide me what changes I have to make in the pom.xml file so that 
I can get rid of run-time errors.




Zulfi.

On Thursday, March 14, 2024 at 11:46:16 AM CDT, Ernie Rael 
 wrote:



On 24/03/14 9:21 AM, Zulfi Khan wrote:
Dear Ernie-Good Morning,

Maven is working fine.

I have attached my swapping project. It is working with no errors.

I suggest making small changes to a working maven project, incrementally 
adding things from the failing project, and see where the failure comes 
from.


I think I recently saw some email that points out the problem with info 
on how to fix it.


-ernie



Kindly help solve my email validation problem.

Zulfi.

On Tuesday, March 12, 2024 at 12:24:57 PM CDT, Ernie Rael 
  wrote:



I don't remember if this has been asked and answered...

Can you create and run a simple maven project using the new project 
dialog?


-ernie

On 24/03/11 9:58 PM, Zulfi Khan wrote:
Hi-Vic and other Users-Good Evening,

I am using English Netwbeans.

I can't find Maven on Tools/JavaPlatforms, the image attached.

I found Maven in connection with Tools/Options/Maven, I added and 
compiled again but run-time error. I have attached the images for both 
Tools/JavaPlatforms and Tools/Options/Maven.


Somebody, please guide me. I am still getting the run-time error:


Changes detected - recompiling the module! :source
Compiling 2 source files with javac [debug release 11.0.19] to 
target/classes


BUILD FAILURE

Total time:  0.929 s
Finished at: 2024-03-11T23:39:27-05:00

Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
(default-compile) on project ValidateName3: Fatal error compiling: 
error: release version 11.0.19 not supported -> [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/MojoExecutionException 



I have attached my project also in the first message.

Zulfi.


On Tuesday, February 27, 2024 at 04:13:53 PM CST, Vic Ricker 
  wrote:



Do you have Java 11 installed and configured under Tools/Java 
Platforms? That would be my first guess.


Also, Tools/Options/Maven has the default JDK for Maven.

On 2/26/24 22:39, Zulfi Khan wrote:
Dear NetBeans Mailing List user,
I am getting a invalidating email. I am using an Apache email 
validation class. I have attached the tar file of my project.


Following is the error

Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile 
(default-compile) on project ValidateName3: Fatal error compiling: 
error: release version 11.0.19 not supported -> [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/MojoExecutionException 



Email Validation in Java | Baeldung 










Email Validation in Java | Baeldung

Learn how to validate email addresses in Java using regular expressions.


Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-02 Thread Mark Eggers
Is there a minimum JDK 8 version that is required in order to be 
recognized by NetBeans?


That would be an interesting question to answer (and possibly document).

I know that there are some Maven plugins that have a minimum required 
JDK 8 version.


I wonder if the original author could go and download the latest JDK 8 
from an appropriate vendor and try that. If that solves the problem, 
then maybe the section that offers to download a JDK needs to be looked at.


I don't know, since I manage all of the Java versions on my platforms 
independently of NetBeans.


. . . . just my two cents
/mde/

On 3/2/2024 8:26 AM, Michael Bien wrote:
its possible that there is a bug somewhere. Btw the link you posted is 
for the download archive.


JDK 8 would be at u402. I have all JDKs (8-23) in the platform manager 
and they are all recognized by NB.


-mbien


On 02.03.24 09:12, Noel Abela wrote:
You can clearly see from the filename in the screen shot that it is 
not a jre but a JDK. I got it from the oracle site here


https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html

I guess it is a bug.

Thanks for the other tips

On 01/03/2024 22:56, Noel Abela wrote:

Thanks again for your input.

As you can see from the  attached screenshot I am getting the same 
error for Java 8. But thanks to your suggestion, I managed to install 
8 anyway by downloading it from within the platform manager itself.


As for the version issue, I am not sure if I am explaining myself 
well. Below is the link where one can install the latest version of 
Java which is 8. This is what the users of my application will do 
before running my application.


https://www.java.com/download/ie_manual.jsp

If I build my application with a higher JDK their java will not allow 
them to run my application. I would have to install their Java 
runtime myself. I was just looking into this jlink that you mentioned 
and I must say it looks interesting. What will have to be seen 
however, is the final size of the distribution package. This will 
obviously be larger than my present jar file and this will make 
updates more inefficient but to what degree is what needs to be seen. 
I will certainly try this out.


I will venture an answer to my own question of why java 8 is the 
latest jre available. Is it maybe because jlink started from JDK9? If 
so, then they are assuming that everyone will be using jlink which 
might not be the case.



On 01/03/2024 19:01, Michael Bien wrote:

On 01.03.24 18:24, Noel Abela wrote:
I am confused about all these versions. How come if you download 
the latest JRE from Oracle


this explains it. The platform manager expects a JDK, not a JRE. The 
concept of JRE is a bit dated and no longer well defined since the 
introduction of jlink, which allows to create your own JRE if needed.


I thought we added a better error msg in case a user tries to 
register a JRE - apparently not ;)




you get Java 8 since the JDK went all the way up to 21?


yeah. so here is the summary:

 - NetBeans 21 requires JDK 11, 17, or 21 to run as you can see on 
the download page.


 - You should be able to register JDK 8 or later using the java 
platform manager and use it for your projects.


 - 1.7 won't be possible anymore since the editor of NB relies on a 
recent version of javac (which is bundled with NB), and javac itself 
does no longer support the Java 7 target (8 works fine)



How come if you download the latest... 


The Platform Manager itself can download JDKs.

This community maintained website might also help to find a version 
from a vendor you prefer: https://javaalmanac.io/


If you install a JDK using tools like sdkman or a regular repository 
on linux, NB should automatically add it to the platform manager 
since it scans some well-known directories.


best regards,

-mbien



On 01/03/2024 16:15, Michael Bien wrote:
NetBeans 21 supports projects which use JDKs in the rage 8-21 with 
limited support for early access dev builds 22, 23 etc.


javac itself dropped support for the 1.7 target in Java 20.

So your best bet would be to try NetBeans 17 which used nb-javac 
based on JDK 19. Although I can't promise that this will work 
since I don't think anyone tested anything with Java 7 for quite 
some time.


-mbien

On 01.03.24 10:32, Noel Abela wrote:

I have just installed Nebeans 22 which is using JDK 21.
I need to maintain a desktop application which is on JDK 1.7 but 
when I attempt to add this JDK and even JDK 1.8, Netbeans gives 
the following error ...



"Cannot detect and install the selected platform. The Java or 
javac may not be executable."


I have read in other forums that this was a bug way back in 
version 10 or 11.
I would have imagined that this would have been solved by version 
22.

Does anyone know some fix or workaround for this?

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

Re: Netbeans 22 does not allow JDK 1.7 or 1.8

2024-03-02 Thread Mark Eggers

I just installed NetBeans 21 running on JDK 17.

I have several old projects that build against JDK 8. I've added JDK 8 
to my installed Java Platforms, set my Properties->Build->Compile to the 
correct JDK (1.8), and have set source and target in the maven compiler 
plugin to 1.8.


The project loads and builds as expected.

If I could get everyone to move to our latest parent pom, I could avoid 
installing JDK 8, set the Java release version to 8, and have it built.


I have tested the latter, and it works as well. It's just a matter of 
getting everyone to switch.


. . . . just my two cents
/mde/

On 3/2/2024 12:12 AM, Noel Abela wrote:
You can clearly see from the filename in the screen shot that it is not 
a jre but a JDK. I got it from the oracle site here


https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html

I guess it is a bug.

Thanks for the other tips

On 01/03/2024 22:56, Noel Abela wrote:

Thanks again for your input.

As you can see from the  attached screenshot I am getting the same 
error for Java 8. But thanks to your suggestion, I managed to install 
8 anyway by downloading it from within the platform manager itself.


As for the version issue, I am not sure if I am explaining myself 
well. Below is the link where one can install the latest version of 
Java which is 8. This is what the users of my application will do 
before running my application.


https://www.java.com/download/ie_manual.jsp

If I build my application with a higher JDK their java will not allow 
them to run my application. I would have to install their Java runtime 
myself. I was just looking into this jlink that you mentioned and I 
must say it looks interesting. What will have to be seen however, is 
the final size of the distribution package. This will obviously be 
larger than my present jar file and this will make updates more 
inefficient but to what degree is what needs to be seen. I will 
certainly try this out.


I will venture an answer to my own question of why java 8 is the 
latest jre available. Is it maybe because jlink started from JDK9? If 
so, then they are assuming that everyone will be using jlink which 
might not be the case.



On 01/03/2024 19:01, Michael Bien wrote:

On 01.03.24 18:24, Noel Abela wrote:
I am confused about all these versions. How come if you download the 
latest JRE from Oracle


this explains it. The platform manager expects a JDK, not a JRE. The 
concept of JRE is a bit dated and no longer well defined since the 
introduction of jlink, which allows to create your own JRE if needed.


I thought we added a better error msg in case a user tries to 
register a JRE - apparently not ;)




you get Java 8 since the JDK went all the way up to 21?


yeah. so here is the summary:

 - NetBeans 21 requires JDK 11, 17, or 21 to run as you can see on 
the download page.


 - You should be able to register JDK 8 or later using the java 
platform manager and use it for your projects.


 - 1.7 won't be possible anymore since the editor of NB relies on a 
recent version of javac (which is bundled with NB), and javac itself 
does no longer support the Java 7 target (8 works fine)



How come if you download the latest... 


The Platform Manager itself can download JDKs.

This community maintained website might also help to find a version 
from a vendor you prefer: https://javaalmanac.io/


If you install a JDK using tools like sdkman or a regular repository 
on linux, NB should automatically add it to the platform manager 
since it scans some well-known directories.


best regards,

-mbien



On 01/03/2024 16:15, Michael Bien wrote:
NetBeans 21 supports projects which use JDKs in the rage 8-21 with 
limited support for early access dev builds 22, 23 etc.


javac itself dropped support for the 1.7 target in Java 20.

So your best bet would be to try NetBeans 17 which used nb-javac 
based on JDK 19. Although I can't promise that this will work since 
I don't think anyone tested anything with Java 7 for quite some time.


-mbien

On 01.03.24 10:32, Noel Abela wrote:

I have just installed Nebeans 22 which is using JDK 21.
I need to maintain a desktop application which is on JDK 1.7 but 
when I attempt to add this JDK and even JDK 1.8, Netbeans gives 
the following error ...



"Cannot detect and install the selected platform. The Java or 
javac may not be executable."


I have read in other forums that this was a bug way back in 
version 10 or 11.

I would have imagined that this would have been solved by version 22.
Does anyone know some fix or workaround for this?

-
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 

Re: Run-Time Error: email Validation project still giving errors

2024-02-26 Thread Mark Eggers

Khan,

I apologize - I meant to send this to the mailing list. You will 
probably get two copies.


This is mostly a Maven question. Two things:

11

The release should be major versions only.

Second, you'll have to actually configure the compiler plugin in order 
to use the above value. A minimum plugin configuration is:





org.apache.maven.plugins
maven-compiler-plugin
3.12.1

${maven.compiler.release}





In general, it's a good idea to declare all plugins that are used in the 
build. That way, when the implied parent changes, your build will still 
be reproducible. Run mvn -X package to get a start on that. Look at the 
enforcer plugin to enforce a minimum version of Maven.


That should get you started. Read more about how to use Maven at 
maven.apache.org.


. . . just my two cents
/mde/
On 2/26/2024 7:39 PM, Zulfi Khan wrote:

Dear NetBeans Mailing List user,I am getting a invalidating email. I am using 
an Apache email validation class. I have attached the tar file of my project.
Following is the error

Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on 
project ValidateName3: Fatal error compiling: error: release version 11.0.19 not 
supported -> [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/MojoExecutionException


Email Validation in Java | Baeldung

|
|
|
|  |  |

  |

  |
|
|  |
Email Validation in Java | Baeldung

Learn how to validate email addresses in Java using regular expressions.
  |

  |

  |






package com.mycompany.validatename;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.commons.validator.*;
import org.apache.commons.validator.routines.InetAddressValidator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import javax.swing.UnsupportedLookAndFeelException;
public class ValidateNameForm extends javax.swing.JFrame {

     /**
  * Creates new form ValidateNameForm
  */
     public ValidateNameForm() {
     :
     :
}

  private void jTF1ActionPerformed(java.awt.event.ActionEvent evt) {
     // TODO add your handling code here:
     }
     private void CheckIfInputValid(String input, String regex){
     String s;
     //for(int i=0; i<4; ++i) {
    Pattern pattern = Pattern.compile(regex);

    s = input.trim();

    Matcher matcher = pattern.matcher(s);

    JOptionPane.showMessageDialog(null, "Input "+s+" is valid " + 
String.valueOf(matcher.matches()));
     //}
 
     }

     private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
     // TODO add your handling code here:
     String emailAddress= jTF1.getText();
     //String strInput[]  = new String[5];
     //strInput[0]= strAccName;
     //String regex = "^[a-zA-Z]*$";
     //String emailRegex = regexArr[2] = 
"[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*(\\.[a-zA-Z]{1,6}))?";
     boolean isValidEmail = 
EmailValidator.getInstance().isValid(emailAddress);
     //CheckIfInputValid(strInput[0], emailRegex);
     }

     /**
  * @param args the command line arguments
  */
     public static void main(String args[]) {
     }
  


     // Variables declaration - do not modify
     private javax.swing.JButton jButton1;
     private javax.swing.JLabel jLabel1;
     private javax.swing.JTextField jTF1;
     // End of variables declaration

  //private void initComponents() {
  //   throw new UnsupportedOperationException( "Not supported yet." ); // 
Generated from nbfs://nbhost/SystemFileSystem/Templates/Classes/Code/GeneratedMethodBody
    // }
}
Somebody please guide me.
Zulfi.



-
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: NetBeans Node.js issue

2024-02-22 Thread Mark Eggers

That all depends on where you installed everything.

1. Node.js is where you installed it.

Haven't installed Node.js? Then download the appropriate package for 
your OS (or use the appropriate package manager if you're on Linux), and 
install.


I don't know what OS you are using, and the default installing 
information is better asked on the appropriate Node mailing list.


2. npm is where you installed it

That comes with Node.js (at least it does on Windows 10 Professional). 
Again, how it is installed on your particular OS is better asked on the 
appropriate Node mailing list.


3. Express generator

When you use npm to install something globally (express) that location 
is determined by your OS. You'll have to browse to find it.


For example, on Windows 10 Professional, the location for express 
installed globally is:


%HOMEPATH%\AppData\Roaming\npm\express.cmd

. . . just my two cents

Mark
/mde/

On 2/22/2024 4:36 AM, Bujdosó Gyula wrote:

Sorry, maybe I was not specific:

Where can I find the data that is needed to fill in the menu below:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

Op do 22 feb 2024 om 12:31 schreef Bujdosó Gyula :


Thank you!

Op do 22 feb 2024 om 09:40 schreef Mark Eggers
:


On NetBeans 20:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

I doubt that it's been changed for NetBeans 21 (the latest).

just my two cents . . .

Mark
/mde/

On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:

Dear Team,

Maybe you have an idea, how I could determine and specify Node.js'

location

for Netbeans? Unfortunately I cannot find exactly what location NetBeans
needs.

[image: image.png]

Thank you very much! :)

Gyula Bujdosó




-
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: NetBeans Node.js issue

2024-02-22 Thread Mark Eggers

On NetBeans 20:

Tools (menu) -> Options (menu) -> HTML/JS (tab) -> Node.js (tab)

I doubt that it's been changed for NetBeans 21 (the latest).

just my two cents . . .

Mark
/mde/

On 2/21/2024 10:14 PM, Bujdosó Gyula wrote:

Dear Team,

Maybe you have an idea, how I could determine and specify Node.js' location
for Netbeans? Unfortunately I cannot find exactly what location NetBeans
needs.

[image: image.png]

Thank you very much! :)

Gyula Bujdosó




-
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: --boot-classpath errors in NB 16

2023-01-13 Thread Mark Eggers

Frank,

That's a very old version of the maven-compiler-plugin.

From version 3.6 of the compiler plugin, you can use the 
maven.compiler.release property, which sets the JDK >=9 --release option.


So the configuration would look something like this:


11





org.apache.maven.plugins
maven-compiler-plugin
3.10.1

${maven.compiler.release}






Does that help?

. . . just my two cents
/mde/

On 1/13/2023 4:18 PM, Frank Griffin wrote:
I have just tried to upgrade an older project (NB 16, and I'm running into a problem.


I upgraded to JDK 11, and as a result added

   
     org.apache.maven.plugins
     maven-compiler-plugin
     2.3.2
     
   11
   11
     
   

However, now when I try to compile I get:

COMPILATION ERROR :
-
error: option --boot-class-path not allowed with target 11
1 error

So, if NB is explicitly being told that we're compiling for JDK 11, why 
is it giving maven a --boot-class-path specification ?


-
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: font for accented characters

2023-01-09 Thread Mark Eggers

Hi Chris,

A quick question:

1. Is your file encoding UTF-8?

At least for NetBeans 15, the configuration file is located in wherever 
you installed NetBeans\etc. It's called netbeans.conf.


In my netbeans.conf, I've added  -J-Dfile.encoding=UTF-8 to 
netbeans_default_options.


I haven't tried this with NetBeans 16 yet (upgrade today most likely), 
but several people at $work have used prior versions of NetBeans and 
have added characters with diacritics.


Using the Character Map and copying the result into a text file worked 
on NetBeans 15. An acute accent e showed up in a text file, was saved, 
opened, and the diacritic was displayed properly.


The character showed up properly in other UTF-8 aware editors.

. . . just my two cents
/mde/

On 1/9/2023 10:32 AM, Christopher C. Lanz wrote:

Hello,

I am trying to use Latin vowels with macrons in Netbeans 16 in Windows 10. My 
searches in such places as StackOverflow have yielded advice, but I have yet to 
find the right thing.

One possibility mentioned is just to switch to a font that supports accented 
characters, such as 'e' with accent grave - does anyone know which fonts I 
should try?

Another set of advice suggests changing the netbeans.conf file, but it has 
moved since the advice I found was written. How do I get to it in Windows? I am 
also unable to find the default_options file.  ??

Thanks


Chris Lanz

340 Dunn Hall, SUNY Potsdam

lan...@potsdam.edu

315 268 1547







-
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: Warnings in pom.xml files of a multi-module project

2022-08-31 Thread Mark Eggers
The warning does not appear when the project is opened in either 
NetBeans 12.6 or 13 when running under JDK 11 on Windows 10 Professional.


It does appear when running NetBeans 14 or 15 (vc) when running on 
either JDK 11 or JDK 17.


I guess I should write up how to reproduce the issue and file a bug.

If anyone can give me a clue as to where to start looking for Maven pom 
parsing, I can try to see what changed.


I also tried using different versions of Maven.

I also tried clearing the cache.

I also tried a completely clean user directory.

Multi-module projects that open cleanly in NetBeans 12.6 and 13 generate 
the parent.relativePath warning in NetBeans 14 and 15 (vc).


. . . just my two cents
/mde/

On 8/29/2022 2:37 PM, Mark Eggers wrote:

Folks,

I have the following setup:

Windows 10 Pro - latest updates
JDK 17 (JDK 11, JDK 8 defined for legacy projects)
Netbeans 15 (voting candidate) installed from zip

I did not import any settings from NetBeans 14.

I have the following project structure to build with JDK 8:

Aggregator
|--- pom.xml
+--- Module_1
  | pom.xml
+--- Module_2
  | pom.xml
+--- Module_3
  | pom.xml

The parent definition in the modules are:


 some.organization
 Aggregator
 1.0.0-SNAPSHOT


Module_n
1.0.0-SNAPSHOT
(jar or war)

where n = [1,2,3].

The Aggregator project:


     some.organization
     someConfig
     2.1.0


Aggregator
1.0.0-SNAPSHOT
pom

In each of the modules, I get the following warning in my pom.xml files:

'parent.relativePath' of some.organization:Module_n:1.0.0-SNAPSHOT 
points to some.organization:Module_n instead of 
some.organization:Aggreagator, please verify your project structure.


This occurs for n = [1,2,3].

This also occurs with a zip-installed copy of NetBeans 14 on Windows.

I do not get this warning when running the same setup on Ubuntu 22.04 
with either the SNAP-installed NetBeans 14 or a zip-installed NetBeans 15.


What am I missing?

. . . just my two cents
/mde/




-
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



Warnings in pom.xml files of a multi-module project

2022-08-29 Thread Mark Eggers

Folks,

I have the following setup:

Windows 10 Pro - latest updates
JDK 17 (JDK 11, JDK 8 defined for legacy projects)
Netbeans 15 (voting candidate) installed from zip

I did not import any settings from NetBeans 14.

I have the following project structure to build with JDK 8:

Aggregator
|--- pom.xml
+--- Module_1
 | pom.xml
+--- Module_2
 | pom.xml
+--- Module_3
 | pom.xml

The parent definition in the modules are:


some.organization
Aggregator
1.0.0-SNAPSHOT


Module_n
1.0.0-SNAPSHOT
(jar or war)

where n = [1,2,3].

The Aggregator project:


some.organization
someConfig
2.1.0


Aggregator
1.0.0-SNAPSHOT
pom

In each of the modules, I get the following warning in my pom.xml files:

'parent.relativePath' of some.organization:Module_n:1.0.0-SNAPSHOT 
points to some.organization:Module_n instead of 
some.organization:Aggreagator, please verify your project structure.


This occurs for n = [1,2,3].

This also occurs with a zip-installed copy of NetBeans 14 on Windows.

I do not get this warning when running the same setup on Ubuntu 22.04 
with either the SNAP-installed NetBeans 14 or a zip-installed NetBeans 15.


What am I missing?

. . . just my two cents
/mde/

-
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, subversion, buildnumber plugin, Macintosh failed build

2022-04-12 Thread Mark Eggers

Adding the lines to netbeans.conf did fix the problem.

Thanks for the fix!

. . . just my two cents
/mde/

On 4/11/2022 9:17 AM, Mark Eggers wrote:

Alex,

Thanks for the reply. I suspected a NetBeans PATH issue but I didn't 
know where to tweak it. I'm a bit reluctant to experiment on other 
people's machines.


I'll have the users try that (one on 13 and one on 12.6) when I run them 
to ground.


It'll be much easier once I have a Macintosh.

Thanks again.

. . . just my two cents
/mde/

On 4/11/2022 2:42 AM, Alexander Kronenwett wrote:

Hello,

I am having the same issue on MacOs 12.3.1 with M1 chip and NetBeans 
12.6.

I suppose there is a problem with NetBeans reading the Path variable from
the system, as building works fine in the terminal.

The following workaround made the issue disappear:
# create symlink from homebrew svn to usr local
sudo ln -s /opt/homebrew/bin/svn /usr/local/bin/svn
Quit NetBeans
# add the following lines to the top of netbeans.conf
PATH=$PATH:/usr/local/bin
export PATH

Start NetBeans.

I hope this helps.

Alex

On 2022/03/25 19:36:49 Mark Eggers wrote:

Hi,

Thanks for responding.

I can't check since the Macintosh user is not around at present.
However, while reading brew documentation it says that there are soft
links to /usr/local/bin for all the installations.

If I was writing an installation system, that's how I would do it. That
way you can upgrade by installing software in one place and moving the
links. If the upgrade causes grief, you can just move the links back. If
the upgrade is good, you can then uninstall the older version.

I do that with lots of frequently  upgraded software on my Linux

platforms.


. . . just my two cents
/mde/

On 3/25/2022 1:08 AM, Juan Miguel Escribano wrote:

Hi,

I think I installed Subversion with brew too, but my path to it is :

/usr/local/opt/svn/bin

¿Could you check it?

Juan Miguel


El 25 mar 2022, a las 0:06, Mark Eggers 

escribió:


I'm trying to help a user on a Macintosh use NetBeans 13. I do not

have a Macintosh.


Our pom.xml has the buildnumber-maven-plugin that runs in the validate
phase. It populates some properties (revision and branch) to be added 
to a

couple of files via resource filtering.


This works fine on Windows and Linux. It also works fine on the user's

Macintosh on the command line.


The build failed error only occurs on a Macintosh when running from

aproject->Clean and Build in NetBeans.


The error happens when executing the following (part of mvn -X):

Executing: /bin/sh -c cd '/Users/auser/NetBeansProjects/aproject' &&

'svn'

 '--username' 'auser' '--password' '*' '--no-auth-cache'
 '--non-interactive' 'info'

The error is:

Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:3.0.0:create (default) on
project aproject:
 Cannot get the revision information from the scm repository :
 Exception while executing SCM command.:
 Error while executing command.
 Error while executing process.
 Cannot run program "svn" (in directory
 "/Users/auser/NetBeansProjects/aproject"): error=2,
 No such file or directory

aproject->Subversion->Update->Update to HEAD works as expected.

The Preferences->Team->Subversion->Preferred Client (CLI) has the path

/usr/local/bin.


Opening a Terminal window in NetBeans (Window->IDE Tools->Terminal),

changing to /Users/auser/NetBeansProjects/aproject and executing mvn
package works as expected.


Subversion was installed via brew. NetBeans was installed from the

.dmg.


I'm currently at a loss.

Any ideas would be welcome.

. . . just my two cents
/mde/



-
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: NetBeans 13, subversion, buildnumber plugin, Macintosh failed build

2022-04-11 Thread Mark Eggers

Alex,

Thanks for the reply. I suspected a NetBeans PATH issue but I didn't 
know where to tweak it. I'm a bit reluctant to experiment on other 
people's machines.


I'll have the users try that (one on 13 and one on 12.6) when I run them 
to ground.


It'll be much easier once I have a Macintosh.

Thanks again.

. . . just my two cents
/mde/

On 4/11/2022 2:42 AM, Alexander Kronenwett wrote:

Hello,

I am having the same issue on MacOs 12.3.1 with M1 chip and NetBeans 12.6.
I suppose there is a problem with NetBeans reading the Path variable from
the system, as building works fine in the terminal.

The following workaround made the issue disappear:
# create symlink from homebrew svn to usr local
sudo ln -s /opt/homebrew/bin/svn /usr/local/bin/svn
Quit NetBeans
# add the following lines to the top of netbeans.conf
PATH=$PATH:/usr/local/bin
export PATH

Start NetBeans.

I hope this helps.

Alex

On 2022/03/25 19:36:49 Mark Eggers wrote:

Hi,

Thanks for responding.

I can't check since the Macintosh user is not around at present.
However, while reading brew documentation it says that there are soft
links to /usr/local/bin for all the installations.

If I was writing an installation system, that's how I would do it. That
way you can upgrade by installing software in one place and moving the
links. If the upgrade causes grief, you can just move the links back. If
the upgrade is good, you can then uninstall the older version.

I do that with lots of frequently  upgraded software on my Linux

platforms.


. . . just my two cents
/mde/

On 3/25/2022 1:08 AM, Juan Miguel Escribano wrote:

Hi,

I think I installed Subversion with brew too, but my path to it is :

/usr/local/opt/svn/bin

¿Could you check it?

Juan Miguel


El 25 mar 2022, a las 0:06, Mark Eggers 

escribió:


I'm trying to help a user on a Macintosh use NetBeans 13. I do not

have a Macintosh.


Our pom.xml has the buildnumber-maven-plugin that runs in the validate

phase. It populates some properties (revision and branch) to be added to a
couple of files via resource filtering.


This works fine on Windows and Linux. It also works fine on the user's

Macintosh on the command line.


The build failed error only occurs on a Macintosh when running from

aproject->Clean and Build in NetBeans.


The error happens when executing the following (part of mvn -X):

Executing: /bin/sh -c cd '/Users/auser/NetBeansProjects/aproject' &&

'svn'

 '--username' 'auser' '--password' '*' '--no-auth-cache'
 '--non-interactive' 'info'

The error is:

Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:3.0.0:create (default) on
project aproject:
 Cannot get the revision information from the scm repository :
 Exception while executing SCM command.:
 Error while executing command.
 Error while executing process.
 Cannot run program "svn" (in directory
 "/Users/auser/NetBeansProjects/aproject"): error=2,
 No such file or directory

aproject->Subversion->Update->Update to HEAD works as expected.

The Preferences->Team->Subversion->Preferred Client (CLI) has the path

/usr/local/bin.


Opening a Terminal window in NetBeans (Window->IDE Tools->Terminal),

changing to /Users/auser/NetBeansProjects/aproject and executing mvn
package works as expected.


Subversion was installed via brew. NetBeans was installed from the

.dmg.


I'm currently at a loss.

Any ideas would be welcome.

. . . just my two cents
/mde/



-
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: NetBeans 13, subversion, buildnumber plugin, Macintosh failed build

2022-03-25 Thread Mark Eggers

Hi,

Thanks for responding.

I can't check since the Macintosh user is not around at present. 
However, while reading brew documentation it says that there are soft 
links to /usr/local/bin for all the installations.


If I was writing an installation system, that's how I would do it. That 
way you can upgrade by installing software in one place and moving the 
links. If the upgrade causes grief, you can just move the links back. If 
the upgrade is good, you can then uninstall the older version.


I do that with lots of frequently  upgraded software on my Linux platforms.

. . . just my two cents
/mde/

On 3/25/2022 1:08 AM, Juan Miguel Escribano wrote:

Hi,

I think I installed Subversion with brew too, but my path to it is : 
/usr/local/opt/svn/bin
¿Could you check it?

Juan Miguel


El 25 mar 2022, a las 0:06, Mark Eggers  
escribió:

I'm trying to help a user on a Macintosh use NetBeans 13. I do not have a 
Macintosh.

Our pom.xml has the buildnumber-maven-plugin that runs in the validate phase. 
It populates some properties (revision and branch) to be added to a couple of 
files via resource filtering.

This works fine on Windows and Linux. It also works fine on the user's 
Macintosh on the command line.

The build failed error only occurs on a Macintosh when running from 
aproject->Clean and Build in NetBeans.

The error happens when executing the following (part of mvn -X):

Executing: /bin/sh -c cd '/Users/auser/NetBeansProjects/aproject' && 'svn'
'--username' 'auser' '--password' '*' '--no-auth-cache'
'--non-interactive' 'info'

The error is:

Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:3.0.0:create (default) on
project aproject:
Cannot get the revision information from the scm repository :
Exception while executing SCM command.:
Error while executing command.
Error while executing process.
Cannot run program "svn" (in directory
"/Users/auser/NetBeansProjects/aproject"): error=2,
No such file or directory

aproject->Subversion->Update->Update to HEAD works as expected.

The Preferences->Team->Subversion->Preferred Client (CLI) has the path 
/usr/local/bin.

Opening a Terminal window in NetBeans (Window->IDE Tools->Terminal), changing 
to /Users/auser/NetBeansProjects/aproject and executing mvn package works as expected.

Subversion was installed via brew. NetBeans was installed from the .dmg.

I'm currently at a loss.

Any ideas would be welcome.

. . . just my two cents
/mde/



-
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





OpenPGP_signature
Description: OpenPGP digital signature


NetBeans 13, subversion, buildnumber plugin, Macintosh failed build

2022-03-24 Thread Mark Eggers
I'm trying to help a user on a Macintosh use NetBeans 13. I do not have 
a Macintosh.


Our pom.xml has the buildnumber-maven-plugin that runs in the validate 
phase. It populates some properties (revision and branch) to be added to 
a couple of files via resource filtering.


This works fine on Windows and Linux. It also works fine on the user's 
Macintosh on the command line.


The build failed error only occurs on a Macintosh when running from 
aproject->Clean and Build in NetBeans.


The error happens when executing the following (part of mvn -X):

Executing: /bin/sh -c cd '/Users/auser/NetBeansProjects/aproject' && 'svn'
'--username' 'auser' '--password' '*' '--no-auth-cache'
'--non-interactive' 'info'

The error is:

Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:3.0.0:create (default) on
project aproject:
Cannot get the revision information from the scm repository :
Exception while executing SCM command.:
Error while executing command.
Error while executing process.
Cannot run program "svn" (in directory
"/Users/auser/NetBeansProjects/aproject"): error=2,
No such file or directory

aproject->Subversion->Update->Update to HEAD works as expected.

The Preferences->Team->Subversion->Preferred Client (CLI) has the path 
/usr/local/bin.


Opening a Terminal window in NetBeans (Window->IDE Tools->Terminal), 
changing to /Users/auser/NetBeansProjects/aproject and executing mvn 
package works as expected.


Subversion was installed via brew. NetBeans was installed from the .dmg.

I'm currently at a loss.

Any ideas would be welcome.

. . . just my two cents
/mde/


OpenPGP_signature
Description: OpenPGP digital signature


Re: Debian NB - setting up tomcat

2022-02-21 Thread Mark Eggers

On 2/20/2022 10:55 PM, Amn Ojee Uw wrote:
Tomcat is installed in '/opt/tomcat' and when trying to add tomcat as a 
server, well, NB has not permission to access that directory.

Can anyone help?
I am using NB-latest in my Debian box.



I recommend downloading Tomcat from tomcat.apache.org, unpack it in a 
directory, and then point your NetBeans installation to that. That way 
you have complete control, and the Tomcat mailing list can easily help 
you out with any issues.


I typically create a ~Apache/ directory and unpack Tomcat servers in 
that. You'll have to configure tomcat-users.xml so that NetBeans can 
actually control Tomcat as well.


There are a lot of creative things you can do once you do that, but that 
should get you going.


. . . just my two cents
/mde/


OpenPGP_signature
Description: OpenPGP digital signature


Re: [apache netbeans12[ [javafx] [install] Can't install correctly.

2022-02-09 Thread Mark Eggers

Just out of curiosity:

What I do on Linux and Windows is the following:

1. Set JAVA_HOME to location of the base directory for the JDK
2. Set JRE_HOME to the location of the base directory for the JRE
3. Set PATH
a) to $PATH to include $JRE_HOME/bin:$JAVA_HOME/bin (Linux)
b) to %PATH% to include %JRE_HOME%\bin;%JAVA_HOME%\bin (Windows)

Would it not work in a similar fashion on a Macintosh? It's been ages 
since I've worked on one (Quadra days).


. . . just my two cents
/mde/

On 2/9/2022 3:25 PM, Robert Lockwood wrote:

I have a Java application from some years ago using an old Netbeans,
JavaFX, Scene Builder, and Java 8.  I've been asked to add features to and
thought that I would migrate it to a more current IDE etc. and put an end
to the warnings I receive when I build. I'm using macOA Monterey and an
Apple Silicon M1 macBook.

I've managed to fix all the syntax errors with help from Dr. Google but
cannot complete a build. It cannot find the executable or the deployment
library in the JDK.  I've supplied the locations in the libraries and jars
list and have added the path to the Java Home folder in /Library/... (as a
side issue Netbeans cannot find the javadocs).

I don't know what I missed and what to try next so I'm asking for help
here.  First time use of this mailing list, too. The application won't be
deployed BTW.  I understand the Nashorn warnings.

Path to JDK /Lbrary/Java/JavaVirtualMachines/jdk-11.0.2.jdk added to $PATH

Build output slightly edited with '***' prepended to warnings and errors of
note:

*** Warning: java executable not found in JDK, evaluating java executable
in RT instead.
init:
deps-clean:
Updating property file:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/built-clean.properties
Deleting directory
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build
clean:
init:
deps-jar:
Created dir: /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build
Updating property file:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/built-jar.properties
Created dir:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
Created dir:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/empty
Created dir:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/generated-sources/ap-source-output
Compiling 9 source files to
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
Copying 5 files to
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
compile:
< 14 Nashorn warnings >
Warning: Nashorn engine is planned to be removed from a future JDK release

Copying 11 files to
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/dist/lib
*** : java executable not found in JDK, evaluating java executable in RT
instead.
Detected JavaFX Ant API version 1.0

/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3550:
The following error occurred while executing this line:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3578:
The following error occurred while executing this line:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3597:
The following error occurred while executing this line:
/Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:524:
Error:
*** JavaFX deployment library not found in active JDK.

*** Please check that the JDK is correctly installed and its version is at
least 7u4 on Mac or 7u6 on other systems.
BUILD FAILED (total time: 7 seconds)





OpenPGP_signature
Description: OpenPGP digital signature


Re: NetBeans 12.6 / Oracle JDK 11.0.14 LTS / JAX-B Binding

2022-01-20 Thread Mark Eggers

BK,

On 1/20/2022 8:57 AM, Brad K. wrote:

Hello --

1. New Project -> Java with Maven
2. Copy Primer.xsd from here 
(https://github.com/javaee/jaxb-v2/tree/master/jaxb-ri/samples/src/main/samples/partial-unmarshalling) 


3. File -> New -> JAX-B Binding
4. Binding name: Primer,
    file: navigate to file in ${project}/xsd/Primer.xsd
    package: primer
5. Click finish. Ever so briefly see a progress bar that immediately 
disappears and nothing happens.


No error messages, no exceptions. Click "Help" and get nothing.

Is there something I need to do to enable the JAX-B Binding stuff?

V/r,

BK


Those classes are no longer in the JDK/JRE (along with activation). 
You'll need at least the following in your pom.xml:




javax.xml.bind
jaxb-api
2.3.0


com.sun.xml.bind
jaxb-core
2.3.0


com.sun.xml.bind
jaxb-impl
2.3.0


javax.activation
activation
1.1.1


Update to the latest versions as necessary.

. . . . just my two cents
/mde/


OpenPGP_signature
Description: OpenPGP digital signature


Re: Netbeans IDE 12.6/JavaFX 17/Java 11

2022-01-13 Thread Mark Eggers

First of all, when I do development it's for Java EE web containers.
Second of all, I use Maven, so if you're using Ant or Gradle I will have 
even less of a clue.


That being said, I did a quick search for:

Error initializing QuantumRenderer: no suitable pipeline found a 
StackOverflow discussion here:


https://stackoverflow.com/questions/65737055/javafx-web-11-error-initializing-quantumrenderer-no-suitable-pipeline-found

In it, there is a reference to a classifier for the javafx-graphics 
artifact. The resulting dependency snippet is:



org.openjfx
javafx-graphics
17
mac


And substitute win or linux as the classifier if you're targeting those 
systems.


Another discussion on this can be found on the read-only github site:

https://github.com/javafxports/openjdk-jfx/issues/237

While the Java version is different, it appears that there are 
instructions for including the correct modules. I don't know if 
something similar will work with Java 17.


Again, I'm a web applications developer (when I develop - I'm mostly a 
systems / software architect at this point) and not a desktop developer.


Maybe this will point you in the correct direction at least?

. . . just my two cents
/mde/

On 1/13/2022 12:25 AM, 王东华 wrote:

Dear,
Our development environment: Netbeans IDE 12.6, JavaFX 17, Java 11
I have create a Netbeans Platform Application and want to use JavaFX,
I have add JavaFX jar into the wrapped jars, and there are no compile error for 
JavaFX in Netbeans IDE,
However, when I run the application, IDE will show following exception:
java.lang.RuntimeException: No toolkit found
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:276)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:291)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at javafx.embed.swing.JFXPanel.lambda$initFx$1(JFXPanel.java:225)
[catch] at java.base/java.lang.Thread.run(Thread.java:829)
And I don't know how to add -module-path and --add-modules for Netbeans 
Platform Application




OpenPGP_signature
Description: OpenPGP digital signature


Re: [OT] Can't get project to work with tomcat7

2022-01-09 Thread Mark Eggers

Mark,

Glad to hear you're up and running.

While I use Python from time to time, I remain (mostly) a Java person.

[insert standard language rant here]

Use the tool you're comfortable with, and one that's suited for the job.

. . . just my two cents
/mde/

On 1/9/2022 4:16 PM, Mark Phillips wrote:

Mark,

That helps a lot.

I was able to manually start tomcat7, clean and build the site, and
manually deploy the war file, trap the exception, change one line of code
(add 33 characters), and the site works on my development machine.

I now need to get a large bottle of bourbon, drink 1/2 of it for courage,
deploy the new war file on my production server, and if it all works, then
finish the bottle in celebrationif it breaks, then, well...,  finish
the bottle anyway...

I am going to try to update the application to the latest standards (Java,
JSP, Tomcat) and see how far I get. I have to admit, I left java quite a
while ago for Python and the Django framework. I have thought of just
keeping the db and rebuilding the site from scratch using Django...but that
seems to be as large a project as updating the java site to the latest
versions of everythingpass the bourbon!

Mark

On Sun, Jan 9, 2022 at 3:54 PM Mark Eggers  wrote:


Mark,

Well, that is indeed it.

You've told NetBeans that it's a J2EE 7 application (which Tomcat 7
won't run), and the web.xml is servlet specification 2.4.

You can try the following:

in web.xml

http://java.sun.com/xml/ns/javaee;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;>

In NetBeans->Properties->Run

Java EE Version: Java EE 5.

If you're using Maven, you'll still have to install a JDK 8 Java
Platform under
Tools->Java Platforms.

I don't know if you're building under Maven or Ant, but you may also
have to update the JSP API. From one of my Maven projects which is set
for Java EE 5:

servlet-api-2.5 (provided by Tomcat)
jsp-api-2.1 (provided by Tomcat)

I also use JSTL and tag libraries since I think scriptlets are evil
(lack of exception management is at the top of their evilness).

javax.servlet.jsp.jstl-api-1.2.2 (not provided by Tomcat)
taglibs-standard-impl-1.2.5 (not provided by Tomcat, using the taglibs
from Apache)

That should be enough to get everything seen by NetBeans.

You could bump things up to servlet spec 3.0.1 (Java EE 6) before
running into a Tomcat 7 limitation. The process is similar, just with a
different XSD and dependency set.

Note that if you're running log4j 2.17.1 (or any log4j2, actually),
you'll need to initialize it differently in Java EE 6 versus Java EE 5
and below.

I hope that gets you started.

Mark
/mde/

On 1/9/2022 2:00 PM, Mark Phillips wrote:

-- Forwarded message -
From: Mark Phillips 
Date: Sun, Jan 9, 2022 at 2:58 PM
Subject: Re: Can't get project to work with tomcat7
To: Mark Eggers 
Cc: 




On Sun, Jan 9, 2022 at 1:27 PM Mark Eggers 
Mark,

All the applications that we run work fine on Tomcat 7 - Tomcat 9 (after
we modify context.xml). Most of our apps are pretty simple, but we do
have a few with either complex calculations or complex REST APIs. Your
challenges with Tomcat 9 should probably be taken up on the Tomcat
mailing list (great place, BTW).

If you go under Project->Properties->Run, what does the Java EE Version
say? If you have a web.xml (most likely), what is the web-app version
attribute value?



Run properties = Java EE 7 Web
web-app = http://java.sun.com/xml/ns/j2ee;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation="

http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;>




Just looking at the drop-down menu for Java EE Version, it doesn't look
like NetBeans supports anything lower than Java EE 5. If you have a
really old web application running servlet spec 2.4, NetBeans 12 may not
recognize it.



How do I update the servlet spec for my application?  Sounds like one

place

to start upgrading my application?



In that case, you should be able to build your application in NetBeans
12, run Tomcat separately, and deploy using the manager application.




Please note that if you use Maven and run NetBeans on Java 11, you'll
need to configure a JDK 8 Java Platform (under tools).

Technical debt is really dangerous. If there is a security issue with
unsupported platforms, the resulting fire drill is unpleasant at best
(speaking from personal work experiences).



I totally agreejust need more hours in the day! ;)



. . . just my two cents
/mde/

On 1/9/2022 11:33 AM, Mark Phillips wrote:

Mark,

My project is old, and is running on tomcat7 in production. It seems

mysql

was updated on the production server, and now I cannot add data to
mysql/the application because of this error message:

Generated keys not requested. You need to specify
Statement.RETURN_

Re: Can't get project to work with tomcat7

2022-01-09 Thread Mark Eggers

Mark,

I sent you a direct mail message. Hope that gets you started.

. . . just my two cents
/mde/

On 1/9/2022 1:58 PM, Mark Phillips wrote:

On Sun, Jan 9, 2022 at 1:27 PM Mark Eggers 
wrote:


Mark,

All the applications that we run work fine on Tomcat 7 - Tomcat 9 (after
we modify context.xml). Most of our apps are pretty simple, but we do
have a few with either complex calculations or complex REST APIs. Your
challenges with Tomcat 9 should probably be taken up on the Tomcat
mailing list (great place, BTW).

If you go under Project->Properties->Run, what does the Java EE Version
say? If you have a web.xml (most likely), what is the web-app version
attribute value?



Run properties = Java EE 7 Web
web-app = http://java.sun.com/xml/ns/j2ee;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;>




Just looking at the drop-down menu for Java EE Version, it doesn't look
like NetBeans supports anything lower than Java EE 5. If you have a
really old web application running servlet spec 2.4, NetBeans 12 may not
recognize it.



How do I update the servlet spec for my application?  Sounds like one place
to start upgrading my application?



In that case, you should be able to build your application in NetBeans
12, run Tomcat separately, and deploy using the manager application.




Please note that if you use Maven and run NetBeans on Java 11, you'll
need to configure a JDK 8 Java Platform (under tools).

Technical debt is really dangerous. If there is a security issue with
unsupported platforms, the resulting fire drill is unpleasant at best
(speaking from personal work experiences).



I totally agreejust need more hours in the day! ;)



. . . just my two cents
/mde/

On 1/9/2022 11:33 AM, Mark Phillips wrote:

Mark,

My project is old, and is running on tomcat7 in production. It seems

mysql

was updated on the production server, and now I cannot add data to
mysql/the application because of this error message:

Generated keys not requested. You need to specify
Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate(),
Statement.executeLargeUpdate() or Connection.prepareStatement().

I need to update the java files for db access, so I need netbeans to work
with this project so I can make a new .war file and update the production
server.

I realize that I am using old stuff, but it works and I don't have time
right now to upgrade the entire site (launched in 2000). I tried running
the site on tomcat 9 when it came out, and there were too many issues to
resolve at that time, so I left it on tomcat7.

I still think there is something screwy with netbeans if it will allow a
tomcat7 server to be added, and run, but won't associate it with a

project.


Thanks,

Mark





On Sun, Jan 9, 2022 at 10:39 AM Mark Eggers



wrote:


Mark,

What servlet specification is your project? Tomcat 7 (which is EOL BTW)
will handle up to servlet specification 3.0 (J2EE 6 Web). Anything later
will require a later version of Tomcat. Tomcat 9 is probably the best
choice until you're ready to switch to the Jakarta namespace.

. . . just my two cents
/mde/

On 1/9/2022 7:35 AM, Mark Phillips wrote:

Mark,

I tried that. The problem is the server list in the project run

properties

isn't populated with my tomcat installation. There is nothing in the

list

to select.

Mark

On Fri, Jan 7, 2022 at 3:48 PM Mark Eggers



wrote:


Mark,

On 1/7/2022 2:28 PM, Mark Phillips wrote:

I have the latest netbeans on Ubuntu (at least it says it is up to

date). I

open an old project, and it says the tomcat server is missing. I

click

on

Resolve Missing Server, go through the steps to let netbeans know

where

my

tomcat 7 server is located, and click finish. I end up back at the

same

place - "the target server has not been set or has been removed." If

I

go

to the Services tab, click on Apache Tomcat, and then start, tomcat

starts.

I still can't get the project to associate with Tomcat. I remove the

tomcat

instance from Services, restart netbeans, and the same thing happens.

How

do I get out of this endless and unproductive loop?

Mark



Did you change the project run properties?

. . . just my two cents
/mde/

















OpenPGP_signature
Description: OpenPGP digital signature


Re: Can't get project to work with tomcat7

2022-01-09 Thread Mark Eggers

Mark,

All the applications that we run work fine on Tomcat 7 - Tomcat 9 (after 
we modify context.xml). Most of our apps are pretty simple, but we do 
have a few with either complex calculations or complex REST APIs. Your 
challenges with Tomcat 9 should probably be taken up on the Tomcat 
mailing list (great place, BTW).


If you go under Project->Properties->Run, what does the Java EE Version 
say? If you have a web.xml (most likely), what is the web-app version 
attribute value?


Just looking at the drop-down menu for Java EE Version, it doesn't look 
like NetBeans supports anything lower than Java EE 5. If you have a 
really old web application running servlet spec 2.4, NetBeans 12 may not 
recognize it.


In that case, you should be able to build your application in NetBeans 
12, run Tomcat separately, and deploy using the manager application.


Please note that if you use Maven and run NetBeans on Java 11, you'll 
need to configure a JDK 8 Java Platform (under tools).


Technical debt is really dangerous. If there is a security issue with 
unsupported platforms, the resulting fire drill is unpleasant at best 
(speaking from personal work experiences).


. . . just my two cents
/mde/

On 1/9/2022 11:33 AM, Mark Phillips wrote:

Mark,

My project is old, and is running on tomcat7 in production. It seems mysql
was updated on the production server, and now I cannot add data to
mysql/the application because of this error message:

Generated keys not requested. You need to specify
Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate(),
Statement.executeLargeUpdate() or Connection.prepareStatement().

I need to update the java files for db access, so I need netbeans to work
with this project so I can make a new .war file and update the production
server.

I realize that I am using old stuff, but it works and I don't have time
right now to upgrade the entire site (launched in 2000). I tried running
the site on tomcat 9 when it came out, and there were too many issues to
resolve at that time, so I left it on tomcat7.

I still think there is something screwy with netbeans if it will allow a
tomcat7 server to be added, and run, but won't associate it with a project.

Thanks,

Mark





On Sun, Jan 9, 2022 at 10:39 AM Mark Eggers 
wrote:


Mark,

What servlet specification is your project? Tomcat 7 (which is EOL BTW)
will handle up to servlet specification 3.0 (J2EE 6 Web). Anything later
will require a later version of Tomcat. Tomcat 9 is probably the best
choice until you're ready to switch to the Jakarta namespace.

. . . just my two cents
/mde/

On 1/9/2022 7:35 AM, Mark Phillips wrote:

Mark,

I tried that. The problem is the server list in the project run

properties

isn't populated with my tomcat installation. There is nothing in the list
to select.

Mark

On Fri, Jan 7, 2022 at 3:48 PM Mark Eggers 
Mark,

On 1/7/2022 2:28 PM, Mark Phillips wrote:

I have the latest netbeans on Ubuntu (at least it says it is up to

date). I

open an old project, and it says the tomcat server is missing. I click

on

Resolve Missing Server, go through the steps to let netbeans know where

my

tomcat 7 server is located, and click finish. I end up back at the same
place - "the target server has not been set or has been removed." If I

go

to the Services tab, click on Apache Tomcat, and then start, tomcat

starts.

I still can't get the project to associate with Tomcat. I remove the

tomcat

instance from Services, restart netbeans, and the same thing happens.

How

do I get out of this endless and unproductive loop?

Mark



Did you change the project run properties?

. . . just my two cents
/mde/












OpenPGP_signature
Description: OpenPGP digital signature


Re: Can't get project to work with tomcat7

2022-01-09 Thread Mark Eggers

Mark,

What servlet specification is your project? Tomcat 7 (which is EOL BTW) 
will handle up to servlet specification 3.0 (J2EE 6 Web). Anything later 
will require a later version of Tomcat. Tomcat 9 is probably the best 
choice until you're ready to switch to the Jakarta namespace.


. . . just my two cents
/mde/

On 1/9/2022 7:35 AM, Mark Phillips wrote:

Mark,

I tried that. The problem is the server list in the project run properties
isn't populated with my tomcat installation. There is nothing in the list
to select.

Mark

On Fri, Jan 7, 2022 at 3:48 PM Mark Eggers 
wrote:


Mark,

On 1/7/2022 2:28 PM, Mark Phillips wrote:

I have the latest netbeans on Ubuntu (at least it says it is up to

date). I

open an old project, and it says the tomcat server is missing. I click on
Resolve Missing Server, go through the steps to let netbeans know where

my

tomcat 7 server is located, and click finish. I end up back at the same
place - "the target server has not been set or has been removed." If I go
to the Services tab, click on Apache Tomcat, and then start, tomcat

starts.

I still can't get the project to associate with Tomcat. I remove the

tomcat

instance from Services, restart netbeans, and the same thing happens. How
do I get out of this endless and unproductive loop?

Mark



Did you change the project run properties?

. . . just my two cents
/mde/







OpenPGP_signature
Description: OpenPGP digital signature


Re: Can't get project to work with tomcat7

2022-01-07 Thread Mark Eggers

Mark,

On 1/7/2022 2:28 PM, Mark Phillips wrote:

I have the latest netbeans on Ubuntu (at least it says it is up to date). I
open an old project, and it says the tomcat server is missing. I click on
Resolve Missing Server, go through the steps to let netbeans know where my
tomcat 7 server is located, and click finish. I end up back at the same
place - "the target server has not been set or has been removed." If I go
to the Services tab, click on Apache Tomcat, and then start, tomcat starts.
I still can't get the project to associate with Tomcat. I remove the tomcat
instance from Services, restart netbeans, and the same thing happens. How
do I get out of this endless and unproductive loop?

Mark



Did you change the project run properties?

. . . just my two cents
/mde/


OpenPGP_signature
Description: OpenPGP digital signature


Re: Offline Install of Netbeans on JDK 8 (with nb-javac)

2021-12-31 Thread Mark Eggers

BK,

Maybe start here?

https://github.com/oracle/nb-javac

You'll have to clone the repository (or release tag, or release) from a 
place where you do have Internet access, and then go through the 
appropriate channels to bring it into your environment.


Once there, you should be good to either build it or install it on a 
local NetBeans platform.


If you need it in your air-gapped environment and have an internal Maven 
repository, then install the binaries there. That way other folks can 
download the JAR files, and copy them to the appropriate locations.


. . . just a thought
/mde/

On 12/31/2021 11:41 AM, Brad K. wrote:
I have no choice in the Java version; as I said, I'm working for the 
gov't and they have to decide to move forward; I have no say in the matter.


As for nb-javac, I'm struggling here.

Could you point me to the correct link/location for the correct 
"nb-javac" to download?


I can't get Netbeans to quit asking me to install nb-javac on my network 
disconnected Windows installation even after installing the plugin.


Thanks,

BK

On 12/25/2021 3:17 PM, Geertjan Wielenga wrote:
Download nb-javac at home where you have Internet, put it on a usb 
stick, take the usb stick to work, upload nb-javac into your 
environment, then install it via the Plugin Manager.


Or use a later version of the JDK where you don’t need nb-javac, i.e., 
any version after JDK 8, or wait until NetBeans 13, in the first 
months of 2022, where nb-javac will be part of NetBeans.


Best to start moving away from JDK 8, though. There are now two LTS 
releases since 8.


Gj

On Sat, 25 Dec 2021 at 22:09, Brad K.  wrote:

    Yep, it installs fine. But activating the Java parts of the IDE
    doesn't
    work without being forced to download/install the nb-javac
    plugin/module. And I can't do that in the stand-alone network
    environment I'm in (air-gapped.)

    So, I'm trying to find a way to install the nb-javac without Internet
    access. Everything I've tried always ends up with the IDE to keep
    asking
    to install nb-javac.

    On 12/25/2021 3:00 PM, Geertjan Wielenga wrote:
    > “installed over Oracle’s JDK 8”
    >
    > What does this mean? NetBeans runs on any JDK from 8 onwards.
    >
    > Gj
    >
    >
    >
    > On Sat, 25 Dec 2021 at 21:51, Brad K.  wrote:
    >
    >     Hey all --
    >
    >     (I'm resending this since my original seems to have gotten
    lost.)
    >
    >     I've been trying to find a definitive yes or no to the
    question: can
    >     Netbeans 11.3 (or later) be installed over Oracle's JDK 8 in a
    >     non-internet connected environment and successfully add
    nb-javac?
    >
    >     I work in gov't and our development network is completely
    >     air-gapped to
    >     everything.
    >
    >     Every time we try to start up a Java project, it asks us to
    install
    >     nb-javac (as well as JavaFX stuff -- which is included in
    JDK 8.)
    >     We've
    >     tried downloading various versions of javac-api, javac-impl and
    >     nb-javac
    >     and the updater, plugins handler, etc., won't use any of
    them to meet
    >     the nb-javac requirement plugin listed in the "Available
    Plugins"
    >     dialog.
    >
    >     If it is possible, what are the actual directions? Is it posted
    >     somewhere
    >     and my Google-fu is lacking?
    >
    >     If its not possible, are there solutions that don't require
    Internet
    >     connectivity? Could we setup our own plugin/update repo on
    our dev
    >     net?
    >
    >     Please help!
    >
    >     V/r,
    >
    >     Brad
    >
    >
    >

 -

    >     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





OpenPGP_signature
Description: OpenPGP digital signature


Encoding semicolon in an param-value

2021-12-15 Thread Mark Eggers
I am using NetBeans 12.4 (I know, upgrade) on a Windows 10 Professional 
system with JDK 11.0.12 (I know, upgrade).


I am writing a proof of concept web application (Maven, Java EE 6) to 
test configurable servlet filters for Content-Security-Policy and 
X-Frame-Options.


This all works well, except that NetBeans marks my web.xml with errors 
if I put something like the following into a 


default-src 'self' object-src 'none'

It's read correctly, and examining the Content-Security-Policy values 
shows up the expected results (with the semicolons).


What is the proper way of encoding a semicolon so that it's read by the 
filter as a

 but does not generate an error by NetBeans?

. . . just my two cents
/mde/


OpenPGP_signature
Description: OpenPGP digital signature


Re: Need an advice

2021-11-18 Thread Mark Eggers

I haven't played with d3js, but it does look promising.

Here's a link with graphs that can be moved around:

https://observablehq.com/collection/@d3/d3-drag

Just click on an example, and play with the results.

As far as acyclic directed graphs with d3js:

https://github.com/erikbrinkman/d3-dag

may be a good starting point.

Combining the two is left as an exercise for the reader.

. . . just my two cents
/mde/

On 11/18/2021 3:34 PM, Anthony DeCarlo wrote:

Gary,

Many years ago I used a javascript library called D3 to
create various bar charts and graphs of tabular data.
Users were able to hover over artifacts in the graphs and charts
to get more details, or click on various artifacts to drill down
to other charts or the raw tabular data.
I was quite pleased with the results.

https://d3js.org/

My 2 cents.

Tony

On 11/18/2021 17:56, Greenberg, Gary wrote:


Sorry for out of topic question, but I really don’t know where else I 
can ask it.


I did try to search on the internet but did not come up with anything 
useful.


I am specializing on the back-end development but right now I do need 
a suggestion for the front end.


The user interface for the web application that I need to build shall 
allow user to create a


DAG – directed acyclical graph.

Nodes of the graph shall be dragged from the palette and dropped on 
the canvas and then connected with edges.


Edges will be loaded with some conditions and actions as well.

User interface shall allow editing – adding/deleting/replacing nodes 
and edges.


If someone has done something similar and can recommend a 
framework/toolkit for this kind of front-end development,


it will be greatly appreciated.

Thanks a lot.

*Gary Greenberg*

Staff Software Engineer







OpenPGP_signature
Description: OpenPGP digital signature


Re: Emmet

2021-07-15 Thread Mark Eggers
It says Latest Release on a button on the left hand side of the page. 
Clicking that brings you back to that page which has 1.4 on it.


. . . just my two cents
/mde/

On 7/15/2021 9:30 PM, Tom Rushworth wrote:

Never mind. I found it. Is 1.4 the latest version?

Tom



On 7/16/2021 12:23 AM, Tom Rushworth wrote:


Maybe I'm just stupid, but where is the download link?

Tom

On 7/15/2021 10:27 PM, Mark Eggers wrote:

1. Go to the download link
2. Download the release (.nbm file)
3. Start Netbeans
4. Open Tools->Plugins
5. Select the Downloaded tab
6. Click on the Add Plugins. . . button
7. Browse to where you downloaded the .nbm file
8. Select the plugin and click on the Open button
9. Click on the Install button
10. Click on the Next-> button
11. Accept license
12. Click on the Install button
13. Accept self-signed certificate
14. Click on Continue
15. Make sure the Restart IDE Now radio button is selected (it is by 
default)

16. Click on finish

This will restart the IDE and install Emmet. The above is pretty much 
standard for any downloaded Netbeans plugin (.nbm).


I have no idea how to use Emmet. I see it in my plugins list, but 
I've not read the documentation nor watched the video.


I did this on 12.0 (I normally run 12.4), but the note on the release 
said NetBeans 12.0+.


I'm not endorsing nor knocking this plugin. I'm just detailing how to 
install a downloaded plugin. Caveat emptor.


. . . just my two cents
/mde/

On 7/15/2021 5:58 PM, Tom Rushworth wrote:
That's the problem. The Emmet website gives the impression that 
Emmet is available. However, there doesn't appear to be any way to 
install it in Netbeans.


Tom


On 7/15/2021 8:08 PM, Mark Eggers wrote:


On 7/15/2021 4:02 PM, Tom Rushworth wrote:

Is Emmet available for use in Netbeans 12.4?

Tom




It appears to be:

https://github.com/emmetio/netbeans/releases/tag/v1.4.0

It doesn't seem to be available on 
https://plugins.netbeans.apache.org/.


I've not tried it, so I don't know if it works with 12.4.

. . . just my two cents
/mde/













OpenPGP_signature
Description: OpenPGP digital signature


Re: Emmet

2021-07-15 Thread Mark Eggers

1. Go to the download link
2. Download the release (.nbm file)
3. Start Netbeans
4. Open Tools->Plugins
5. Select the Downloaded tab
6. Click on the Add Plugins. . . button
7. Browse to where you downloaded the .nbm file
8. Select the plugin and click on the Open button
9. Click on the Install button
10. Click on the Next-> button
11. Accept license
12. Click on the Install button
13. Accept self-signed certificate
14. Click on Continue
15. Make sure the Restart IDE Now radio button is selected (it is by 
default)

16. Click on finish

This will restart the IDE and install Emmet. The above is pretty much 
standard for any downloaded Netbeans plugin (.nbm).


I have no idea how to use Emmet. I see it in my plugins list, but I've 
not read the documentation nor watched the video.


I did this on 12.0 (I normally run 12.4), but the note on the release 
said NetBeans 12.0+.


I'm not endorsing nor knocking this plugin. I'm just detailing how to 
install a downloaded plugin. Caveat emptor.


. . . just my two cents
/mde/

On 7/15/2021 5:58 PM, Tom Rushworth wrote:
That's the problem. The Emmet website gives the impression that Emmet is 
available. However, there doesn't appear to be any way to install it in 
Netbeans.


Tom


On 7/15/2021 8:08 PM, Mark Eggers wrote:


On 7/15/2021 4:02 PM, Tom Rushworth wrote:

Is Emmet available for use in Netbeans 12.4?

Tom




It appears to be:

https://github.com/emmetio/netbeans/releases/tag/v1.4.0

It doesn't seem to be available on https://plugins.netbeans.apache.org/.

I've not tried it, so I don't know if it works with 12.4.

. . . just my two cents
/mde/








OpenPGP_signature
Description: OpenPGP digital signature


Re: Emmet

2021-07-15 Thread Mark Eggers

On 7/15/2021 4:02 PM, Tom Rushworth wrote:

Is Emmet available for use in Netbeans 12.4?

Tom




It appears to be:

https://github.com/emmetio/netbeans/releases/tag/v1.4.0

It doesn't seem to be available on https://plugins.netbeans.apache.org/.

I've not tried it, so I don't know if it works with 12.4.

. . . just my two cents
/mde/



OpenPGP_signature
Description: OpenPGP digital signature


Re: FW: failure notice

2020-11-02 Thread Mark Eggers

Peter,

I tried to read through the quoted emails and headers, but I may have 
gotten lost.


Here's how I run JDK / NetBeans / Node on my Windows 10 Professional 
system. Your mileage may vary.


1. Install JDK/JRE
a. I use AdoptOpenJDK
b. I use the latest JDK/JRE 11
c. I use the zip files
d. Add the PATH to the executables manually
e. Add JRE_HOME and JAVA_HOME to the environment variables manually

2. Install NetBeans
a. I use NetBeans 12.0 (LTS)
b. I use the zip file
c. I edit netbeans.conf
   set netbeans_jdkhome
  add the following to netbeans_default_options
  -J-Dfile.encoding=UTF-8
  -JDmaven.defaultProjectBuilder.disableGlobalModelCache=true
  --fontsize 12

3. Install Node from nodejs.org
a. download the LTS
b. Use the installer

4. Start NetBeans

5. Go to Tools->Options->HTML5/JS

6. Configure all of the HTML5/JS tools

This has worked reliably for me for a while.

In short, I don't use the installers for a lot of things. I also install 
tools separately, and then use the configurations to integrate them 
where necessary.


. . . just my two cents
/mde/

PS - The user name is from e. e. cummings play "Him". It's from It's 
Toasted - the name of a pet hippo.


On 11/2/2020 1:07 PM, pe...@webparity.net wrote:

Hello,

Please see the thread regarding the issues that I'm having with Netbeans 11.3 
and 12.0.

They start, they are in Task Manager but there's no UI!

I don't understand!


Peter Borreggine
Owner and Developer
Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web Design/SEO
WebParity.net
A Service Connected Disabled Veteran Owned Business
WA State License: 603-501-609
360-830-8926 C

“Lead, Follow or Get Out of the Way…”
- Lee Iacocca, former head of Chrysler and Ford

This email message is for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient, please contact the sender and destroy all copies of the original 
message and its attachments. Any unauthorized review, use, disclosure, or 
distribution is prohibited.

-Original Message-
From: Laszlo Kishalmi 
Sent: Friday, October 30, 2020 4:51 PM
To: pe...@webparity.net
Subject: Re: failure notice

users@netbeans.apache.org is a mailing list. You need to subscribe there before 
you can send a mail there.

See the details at: http://netbeans.apache.org/community/mailing-lists.html


On 10/30/20 4:17 PM, pe...@webparity.net wrote:

Laszlo,

I have twice to no avail. See below


mailer-dae...@apache.org

Peter Borreggine
Owner and Developer
Angular/Bootstrap/NodeJS/Databases/HTML5/CSS3/Responsive Web
Design/SEO WebParity.net A Service Connected Disabled Veteran Owned
Business WA State License: 603-501-609
360-830-8926 C

"Lead, Follow or Get Out of the Way."
- Lee Iacocca, former head of Chrysler and Ford

This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. If you are
not the intended recipient, please contact the sender and destroy all
copies of the original message and its attachments. Any unauthorized
review, use, disclosure, or distribution is prohibited.

-Original Message-
From:
Sent:
Subject:

Hi. This is the qmail-send program at apache.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

:
Must be sent from an @apache.org address or a subscriber address or an
address in LDAP.

--- Below this line is a copy of the message.

Return-Path: 
Received: (qmail 29929 invoked by uid 99); 30 Oct 2020 21:38:10 -
Received: from spamproc1-he-fi.apache.org (HELO
spamproc1-he-fi.apache.org)
(95.217.134.168)
  by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2020
21:38:10 +
Received: from localhost (localhost [127.0.0.1])
by spamproc1-he-fi.apache.org (ASF Mail Server at
spamproc1-he-fi.apache.org) with ESMTP id 3AEE0C0423
for ; Fri, 30 Oct 2020 21:38:10 +
(UTC)
X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org
X-Spam-Flag: NO
X-Spam-Score: 0.262
X-Spam-Level:
X-Spam-Status: No, score=0.262 tagged_above=-999 required=6.31
tests=[KAM_DMARC_STATUS=0.01, KAM_LOTSOFHASH=0.25,
RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled
Received: from mx1-he-de.apache.org ([116.203.227.195])
by localhost (spamproc1-he-fi.apache.org [95.217.134.168])
(amavisd-new, port 10024)
with ESMTP id W8xCBQ_eJzDT for ;
Fri, 30 Oct 2020 21:38:09 + (UTC)
Received-SPF: Pass (helo) identity=helo; client-ip=74.208.4.197;
helo=mout.perfora.net; envelope-from=pe...@webparity.net;
receiver=
Received: from mout.perfora.net (mout.perfora.net [74.208.4.197])
by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org)
with ESMTPS id A145C7F757
for ; Fri, 30 Oct 2020 21:38:08 +
(UTC)
Received: from 

Re: Stopping Tomcat

2020-10-26 Thread Mark Eggers

HRH,

In general I don't recommend running Tomcat as a service on any platform 
when it's controlled by NetBeans.


1. On Windows

I create a directory (called Apache) somewhere where there's no spaces 
in the directory path. This is no longer strictly necessary, but it's 
nice to keep all the tools in one place.


I then download the zip archive of the Tomcat that I'm interested in.

I unzip it, and make the appropriate modifications in tomcat-users.xml. 
I edit the tomcat-users.xml file by hand.


I also put jars in %CATALINA_HOME%\lib, like the MySQL JDBC jar, 
activation jar (since I'm running on JDK 11 mostly), and mail jars. Add 
more (postgresql, sql), if you're running more services.


Finally, I point my NetBeans to this installation.

2. On Linux

See the above, use the tar.gz archive instead, and place the directory 
in an area under your user's control.


This has several advantages. I don't use a system account to control 
Tomcat. Starting and stopping can be done through NetBeans or the 
command line (nice when I have to switch to JDK 8 for legacy work). I 
can easily browse both the Tomcat logs and application logs.


Finally, I can configure multiple versions of Tomcat. I normally run 
only one development Tomcat at a time, so I don't bother changing the ports.


Right now I have one Tomcat for each of the major released versions 
(7.0, 8.5, 9.0), and an additional 8.5 version that is being tweaked to 
log via log4j2 and fluentd. Next on the list is Tomcat 10.


In short, I don't recommend running Tomcat as a service in a developer 
environment.


. . . just my two cents
/mde/
On 10/26/2020 8:51 AM, HRH wrote:

  Connor,In my case, the Tomcat shutdown port was configured to 8005 by the 
installer, however, I took your advise and set it to a different port. It's 
working fine now.
The user and password was setup properly by the installer, so I did not have to 
change anything in the server.xml file. So it seems that the shutdown port was 
the only culprit in my configuration.

Thanks for the helpful insight.


 On Monday, October 26, 2020, 6:55:29 PM GMT+3:30, Connor Cook 
 wrote:
  
  Hi HRH,

Below are two things I had to do to get Tomcat to be usable for me, though this 
is in Netbeans 11.1 so the process may have changed.
In order to get Tomcat to be stoppable and restartable by Netbeans, I needed to set the 
shutdown port in Netbeans (right-click on Tomcat in the 'Services' tab, click Properties, 
and the shutdown port is one of those properties) and in Tomcat's server.xml (I was able 
to right-click on Tomcat in the 'Services' tab and change the server.xml, I found the 
file in "C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf" if you 
need it).
I also needed to set up a user for Tomcat with the manager-script permission in 
tomcat-users.xml (for me that's in "C:\Program Files\Apache Software 
Foundation\Tomcat 9.0\conf" like server.xml), and then set that user and password in 
the properties for Tomcat in Netbeans.
Hopefully that helps,
Connor
On Sat, Oct 24, 2020 at 8:55 AM HRH  wrote:

  There are a few issues that I am experiencing in regards to controlling the Tomcat 
server from within the IDE:1- The Tomcat Server Log from Services->Servers->Apache 
Tomcat or TomEE->View Server Logs doesn't show any content from the log file in the 
output window.
2- The option to start the Tomcat server in debug mode is disabled and there is 
no way I can activate this option.3- When I try to debug a servlet in the IDE, 
the debug session hangs because it is waiting for the Tomcat server, which is 
already up and running.
I have removed and re-installed the Tomcat server a few times hoping for better 
luck but these issues seem persistent. I have searched the web on these issues 
and it seems they date back all the way to 2009.  I am completely stuck. Any 
help would be great.
Thanks

 On Saturday, October 24, 2020, 4:37:00 PM GMT+3:30, HRH 
 wrote:
  
  Hi,

Using the Netbeans 12 on Windows 10. I have added Apache Tomcat 9.0.30 server to the IDE, however, 
if I try to stop the server from Services->Servers->Apache Tomcat->Stop, it just spins 
for a very long time, until I close the IDE. Once the IDE starts back up if I try to restart the 
server, it returns with "failed to stop the server"? Any idea how to stop and restart 
Tomcat server?
Thanks


   





OpenPGP_0x41466EC60D793C2D.asc
Description: application/pgp-keys


OpenPGP_signature
Description: OpenPGP digital signature


Re: Dead code detection

2020-09-15 Thread Mark Eggers
The code appears to be here:

https://github.com/evernat/dead-code-detector

I just found it with a little searching. I have no idea what state the
code is in, how to create a plugin from it, or how it handles newer
versions of Java.

. . . just my two cents
/mde/

On 9/15/2020 12:28 PM, Oliver Rettig wrote:
> Hi all,
> 
> I need functionality in Netbeans to find dead code. Andy ideas about a plugin?
> 
> I have found
> 
> https://blogs.oracle.com/geertjan/dead-code-detection-with-netbeans-ide
> 
> but it is outdated and I can not find the source code. Maybe this plugin can 
> help
> 
> @Geertjan have you saved this code somewhere?
> 
> In concrete we have a java library project which is a Wrapper to a c++ native 
> lib. To create a 
> platform independent jar-file we want to add the native code build for 
> several operating 
> systems into the the jar. 
> 
> We found that the
> 
> https://jogamp.org/ 
> 
> project includes great code to do this but the code is part of a big project. 
> Not the state is 
> that we have a copy a subset of the classes which seems to be needed into our 
> project. But 
> most of this code is not needed. There are too many classes/methods we have 
> now to check 
> if they are really needed. Thats why we need a tool in the Netbeans IDE to 
> automatize this.
> 
> best regards
> Oliver
> 




signature.asc
Description: OpenPGP digital signature


Re: Java programs run in Netbeans but not outside

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

Something like this:



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

src/main/assembly/assembly.xml



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


bin

tar.gz
zip

false
false


target


*.jar
lib/





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

java -jar ./jarname.jar

Works for me.

. . . just my two cents
/mde/

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

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

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



Re: When to install nb-javac

2020-03-23 Thread Mark Eggers
emj,

That's a nice page, and the sub-page:

https://cwiki.apache.org/confluence/display/NETBEANS/Java+Editor+Using+JDK+javac

is useful as well.

. . . just my two cents.
/mde/

On 3/23/2020 2:11 PM, Emilian Bold wrote:
> Is there some table highlighting the features that are broken with /
> without nb-javac?
> 
> The nice page at
> https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac
> does highlight that there is a good reason nb-javac exists. Even when
> running on JDK 9+ are we really on-par with all the nb-javac features?
> My impression is that some things are just not the same (yet?).
> 
> --emi
> 
> On Mon, Mar 23, 2020 at 6:53 PM Geertjan Wielenga  wrote:
>>
>> https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac
>>
>> More info above.
>>
>> Gj
>>
>> On Mon, 23 Mar 2020 at 17:51, Geertjan Wielenga  wrote:
>>>
>>> Indeed, a must have only if NetBeans is running on JDK 8. Ultimately we 
>>> want to need nb-javac increasingly less for later JDKs and if you can do 
>>> without it, that would be great. Doesn’t exist yet, indeed, for 12.0 anyway.
>>>
>>> Gj
>>>
>>> On Mon, 23 Mar 2020 at 17:28, Mark Eggers  
>>> wrote:
>>>>
>>>> Folks,
>>>>
>>>> I'm currently working with NetBeans 12 beta 1 running on Windows 10
>>>> Professional and OpenJDK 11.-0.6. First of all, hats off to everyone who
>>>> contributed to this. It's running fine for all of my projects
>>>> (maven-based web and command line projects).
>>>>
>>>> I do have the notification showing 'Install nb-javac'. I've seen several
>>>> threads in both the developers' list and users' list saying to not
>>>> install nb-javac. I've also seen messages saying that if you run into
>>>> problems with nb-javac, disabling it is not enough. It must be uninstalled.
>>>>
>>>> Is there a definitive list of the benefits that nb-javac brings, and
>>>> when you should not install nb-javac?
>>>>
>>>> Considering this is also a beta, is the corresponding nb-javac even
>>>> available?
>>>>
>>>> I'm running NetBeans 11.1 as well with nb-javac installed with no
>>>> issues. However, NetBeans 12 fixes several issues (JavaScript CDN,
>>>> Tomcat 7.0.103 launching) that are important in my environment.
>>>>
>>>> Thanks for any insight.
>>>>
>>>> .. . . just my two cents.
>>>> /mde/
>>>>
> 
> -
> 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
> 




signature.asc
Description: OpenPGP digital signature


Re: When to install nb-javac

2020-03-23 Thread Mark Eggers
Gj,

Thanks for the information and the link.

/mde/

On 3/23/2020 9:53 AM, Geertjan Wielenga wrote:
> https://cwiki.apache.org/confluence/display/NETBEANS/Overview%3A+nb-javac
> 
> More info above.
> 
> Gj
> 
> On Mon, 23 Mar 2020 at 17:51, Geertjan Wielenga  wrote:
> 
>> Indeed, a must have only if NetBeans is running on JDK 8. Ultimately we
>> want to need nb-javac increasingly less for later JDKs and if you can do
>> without it, that would be great. Doesn’t exist yet, indeed, for 12.0 anyway.
>>
>> Gj
>>
>> On Mon, 23 Mar 2020 at 17:28, Mark Eggers 
>> wrote:
>>
>>> Folks,
>>>
>>> I'm currently working with NetBeans 12 beta 1 running on Windows 10
>>> Professional and OpenJDK 11.-0.6. First of all, hats off to everyone who
>>> contributed to this. It's running fine for all of my projects
>>> (maven-based web and command line projects).
>>>
>>> I do have the notification showing 'Install nb-javac'. I've seen several
>>> threads in both the developers' list and users' list saying to not
>>> install nb-javac. I've also seen messages saying that if you run into
>>> problems with nb-javac, disabling it is not enough. It must be
>>> uninstalled.
>>>
>>> Is there a definitive list of the benefits that nb-javac brings, and
>>> when you should not install nb-javac?
>>>
>>> Considering this is also a beta, is the corresponding nb-javac even
>>> available?
>>>
>>> I'm running NetBeans 11.1 as well with nb-javac installed with no
>>> issues. However, NetBeans 12 fixes several issues (JavaScript CDN,
>>> Tomcat 7.0.103 launching) that are important in my environment.
>>>
>>> Thanks for any insight.
>>>
>>> .. . . just my two cents.
>>> /mde/
>>>
>>>
> 




signature.asc
Description: OpenPGP digital signature


When to install nb-javac

2020-03-23 Thread Mark Eggers
Folks,

I'm currently working with NetBeans 12 beta 1 running on Windows 10
Professional and OpenJDK 11.-0.6. First of all, hats off to everyone who
contributed to this. It's running fine for all of my projects
(maven-based web and command line projects).

I do have the notification showing 'Install nb-javac'. I've seen several
threads in both the developers' list and users' list saying to not
install nb-javac. I've also seen messages saying that if you run into
problems with nb-javac, disabling it is not enough. It must be uninstalled.

Is there a definitive list of the benefits that nb-javac brings, and
when you should not install nb-javac?

Considering this is also a beta, is the corresponding nb-javac even
available?

I'm running NetBeans 11.1 as well with nb-javac installed with no
issues. However, NetBeans 12 fixes several issues (JavaScript CDN,
Tomcat 7.0.103 launching) that are important in my environment.

Thanks for any insight.

.. . . just my two cents.
/mde/



signature.asc
Description: OpenPGP digital signature


Re: NB 11.2 change default project path

2020-02-20 Thread Mark Eggers
I did not know that - cool!

. . . just my two cents
/mde/
On 2/20/2020 10:59 AM, Laszlo Kishalmi wrote:
> Start Netbeans with:
> 
> -J-Dnetbeans.projects.dir=
> 
> you can add that option into your etc/netbeans.conf as well
> 
> On 2/20/20 6:59 AM, Mark Eggers wrote:
>> I don't really understand why you described a disk crash, recovery, and
>> then said that the default project folder wasn't to your liking / wasn't
>> easy to change.
>>
>> Instead, how about the following:
>>
>> I would like to change the default location of where File->New Project
>> creates projects. I didn't find an easy or effective way to do this. Is
>> there one?
>>
>> Can we have a start-up switch (somewhat like Eclipse) that allows us to
>> chose a base project location? Or maybe a GUI in Tools->Options that
>> allows us to set it easily? I will be happy to discuss my use case on
>> the mailing list. Thanks.
>>
>> Is the above an accurate description of your issue? If it is, that
>> sounds like a simple (and possibly reasonable) request.
>>
>> Personally, I don't mind browsing around to a different location during
>> project creation. Since I store different clusters of projects in
>> different parent directories, browsing around to open projects is part
>> of my normal work flow. YMMV
>>
>> . . . just my two cents.
>> /mde/
>>
>> On 2/19/2020 9:22 PM, cryptearth wrote:
>>> TBH I didn'T read all of your reply, but from the first few lines I did
>>> read: no, you got me wrong.
>>> My question is as simple as that: Is it possible, and if so: How?, to
>>> change the default project folder where new projects supposed to get
>>> created on disk? I didn't found any setting in whatever the GUI gives me
>>> (as someone else on this list a few ago said: "Netbeans is basically a
>>> graphical wrapper around maven.") and I didn't found any config file.
>>> The one mentioned on many search results on the net doesn'T seem to have
>>> an effect either, and the other user replied to my question seem to
>>> didn't got my question at all and pointed me to a file wich has nothing
>>> to do with per-user settings at all.
>>> Yes, Netbeans has many flaws - and obvious a lot of them exists since
>>> 15(!) years (I found a bug report wich evolved into a discusion from
>>> back late 2004 about this very topic). Is it really that much to ask
>>> just for a simple input dialog right at the first time start up where
>>> the user wants his default project location to be? And is it that hard
>>> to at least somewhat follow the style many graphical programms followed
>>> for the past three decades where you have a menu bar, starting with
>>> File, then Edit, then maybe some more, and end with Extras and Help -
>>> and to just put an "options" or "settings" into one of those - and offer
>>> the same settings dialog as mentioned before? How old is Netbeans? 15+
>>> years? And it's menus are that - sorry to say it this directly:
>>> immature? It's like an early not feature complete alpha where someone
>>> couldn't decide just where to put it.
>>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
>>> more. It's a simple if() just to check for the version of the compiler -
>>> and if it's 11 or above set the minimum target compiling level to at
>>> least 6 and disable any lower versions. C'mon - don't tell me 100s of
>>> devs could get this done in the time this exists.
>>> All made fun about me cause I'm using just a simple editor with some
>>> basic syntax highlight and a terminal to compile. If I see what a mess
>>> and overhead all this fancy IDEs and build-tools costs - wich in fact
>>> they're supposed to do for the dev - not in addition to it - what's the
>>> benefit of wasting time to figure out how to get around simplest fails
>>> done in every beginners for dummies book?
>>>
>>> I'm done with it - back to the old style - that at least did what I told
>>> to do ..
>>>
>>> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>>>> First of all, I'm just a happy NetBeans user.
>>>>
>>>> Second of all, this is just my opinion.
>>>>
>>>> So let me try to understand your problem first.
>>>>
>>>> 1. You crashed what appears to be a Windows data and programs disk
>>>>
>>>> This is different than where your user profile is stored. I understand
>>>> this, since I d

Re: NB 11.2 change default project path

2020-02-20 Thread Mark Eggers
I don't really understand why you described a disk crash, recovery, and
then said that the default project folder wasn't to your liking / wasn't
easy to change.

Instead, how about the following:

I would like to change the default location of where File->New Project
creates projects. I didn't find an easy or effective way to do this. Is
there one?

Can we have a start-up switch (somewhat like Eclipse) that allows us to
chose a base project location? Or maybe a GUI in Tools->Options that
allows us to set it easily? I will be happy to discuss my use case on
the mailing list. Thanks.

Is the above an accurate description of your issue? If it is, that
sounds like a simple (and possibly reasonable) request.

Personally, I don't mind browsing around to a different location during
project creation. Since I store different clusters of projects in
different parent directories, browsing around to open projects is part
of my normal work flow. YMMV

. . . just my two cents.
/mde/

On 2/19/2020 9:22 PM, cryptearth wrote:
> TBH I didn'T read all of your reply, but from the first few lines I did
> read: no, you got me wrong.
> My question is as simple as that: Is it possible, and if so: How?, to
> change the default project folder where new projects supposed to get
> created on disk? I didn't found any setting in whatever the GUI gives me
> (as someone else on this list a few ago said: "Netbeans is basically a
> graphical wrapper around maven.") and I didn't found any config file.
> The one mentioned on many search results on the net doesn'T seem to have
> an effect either, and the other user replied to my question seem to
> didn't got my question at all and pointed me to a file wich has nothing
> to do with per-user settings at all.
> Yes, Netbeans has many flaws - and obvious a lot of them exists since
> 15(!) years (I found a bug report wich evolved into a discusion from
> back late 2004 about this very topic). Is it really that much to ask
> just for a simple input dialog right at the first time start up where
> the user wants his default project location to be? And is it that hard
> to at least somewhat follow the style many graphical programms followed
> for the past three decades where you have a menu bar, starting with
> File, then Edit, then maybe some more, and end with Extras and Help -
> and to just put an "options" or "settings" into one of those - and offer
> the same settings dialog as mentioned before? How old is Netbeans? 15+
> years? And it's menus are that - sorry to say it this directly:
> immature? It's like an early not feature complete alpha where someone
> couldn't decide just where to put it.
> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> more. It's a simple if() just to check for the version of the compiler -
> and if it's 11 or above set the minimum target compiling level to at
> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> devs could get this done in the time this exists.
> All made fun about me cause I'm using just a simple editor with some
> basic syntax highlight and a terminal to compile. If I see what a mess
> and overhead all this fancy IDEs and build-tools costs - wich in fact
> they're supposed to do for the dev - not in addition to it - what's the
> benefit of wasting time to figure out how to get around simplest fails
> done in every beginners for dummies book?
> 
> I'm done with it - back to the old style - that at least did what I told
> to do ..
> 
> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>> First of all, I'm just a happy NetBeans user.
>>
>> Second of all, this is just my opinion.
>>
>> So let me try to understand your problem first.
>>
>> 1. You crashed what appears to be a Windows data and programs disk
>>
>> This is different than where your user profile is stored. I understand
>> this, since I do the same thing to minimize usage of a small OS SSD
>> drive.
>>
>> 2. You reinstalled NetBeans on a new disk
>>
>> 3. You recovered your NetBeans projects on a new disk
>>
>> The problem is that the 'Recent Projects' list links to the wrong
>> location. I'm guessing that this is the case since either drive letters
>> have changed or directories have changed.
>>
>> In addition, there may be a lot of issues with the cache.
>>
>> The best solution is to:
>>
>> 1. Ignore the 'Recent Projects' list until you've opened 10 or more
>> projects
>>
>> As Gj has pointed out, editing the projectui.properties file is not
>> something that should be done. I confess that I've done it, but it's not
>> trivial.
>>
>> Just don't do it.
>>
>> 2. Before starting NetBeans, delete t

Re: NB 11.2 change default project path

2020-02-20 Thread Mark Eggers
Maven does this as well, and there are configurations (as well as
command line options) to manage this.

I would not be happy with a tool that changed the pom.xml or it's
meaning. I like that I get a warning, and then I get to decide how to
address it.

For me, managing JDK versions by using Tools->Java Platforms works as
long as I'm in the IDE. For a more robust solution, Maven provides
documentation on how to manage multiple (and appropriate) JDK installations.

. . . just my two cents.
/mde/

On 2/20/2020 4:15 AM, Emilian Bold wrote:
>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
> more. It's a simple if() just to check for the version of the compiler -
> and if it's 11 or above set the minimum target compiling level to at
> least 6 and disable any lower versions. C'mon - don't tell me 100s of
> devs could get this done in the time this exists
> 
> You could open an issue about this too. Note that 1M devs does not imply
> 100s of volunteers working for free to fix every issue.
> 
> --emi
> 
> joi, 20 feb. 2020, 07:22 cryptearth  a scris:
> 
>> TBH I didn'T read all of your reply, but from the first few lines I did
>> read: no, you got me wrong.
>> My question is as simple as that: Is it possible, and if so: How?, to
>> change the default project folder where new projects supposed to get
>> created on disk? I didn't found any setting in whatever the GUI gives me
>> (as someone else on this list a few ago said: "Netbeans is basically a
>> graphical wrapper around maven.") and I didn't found any config file.
>> The one mentioned on many search results on the net doesn'T seem to have
>> an effect either, and the other user replied to my question seem to
>> didn't got my question at all and pointed me to a file wich has nothing
>> to do with per-user settings at all.
>> Yes, Netbeans has many flaws - and obvious a lot of them exists since
>> 15(!) years (I found a bug report wich evolved into a discusion from
>> back late 2004 about this very topic). Is it really that much to ask
>> just for a simple input dialog right at the first time start up where
>> the user wants his default project location to be? And is it that hard
>> to at least somewhat follow the style many graphical programms followed
>> for the past three decades where you have a menu bar, starting with
>> File, then Edit, then maybe some more, and end with Extras and Help -
>> and to just put an "options" or "settings" into one of those - and offer
>> the same settings dialog as mentioned before? How old is Netbeans? 15+
>> years? And it's menus are that - sorry to say it this directly:
>> immature? It's like an early not feature complete alpha where someone
>> couldn't decide just where to put it.
>> Back to modern days: Java 11 doesn't allow compiling for Java 5 any
>> more. It's a simple if() just to check for the version of the compiler -
>> and if it's 11 or above set the minimum target compiling level to at
>> least 6 and disable any lower versions. C'mon - don't tell me 100s of
>> devs could get this done in the time this exists.
>> All made fun about me cause I'm using just a simple editor with some
>> basic syntax highlight and a terminal to compile. If I see what a mess
>> and overhead all this fancy IDEs and build-tools costs - wich in fact
>> they're supposed to do for the dev - not in addition to it - what's the
>> benefit of wasting time to figure out how to get around simplest fails
>> done in every beginners for dummies book?
>>
>> I'm done with it - back to the old style - that at least did what I told
>> to do ..
>>
>> Am 20.02.2020 um 03:45 schrieb Mark Eggers:
>>> First of all, I'm just a happy NetBeans user.
>>>
>>> Second of all, this is just my opinion.
>>>
>>> So let me try to understand your problem first.
>>>
>>> 1. You crashed what appears to be a Windows data and programs disk
>>>
>>> This is different than where your user profile is stored. I understand
>>> this, since I do the same thing to minimize usage of a small OS SSD
>> drive.
>>>
>>> 2. You reinstalled NetBeans on a new disk
>>>
>>> 3. You recovered your NetBeans projects on a new disk
>>>
>>> The problem is that the 'Recent Projects' list links to the wrong
>>> location. I'm guessing that this is the case since either drive letters
>>> have changed or directories have changed.
>>>
>>> In addition, there may be a lot of issues with the cache.
>>>
>>> The best solution is to:
>>>
>>> 1. Ignore 

Re: NB 11.2 change default project path

2020-02-19 Thread Mark Eggers
First of all, I'm just a happy NetBeans user.

Second of all, this is just my opinion.

So let me try to understand your problem first.

1. You crashed what appears to be a Windows data and programs disk

This is different than where your user profile is stored. I understand
this, since I do the same thing to minimize usage of a small OS SSD drive.

2. You reinstalled NetBeans on a new disk

3. You recovered your NetBeans projects on a new disk

The problem is that the 'Recent Projects' list links to the wrong
location. I'm guessing that this is the case since either drive letters
have changed or directories have changed.

In addition, there may be a lot of issues with the cache.

The best solution is to:

1. Ignore the 'Recent Projects' list until you've opened 10 or more projects

As Gj has pointed out, editing the projectui.properties file is not
something that should be done. I confess that I've done it, but it's not
trivial.

Just don't do it.

2. Before starting NetBeans, delete the cache directory.

In short, both will be rebuilt properly by NetBeans as you use the IDE.

As to your setting a target below 6 with JDK 11: - you can't. This is a
JDK limitation.

If you want to compile (and be proper) a J2EE 2.5 project, with source
and target set to 1.5 (in Maven parlance), then you have one option that
I can see.

a. Install JDK / JRE 8 along with JDK / JRE 11.
b. In Tools->Java Platforms, register the JDK 8 platform
c. In the project Properties->Build->Compile panel, configure the
project to use  the registered JDK 8 Java Platform

I do this all the time, as I'm trying to get a company I consult for to
move from J2EE 2.5 / Tomcat 7 to servlet spec 4 and Tomcat 9.

I do this on Windows 10 Professional, with the last Oracle JRE / JDK 8
and AdoptOpenJDK 11.0.6 installed from the zip file.

The only time things get unpleasant is if I try to build a JDK 5 project
from the command line, since my default Java is 11.0.6.

. . . just my two cents
/mde/

On 2/19/2020 3:56 PM, cryptearth wrote:
> I know at least someone will feel offended no matter how polite I try to
> write my response, hence I try to just repeat the question instead of
> responding to the reply (I guess someone who read carefully might notice
> what I mean and try to avoid to say out loud):
> 
> Is there a way to (re-)set the default projects folder?
> And why is it that almost any answer you get when you ask google about
> this very topic points to file I mentioned?
> 
> Matt
> 
> Am 20.02.2020 um 00:23 schrieb Geertjan Wielenga:
>> Do not change that file, do not touch it.
>>
>> The file you need, if what you want is define the JDK to use to start
>> NetBeans, is "etc/netbeans.conf" in the installation directory.
>>
>> Gj
>>
>> On Thu, Feb 20, 2020 at 12:22 AM cryptearth > > wrote:
>>
>>     Well, I wrote my mail to soon before even try it myself - as I
>>     have to add: No matter what I put into the mentioned properties
>>     file it doesn't change the default path NB uses. I also tried to
>>     find it in other config files and even in the windows registry -
>>     but had no luck. So, as manual edit a config file referred to on
>>     many resulst found by google, and as there seem no option in the
>>     GUI I can change - how do I change the default folder?
>>
>>     Matt
>>
>>     Am 20.02.2020 um 00:18 schrieb Geertjan Wielenga:
>>>     Np, you never need to edit "projectui.properties".
>>>
>>>     Gj
>>>
>>>     On Wed, Feb 19, 2020 at 11:12 PM cryptearth
>>>     mailto:cryptea...@cryptearth.de>> wrote:
>>>
>>>     So, as I had to recover from a hard disk crash I had NB 11.2
>>>     set up
>>>     again but didn't got any dialog about default project folder.
>>>     As I got
>>>     through google this has to be done manual by editing the file
>>>     projectui.properties located in
>>>    
>>> userhome/appdata/roaming/netbeans/11.2/config/preferences/org/netbeans/modules.
>>>
>>>
>>>     I have found several topics as early as NB 6.x.
>>>
>>>     Two simple questions:
>>>     1) Why and why wasn't there any change since at least NB 6.x?
>>>     2) Is there any hidden way to change this via the GUI?
>>>
>>>     There're several other things the GUI doesn't handle as it
>>>     should, for
>>>     example allow setting target java version below 6 when a
>>>     compiler
>>>     version 11 or higher is used, as since v11 compiling is only
>>>     supported
>>>     down to v6 -> compile failure. Isn't an IDE supposed to give
>>>     a developer
>>>     some convenience? As far as I got into the overhead Netbeans
>>>     require I'm
>>>     not sure if it's the right IDE for me - but I couldn't get
>>>     Eclipse to
>>>     even launch properly, let alone set up a project.
>>>
>>>     Matt
>>>
>>>    
>>> -
>>>     To 

Re: Issues with Netbeans Project Recognising Tomcat Installation

2019-11-11 Thread Mark Eggers
On 11/11/2019 9:33 AM, Emilian Bold wrote:
>> Don't use the distribution's Tomcat. [...] The reason for doing all of this 
>> is quite simply, permissions.
> 
> This is an interesting remark. Couldn't this be fixed by NetBeans by
> simply copying the whole of Tomcat to an user temp folder?
> 
> --emi

There is an option in NetBeans to use a private configuration directory.
I just tried this, since I normally install my own copies of Tomcat.

You specify both the CATALINA_HOME directory (where your Tomcat is
installed), and the CATALINA_BASE directory (where your private
configuration lives).

It seems to copy MOST everything over, based on what RUNNING.txt requires.

Some things that are missing:

$CATALINA_BASE/bin directory with tomcat-juli.jar

$CATALINA_BASE/lib directory

The lib directory is not strictly required, but it would be nice to make
the lib directory since that's where things like the JDBC drivers live.

I don't know how this would work with a distribution's Tomcat. In
general, a distribution's Tomcat scatters components into non-standard
directories. I don't know if NetBeans would pick up where the
distribution places the files.

The original poster could try the following.

1. Create a new directory somewhere in home directory - maybe:

~/private-tomcat7
~/private-tomcat85
~/private-tomcat9

2. Add the Tomcat servers from the Services tab of NetBeans

Specify the appropriate installation directory for Catalina Home
Specify the appropriate target for Catalina Base (see directories above)

3. Once the subdirectories are created, go back into each CATALINA_BASE

3.a. create a bin directory
3.b. copy over the appropriate tomcat-juli.jar file from the distribution
3.c. possibly create and edit a setenv.sh file for extra configurations
3.d possibly create a lib directory to hold JDBC drivers, etc.

That should work. Again, your best chance of getting help with Tomcat
issues on the tomcat-users mailing list is to use an installation from
tomcat.apache.org.

Again, I also don't know if the NetBeans "use private configuration
folder" will work with distribution installations of Tomcat.

. . . just my two cents
/mde/

> 
> On Mon, Nov 11, 2019 at 7:24 PM Mark Eggers
>  wrote:
>>
>> On 11/11/2019 8:23 AM, Mark Phillips wrote:
>>> I am running Apache NetBeans IDE 11.2 with Java: 1.8.0_201 on Debian (Linux
>>> version 5.0.0-32-generic running on amd64). I have a tomcat 7.09 server
>>> installed and running. I can deploy war files from the tomcat manager app
>>> and I can see the tomcat log files in the Netbeans app. However, I cannot
>>> find a way to associate the tomcat server with my Netbeans project. Tomcat
>>> shows up in the list of servers, and I can start and stop it from Netbeans
>>> Services tab.
>>>
>>> The project says I am missing a server association, but when I click on
>>> Resolve Missing Server the resulting dialog does not have my tomcat 7
>>> server listed. I have tried removing my tomcat installation from Netbeans
>>> and adding it from the Resolve Missing Server dialog, but I still cannot
>>> deploy directly from Netbeans because, you guessed it, I have a Missing
>>> Server Problem! I have also restarted Netbeans to no avail.
>>>
>>> I have fiddled with permissions for the tomcat7 installation to the point
>>> of chmod 755 for the whole directory (this is my development laptop and I
>>> only run instances locally), and that has not helped. Tomcat is installed
>>> in /var/lib/tomcat7. The user and group is tomcat7. Tomcat 7 should work
>>> with JDK 1.8, as it is certified for Java 6 and above.
>>>
>>> I also have issues with installing two tomcat servers - still can't deploy
>>> not does the project recognize any of them. I installed tomcat 9 in
>>> /var/lib/tomcat9 with user and group tomcat9.
>>>
>>> What I dream of is two tomcat instances, one tomcat 7 and the other tomcat
>>> 9, and the ability to deploy from Netbeans to test my project with both
>>> servers. How can I do that, or is that not possible? How do I get at least
>>> one server running so I can deploy from Netbeans?
>>>
>>> Thanks!
>>>
>>> Mark
>>>
>>
>> I'm using NetBeans 11.1, but it should be the same for 11.2.
>>
>> Don't use the distribution's Tomcat. Instead, do the following:
>>
>> 1. Download the latest versions (I use 9, 8.5, and 7) from
>> tomcat.apache.org.
>>
>> 2. Create a top level directory for convenience in your home directory.
>> I use ~/Apache
>>
>> 3. Copy the .tar.gz files for the various Tomcats into that directory
>>
>> 4. Unpack the .tar.gz files

Re: Issues with Netbeans Project Recognising Tomcat Installation

2019-11-11 Thread Mark Eggers
On 11/11/2019 8:23 AM, Mark Phillips wrote:
> I am running Apache NetBeans IDE 11.2 with Java: 1.8.0_201 on Debian (Linux
> version 5.0.0-32-generic running on amd64). I have a tomcat 7.09 server
> installed and running. I can deploy war files from the tomcat manager app
> and I can see the tomcat log files in the Netbeans app. However, I cannot
> find a way to associate the tomcat server with my Netbeans project. Tomcat
> shows up in the list of servers, and I can start and stop it from Netbeans
> Services tab.
> 
> The project says I am missing a server association, but when I click on
> Resolve Missing Server the resulting dialog does not have my tomcat 7
> server listed. I have tried removing my tomcat installation from Netbeans
> and adding it from the Resolve Missing Server dialog, but I still cannot
> deploy directly from Netbeans because, you guessed it, I have a Missing
> Server Problem! I have also restarted Netbeans to no avail.
> 
> I have fiddled with permissions for the tomcat7 installation to the point
> of chmod 755 for the whole directory (this is my development laptop and I
> only run instances locally), and that has not helped. Tomcat is installed
> in /var/lib/tomcat7. The user and group is tomcat7. Tomcat 7 should work
> with JDK 1.8, as it is certified for Java 6 and above.
> 
> I also have issues with installing two tomcat servers - still can't deploy
> not does the project recognize any of them. I installed tomcat 9 in
> /var/lib/tomcat9 with user and group tomcat9.
> 
> What I dream of is two tomcat instances, one tomcat 7 and the other tomcat
> 9, and the ability to deploy from Netbeans to test my project with both
> servers. How can I do that, or is that not possible? How do I get at least
> one server running so I can deploy from Netbeans?
> 
> Thanks!
> 
> Mark
> 

I'm using NetBeans 11.1, but it should be the same for 11.2.

Don't use the distribution's Tomcat. Instead, do the following:

1. Download the latest versions (I use 9, 8.5, and 7) from
tomcat.apache.org.

2. Create a top level directory for convenience in your home directory.
I use ~/Apache

3. Copy the .tar.gz files for the various Tomcats into that directory

4. Unpack the .tar.gz files

You should now have directories apache-tomcat-7.0.x,
apache-tomcat-8.5.x, and apache-tomcat-9.0.x.

5. In each apache-tomcat-x.y.z directory, you should find a conf folder

6. In the conf folder, you will find tomcat-users.xml

7. Edit tomcat-users.xml per instructions found in the comments of that
file.

You will want a manager-script role / user so that NetBeans can control
the server.

8. When you add the server to NetBeans, use the same user name and
password created in step 7.

The reason for doing all of this is quite simply, permissions. NetBeans
deploys WAR files to Tomcat by copying a context.xml file to
$CATALINA_BASE/conf/Catalina/localhost/app.xml.

The contents of that app.xml file contain the actual location of the web
application (it's not copied over to the Tomcat distribution), as well
as the context path served by Tomcat.

If you don't have write permissions to
$CATALINA_BASE/conf/Catalina/localhost, then the deploy / undeploy will
not work.

I normally only run one Tomcat instance at a time on my development
systems. However, if you want to run more than one Tomcat instance,
you'll have to edit $CATALINA_BASE/conf/server.xml and change at least
the shutdown port and HTTP/1.1 ports to be unique across all Tomcat
instances.

This setup is quite nice, in that I have full access to the Tomcat
installation with my user account. I can add jars to $CATALINA_BASE/lib
(for example, JDBC jars), and add environment settings to
$CATALINA_BASE/bin/setenv.sh.

Finally, if you get stuck on a Tomcat-related issue, you're more likely
to get help on the Tomcat mailing list if you've installed the latest
version of Tomcat from tomcat.apache.org rather than use a distribution
version. It's not that distribution versions are necessarily bad, it's
just that each distribution does things differently. Apache Tomcat from
tomcat.apache.org is set up the same way regardless of OS (OK - .sh
versus .bat files not withstanding).

. . . just my two cents
/mde/




signature.asc
Description: OpenPGP digital signature


Re: SVN Client

2019-10-15 Thread Mark Eggers
As a follow-up, I found a copy of 1.9.7 in the archives and have
installed that. The log entries below indicate that it's being used.

INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: running
on javahl
INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with
8 entries. Elapsed time: 1 ms.

I'll answer the questions in your mail inline:
On 10/15/2019 8:43 AM, Laszlo Kishalmi wrote:
> Dear Mark,
> 
> Just a few question:
> 
> 1. Was the IDE automatically recognize the SilkSVN library on startup
> without any configuration once it was installed?
> 

Yes, however the path to the DLL is in my PATH environment variable.

> 2. What is the current name (probably path) to the native dll (right now
> the IDE tries to locate the libsvnjavahl-1.dll)
> 

Current path is:

D:\Programs-x64\SlikSvn\bin\libsvnjavahl-1.dll

Again, D:\Programs-x64\SlikSvn\bin is in my PATH environment variable.

> 3. Does the SilkSVN install set an environment variable called
> SUBVERSION_NATIVE_LIBRARY?

No, it does not.

> 
> 4. What dll-s are installed by SilkSvn

libsvnjavahl-1.dll
SlikSvn-DB44-20-x64.dll
SlikSvn-libapr-1.dll
SlikSvn-libaprutil-1.dll
SlikSvn-libeay32.dll
SlikSvn-libintl.dll
SlikSvn-libsasl21.dll
SlikSvn-libsvn_client-1.dll
SlikSvn-libsvn_delta-1.dll
SlikSvn-libsvn_diff-1.dll
SlikSvn-libsvn_fs-1.dll
SlikSvn-libsvn_ra-1.dll
SlikSvn-libsvn_repos-1.dll
SlikSvn-libsvn_subr-1.dll
SlikSvn-libsvn_wc-1.dll
SlikSvn-ssleay32.dll

I don't think that it installs any DLLs in a system directory, but I
didn't check.

. . . just my two cents
/mde/
> 
> 
> I'm asking these as we might need to update/improve the JavaHL detection
> on Windows. We did taht in linux adding the Ubuntu path to the search
> list and the user experience is much better. We could create a wiki how
> to configure the native libraries with screenshots and add a link to the
> subversion setting dialog as well.
> 
> Just a reference the native library detection happens in:
> 
> https://github.com/apache/netbeans/blob/master/ide/libs.svnClientAdapter.javahl/src/org/netbeans/libs/svnclientadapter/javahl/JavaHlClientAdapterFactory.java
> 
> 
> On 10/15/19 12:14 AM, Mark Eggers wrote:
>> I use the Slik SVN client with the advanced installation on Windows 10
>> Professional with NetBeans 11.1.
>>
>> This seems to work reasonably well, although I mostly work with git
>> these days.
>>
>> . . . just my two cents
>> /mde/
>>
>> On 10/14/2019 9:45 PM, László Kishalmi wrote:
>>> Well, NetBeans had support for 3 kind of Subversion clients. Native
>>> library, svnkit and command line. Unfortunately the svnkit had to be
>>> removed due to licensing reason. The command line is unreliable and
>>> unfortunately the native is a bit hard to configure especially on
>>> windows.
>>>
>>> AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode
>>> and
>>> select the installation of the native java binding. Then set up the
>>> path to
>>> that library in the ide. Options - Misc -Version control.
>>>
>>> If you succeed, that would be the fastest and most reliable solution.
>>>
>>> On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey
>>> 
>>> wrote:
>>>
>>>> I am testing NetBeans 11.1 for using in classroom and I recently
>>>> discovered that a Subversion client is not included in this version
>>>> and you
>>>> have to install it.
>>>>
>>>> This is an inconvenience that means an extra step and a possibility of
>>>> doing something wrong in the process.
>>>>
>>>>
>>>>
>>>> Is it possible to include it out-of-the-box as in previous versions
>>>> like
>>>> 8.2.?
>>>>
>>>> Being Subversion an Apache problem it should not be very difficult.
>>>>
>>>>
>>>>
>>>> Best regards,
>>>>
>>>> Eduardo Mosqueira
>>>>
>>>>
>>>>
>>>>
>>>>
>>
> 
> -
> 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
> 




signature.asc
Description: OpenPGP digital signature


Re: SVN Client

2019-10-15 Thread Mark Eggers
I have to apologize.

I just checked my logs, and it appears that NetBeans 11.1 is falling
back to a command line since I have Slik SVN 1.12 installed. According
to the logs:

INFO [org.netbeans.libs.svnclientadapter]: Javahl client adapter is not
available
Incompatible JavaHL library loaded.  Subversion 1.9.x required.

INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: JavaHL
not available. Falling back on SvnKit.

INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: SvnKit
not available. Falling back on commandline.

INFO [org.netbeans.modules.subversion]: Commandline client version:
1.11.1 (r1850623)

INFO [org.netbeans.modules.subversion.client.SvnClientFactory]: running
on commandline

I can try finding an archived version of Slik SVN and install that.

I need to update TortoiseSVN as well.

Both are on my path at present, so NetBeans finds everything. I don't
have any special SVN environment variables set.

If I find a 1.9.x version of Slik SVN, I'll install and report back to
the mailing list.

. . . just my two cents
/mde/

On 10/15/2019 8:43 AM, Laszlo Kishalmi wrote:
> Dear Mark,
> 
> Just a few question:
> 
> 1. Was the IDE automatically recognize the SilkSVN library on startup
> without any configuration once it was installed?
> 
> 2. What is the current name (probably path) to the native dll (right now
> the IDE tries to locate the libsvnjavahl-1.dll)


> 
> 3. Does the SilkSVN install set an environment variable called
> SUBVERSION_NATIVE_LIBRARY?
> 
> 4. What dll-s are installed by SilkSvn
> 
> 
> I'm asking these as we might need to update/improve the JavaHL detection
> on Windows. We did taht in linux adding the Ubuntu path to the search
> list and the user experience is much better. We could create a wiki how
> to configure the native libraries with screenshots and add a link to the
> subversion setting dialog as well.
> 
> Just a reference the native library detection happens in:
> 
> https://github.com/apache/netbeans/blob/master/ide/libs.svnClientAdapter.javahl/src/org/netbeans/libs/svnclientadapter/javahl/JavaHlClientAdapterFactory.java
> 
> 
> On 10/15/19 12:14 AM, Mark Eggers wrote:
>> I use the Slik SVN client with the advanced installation on Windows 10
>> Professional with NetBeans 11.1.
>>
>> This seems to work reasonably well, although I mostly work with git
>> these days.
>>
>> . . . just my two cents
>> /mde/
>>
>> On 10/14/2019 9:45 PM, László Kishalmi wrote:
>>> Well, NetBeans had support for 3 kind of Subversion clients. Native
>>> library, svnkit and command line. Unfortunately the svnkit had to be
>>> removed due to licensing reason. The command line is unreliable and
>>> unfortunately the native is a bit hard to configure especially on
>>> windows.
>>>
>>> AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode
>>> and
>>> select the installation of the native java binding. Then set up the
>>> path to
>>> that library in the ide. Options - Misc -Version control.
>>>
>>> If you succeed, that would be the fastest and most reliable solution.
>>>
>>> On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey
>>> 
>>> wrote:
>>>
>>>> I am testing NetBeans 11.1 for using in classroom and I recently
>>>> discovered that a Subversion client is not included in this version
>>>> and you
>>>> have to install it.
>>>>
>>>> This is an inconvenience that means an extra step and a possibility of
>>>> doing something wrong in the process.
>>>>
>>>>
>>>>
>>>> Is it possible to include it out-of-the-box as in previous versions
>>>> like
>>>> 8.2.?
>>>>
>>>> Being Subversion an Apache problem it should not be very difficult.
>>>>
>>>>
>>>>
>>>> Best regards,
>>>>
>>>> Eduardo Mosqueira
>>>>
>>>>
>>>>
>>>>
>>>>
>>
> 
> -
> 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
> 




signature.asc
Description: OpenPGP digital signature


Re: SVN Client

2019-10-15 Thread Mark Eggers
I use the Slik SVN client with the advanced installation on Windows 10
Professional with NetBeans 11.1.

This seems to work reasonably well, although I mostly work with git
these days.

. . . just my two cents
/mde/

On 10/14/2019 9:45 PM, László Kishalmi wrote:
> Well, NetBeans had support for 3 kind of Subversion clients. Native
> library, svnkit and command line. Unfortunately the svnkit had to be
> removed due to licensing reason. The command line is unreliable and
> unfortunately the native is a bit hard to configure especially on windows.
> 
> AFAIK the Silk SVN client 1.10 needs to be installed in advanced mode and
> select the installation of the native java binding. Then set up the path to
> that library in the ide. Options - Misc -Version control.
> 
> If you succeed, that would be the fastest and most reliable solution.
> 
> On Mon, Oct 14, 2019, 05:37 Eduardo Mosqueira Rey 
> wrote:
> 
>> I am testing NetBeans 11.1 for using in classroom and I recently
>> discovered that a Subversion client is not included in this version and you
>> have to install it.
>>
>> This is an inconvenience that means an extra step and a possibility of
>> doing something wrong in the process.
>>
>>
>>
>> Is it possible to include it out-of-the-box as in previous versions like
>> 8.2.?
>>
>> Being Subversion an Apache problem it should not be very difficult.
>>
>>
>>
>> Best regards,
>>
>> Eduardo Mosqueira
>>
>>
>>
>>
>>
> 




signature.asc
Description: OpenPGP digital signature


Re: A Bad Thing has happened to the promise of platform independence

2019-09-28 Thread Mark Eggers
Walter / Gj,

One of the problems with running multiple versions of Java on Windows is
the inclusion of the following on the path (as I wrote up earlier):

C:\Program Files (x86)\Common Files\Oracle\Java\javapath

This MUST be removed from the PATH environment variable otherwise you
will see errors like those reported in the log.

I just ran the OpenJFX sample from NetBeans 11.1 using Maven and OpenJDK
11.0.4. It ran as expected with no errors.

. . . . just my two cents
/mde/

On 9/28/2019 12:31 PM, Geertjan Wielenga wrote:
> Yup, it seems to me that the Java environment isn't set up right -- some
> JDK 8 of some kind appears to be set up system wide.
> 
> Running 'java -version' would probably confirm that.
> 
> Gj
> 
> On Sat, Sep 28, 2019 at 9:29 PM Neil C Smith  wrote:
> 
>>
>>
>> On Sat, 28 Sep 2019, 19:28 Walter Oney,  wrote:
>>
>>> Sure it does. You just didn't see the stackoverflow thread where I got
>>> help installing JNA, which I need as part of my app. I wandered down the
>>> rathole of newer JDK versions trying to solve the problem. I'm back to
>>> being a happy bunny now that I've reverted to JDK 8.
>>>
>>
>> Well, I don't think you linked to the thread! ;-) What I meant was that
>> JNA isn't relevant to getting a working OpenJFX sample on your system. I
>> get that it's a library dependency of your app.
>>
>> JavaFX was never, strictly, part of the JDK. But was sometimes shipped
>> with it. From JavaFX 8 to OpenJFX 11 is a shift, you need to treat it as a
>> library dependency like you're doing with JNA. Unfortunately sticking with
>> JDK 8 and JavaFX 8 is unlikely a good long term strategy.
>>
>>
>>> As I said I would, I'm attaching the log from trying to run
>>> HelloFXWithMaven. I would like to return to my regularly scheduled nap. I
>>> realize that I'm probably cutting myself off from getting any help in the
>>> future, but I'm massively sleep deprived and have no choice today.
>>
>>
>> No, you're not. Just come back to it when suits you. We're usually a
>> friendly bunch of volunteers here. :-)
>>
>> The thing that strikes me in that log is the error on --module-path.
>> Sounds like something in the build is still picking up Java 8 somewhere?
>>
>> Best wishes,
>>
>> Neil
>>
> 




signature.asc
Description: OpenPGP digital signature


Re: Netbeans 11 won't launch in Windows 10

2019-09-23 Thread Mark Eggers
I run NetBeans 8.2, NetBeans 11, and NetBeans 11.1 daily on a Windows 10
Professional desktop. I've never had any trouble installing or running
the platforms.

For this mix, here's how I do things.

1. Download OpenJDK 11.0.4 from adoptopenjdk.net

Download the appropriate zip file (64 bit version for me).

2. Unzip it in a reasonable place

I usually put 64 bit code in D:\Programs-x64. This way I don't have
spaces in directory names in case there are legacy issues with spaces on
Windows. I also don't want to clutter up a limited size SSD (I should
really get a larger one).

3. Edit some environment variables

3.a. Add JDK_HOME to point to the location where you unzipped the openjdk
3.b. Add JRE_HOME to point to the location where you unzipped the openjdk

Please note that the location of the server JRE has changed, and it is
now mixed in with the JDK. In short, both java, and javac are in the
same subdirectory (bin).

I set JRE_HOME since Apache Tomcat makes use of that environment
variable if set.

3.c. Edit the PATH environment variable
1. Add %JDK_HOME%\bin to the path
2. Remove any previous JREs from the PATH (for me, %JRE_HOME%\bin)

3. If you have JDK / JRE 8 installed (I do)

Remove C:\Program Files (x86)\Common Files\Oracle\Java\javapath (or
wherever it is) from the path.

4. To verify that everything is installed correctly, open up a
PowerShell Window and type:

4.a. java -version
(you should get the following)
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

4.b. javac -version
(you should get the following)
javac 11.0.4

4.c jshell
(you should get the following)
|  Welcome to JShell -- Version 11.0.4
|  For an introduction type: /help intro

jshell>

Ctrl-D should exit jshell.

5. Download the Apache NetBeans 11.1 zip file

6. Unzip it somewhere appropriate - I use D:\Programs\Apache

7. Launch the netbeans64.exe file from the directory

I usually tweak the netbeans.conf file for larger fonts, UTF-8, and some
other things. However, that's beyond the scope of these installation
notes. I also add the JDK 8 installation under Tools -> Java Platforms
since I still have projects that require JDK 8 (servlet specification
2.5, sigh).

I hope this gets you running.

. . . . just my two cents
/mde/

On 9/22/2019 5:08 PM, Carl Burke wrote:
> I did as you suggested and unzipped the ZIP file. I get the same error:
> 
> Error occurred during initialization of boot layer
> java.lang.module.FindException: Module jdk.jshell not found
> 
> I have never heard of jshell before, but when I'm in the netbeans\bin
> directory I can run it, so it's clearly present in the system.
> It just isn't found by netbeans64.exe.
> 
> 
> - Original Message -
> From: "Geertjan Wielenga" 
> To: "Carl Burke" 
> Cc: "users" 
> Sent: Sunday, September 22, 2019 3:00:15 PM
> Subject: Re: Netbeans 11 won't launch in Windows 10
> 
> Nothing needs to be moved or separated when you use the installer. I’d
> recommend you start from scratch with 11.1, if you’re having problems with
> the installer, unzip the ZIP file instead.
> 
> Gj
> 
> On Sun, 22 Sep 2019 at 20:14, Carl Burke  wrote:
> 
>> I've got a brand new laptop, just installed AdoptOpenJDK 11 and Netbeans
>> 11.1, and Netbeans will not launch in Windows 10 (1809). I have run
>> previous versions of Netbeans on other Windows 10 systems, including with
>> AdoptOpenJDK, but those were with Java 8 and earlier releases of both
>> Netbeans and Windows 10.
>>
>> There were some issues getting the installer to run: since AdoptOpenJDK
>> does not bundle a JRE under the JDK, the JRE had to be moved and renamed
>> from it's separate installation so that the installer would find both the
>> JRE and the JDK. However, after that was done the installer appeared to
>> work fine.
>>
>> When I try to launch Netbeans 11 by clicking the desktop icon, nothing
>> visible happens. When I open a command shell and run .\netbeans64.exe from
>> the Netbeans bin directory, I get:
>> <<
>> Error occurred during initialization of boot layer
>> java.lang.module.FindException: Module jdk.jshell not found

>> This happens whether I add --jdkhome "C:\Program
>> Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot" to the command or not;
>> netbeans.conf has the uncommented correct value.
>>
>> Typing jshell in that directory opens JShell 11.0.4, for whatever that's
>> worth.
>>
>> There is no {user}\AppData\Roaming\Netbeans directory, so no log output to
>> be had, possibly because the IDE never gets that far.
>>
>> Any suggestions how I might run Netbeans in this version of Windows 10? Do
>> I need to fall back to Java 8 and an earlier Netbeans as well?
>>
>> --
>> Carl Burke
>> cdbu...@his.com
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>

Re: Printing from IDE 11.0

2019-09-07 Thread Mark Eggers
Printing works for me for both 11.0 and 11.1 64 bit. I see the previews
in the Print Preview window.

Windows 10 Professional 64 bit
AdoptOpenJDK 11.0.4+11 64 bit

I have a physical (network - attached) default printer set up. Do you?

. . . just my two cents
/mde/

On 9/7/2019 2:18 PM, philip.burn...@sky.com wrote:
>  It creates a html file in the chosen directory with the code in it.
> Interestingly, I've just noticed, if I select a file in the navigator window, 
> then go File->Print, in opens a dialog box to select a printer and let's me 
> print the code. The format of the print isn't particularly good (font's very 
> large for instance). But if I open the file and then go to File->Print, it 
> just opens the print preview dialog box and everything is grey...
> Phil
> On Saturday, 7 September 2019, 22:08:28 BST, Geertjan Wielenga 
>  wrote:  
>  
>  I don't see that in 11.1, but I'm on Mac OSX, maybe someone can try to 
> reproduce on Windows 10.
> What happens when you choose File | Print to HTML instead?
> Gj
> On Sat, Sep 7, 2019 at 11:05 PM philip.burn...@sky.com 
>  wrote:
> 
>  Open a project, select a file to edit.Once the file is open select 'File' 
> from the main menu, then Print from the drop down menu.The print dialog box 
> opens, but all sections are greyed out (except the print options and page 
> setup).
> Phil
> On Saturday, 7 September 2019, 22:00:58 BST, Geertjan Wielenga 
>  wrote:  
>  
>  Now describe step by step what must be done to see the problem you describe. 
> Gj
> On Sat, Sep 7, 2019 at 10:59 PM philip.burn...@sky.com 
>  wrote:
> 
>  Hi Geertjan,Please see below:
>   
>  Product Version: Apache NetBeans IDE 11.1 
>  
>  Java: 12.0.2; Java HotSpot(TM) 64-Bit Server VM 12.0.2+10 
>  
>  Runtime: Java(TM) SE Runtime Environment 12.0.2+10 
>  
>  System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb) 
>  
>  User directory: C:\Users\Philip\AppData\Roaming\NetBeans\11.1 
>  
>  Cache directory: C:\Users\Philip\AppData\Local\NetBeans\Cache\11.1 
>   
> Phil
> 
> On Saturday, 7 September 2019, 21:57:03 BST, Geertjan Wielenga 
>  wrote:  
>  
>  Go to the About box, copy the content you see there, paste it here, and send 
> it.
> Thanks,
> Gj
> On Sat, Sep 7, 2019 at 10:55 PM philip.burn...@sky.com 
>  wrote:
> 
>  Hi emi,I've also upgraded to Oracle JDK 12, but still the problem exists. :(
> Phil
> On Saturday, 7 September 2019, 21:38:05 BST, Emilian Bold 
>  wrote:  
>  
>  I suspect it's JDK/JRE-related. CoolBeans seems to print just fine on
> macOS using the default OpenJDK 64-Bit Server VM 11.0.3+7.
> 
> --emi
> 
> On Sat, Sep 7, 2019 at 11:28 PM philip.burn...@sky.com
>  wrote:
>>
>> Hi Geertjan,
>> I've upgraded to netbeans 11.1 and still have the same problem.
>>
>> Best Regards
>> Phil
>>
>> On Saturday, 7 September 2019, 16:58:42 BST, Geertjan Wielenga 
>>  wrote:
>>
>>
>> Can you reproduce the problem in 11.1?
>>
>> Gj
>>
>> On Sat, Sep 7, 2019 at 4:24 PM philip.burn...@sky.com 
>>  wrote:
>>
>> Hi All,
>> Printing to a physical printer seems to have stopped working at some point. 
>> Using File->Print opens the dialog box with a blanked out print preview and 
>> no access to the top buttons. The Page setup and print options work but 
>> that's all.
>>
>> Any idea what may have caused this and how I can rectify it?
>>
>> Thanks
>> Phil
> 
> -
> 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
> 
>   
>   
>   
>   
> 




signature.asc
Description: OpenPGP digital signature


Re: Please help to debug jsp sources using netbeans 8.2

2019-07-16 Thread Mark Eggers
What happens when you just try Ctrl-F5 (Debug project)?

I just did this for a simple JSP page.

Environment:

Windows 10 Professional
JDK 1.8.0_202
NetBeans 8.2
Tomcat 7.0.94


Windows 10 Professional
OpenJDK 11.0.3
NetBeans 11
Tomcat 7.0.94

In both instances, I hit the break point and was able to inspect the
values present in the JSP page. I didn't try to do much else.

Please note that Apache Tomcat 8.0.x is no longer supported and has been
superseded by 8.5.x. You will probably have to check
http://tomcat.apache.org/migration-85.html to see what the impact is.

If you're poking around with VisualVM, Java Mission Control, etc. you
might have to create a startup.bat(sh) to set some CATALINA_OPTS values.
See https://tomcat.apache.org/tomcat-8.5-doc/monitoring.html for how to
set it up. This shouldn't be necessary if you're just debugging locally
though.

. . . just my two cents.
/mde/
On 7/16/2019 3:25 PM, Geertjan Wielenga wrote:
> Thanks and welcome to the mailing list. :-)
> 
> Can you upgrade to Apache NetBeans (netbeans.apache.org) and also provide
> the JSP that is failing to be debugged (or a simpler version of it that
> reproduces the problem)?
> 
> Thanks,
> 
> Gj
> 
> On Wed, Jul 17, 2019 at 12:23 AM Jose Luis Nebril <
> joseluis.neb...@sunrisehs.com> wrote:
> 
>> Hello
>>
>>
>>
>> I am try to debug jsp files from netbeans 8.2 using tomcat 8.0.27.0
>>
>> I have configure Share Memory name "tomcat_shared_memory_id" and VM param
>> "-Xdebug" but when I put a breakpoint on jsp source the server not stop.
>> Only works to .java files
>>
>>
>>
>> Could  anybody help me?
>>
>>
>>
>> JL
>>
>>
>>
>> [image: firmaJose]
>>
>>
>>
>> La información contenida en este mensaje y/o archivos adjuntos enviada
>> desde Sunrise Aplicaciones y Servicios SL es confidencial/privilegiada y
>> está destinada a ser leida sólo por las personas a las que va dirigida. Le
>> recordamos que sus datos han sido incorporados en el sistema de tratamiento
>> de información de Sunrise Aplicaciones y Servicios SL, que siempre  y
>> cuando se cumplan los requisitos exigidos por la normativa, usted podrá
>> ejercer sus derechso de acceso, rectificacion, limitación de  tratamiento,
>> supresión, portabilidad y oposición y revocación, en los términos que
>> establece la normativa vigente en materia de protección de datos.
>> Dirigiendo su petición a calle Chile 4 oficina 40 en Las Rozas/Madrid o
>> bien a través de nuestro correo electrónico finan...@sunrisehs.com
>>
>>
>>
>> Si usted lee este mensaje y no es el destinatario señalado, el empleado o
>> el agente responsable de entregar el mensaje al destinatario, o bien ha
>> recibido esta comunicación por error, le informamos que está totalmente
>> prohibida, y puede ser ilegal, cualquier divulgación, distribución o
>> reproducción de esta comunicación, y le rogamos que nos lo notifique
>> inmediatamente y nos devuelva el mensaje original a la dirección
>> anteriormente mencionada. Gracias
>>
>>
>>
> 




signature.asc
Description: OpenPGP digital signature


Re: Json validation

2019-04-22 Thread Mark Eggers
On 4/16/2019 10:23 AM, Greenberg, Gary wrote:
> I sure do have one. Here it is.
> 
> Gary Greenberg
> Staff Software Engineer
> Data Product Development, BI-A
> E: ggree...@visa.com
> M: 650-269-7902
> 
> [EmailSig-TaglineVersion]
> 
> From: Wade Chandler 
> Sent: Monday, April 15, 2019 6:23 PM
> To: Greenberg, Gary 
> Cc: users@netbeans.apache.org
> Subject: Re: Json validation
> 
> Pretty sure .json files themselves are validated like other file types; 
> editor lot has it built in. Do you have a reproducible file you can share?
> 
> Wade
> 
> 
> On Mon, Apr 15, 2019, 18:06 Greenberg, Gary 
> mailto:ggree...@visa.com>> wrote:
> I know that Netbeans has a feature to validate XML files and I used it 
> extensively when XML was main method to define requests and responses in REST 
> API.
> Nowadays JSON almost completely replaced XML in that role.
> Is there a plugin or something to validate JSON or help to check it for 
> errors?
> I do have pretty big JSON file which somewhere contain an error, but cannot 
> find it easily.
> Netbeans marks the opening brace with an error flag, which tells me Token 
> recognition at “
> Going through it for ½ hour and can’t spot any errors.
> Gary Greenberg
> Staff Software Engineer
> Data Product Development, BI-A
> E: ggree...@visa.com
> M: 650-269-7902
> 
> [EmailSig-TaglineVersion]

It looks like a BOM for UTF-8.

Are you downloading this on a Windows machine, and is the file generated
on a non-Windows machine?

I have added -J-Dfile.encoding=UTF-8 to almost the end of my
netbeans_default_options in netbeans.conf. The end option is for bigger
fonts.

The error shows up as an unrecognizable (at least to me) character at
the beginning of the file. Delete that character and the file validates.

. . . just my two cents
/mde/



signature.asc
Description: OpenPGP digital signature


Re: NB 10 Copy / paste error from Output window

2019-04-03 Thread Mark Eggers
On 4/3/2019 7:05 AM, Lister Jonathan wrote:
> Hi,
> I am running NB 10 on Windows 10 with a 4k monitor (3840 x 2160).
> I configure a larger font via netbeans.conf:
> 
> netbeans_default_options=" ...
> --fontsize 16"
> 
> 
> Whenever I copy / paste text from the output log I get extra characters from 
> before the start of the selected text and am missing characters from the end 
> of the selected text. For example (see the screen shot in the file 
> "Output.png") I would expect the pasted text in this case to be "Final 
> method" but it is actually ": Final met".
> 
> This problem does not occur with NB 8 on the same system setup.

Hi,

I'm running NetBeans 10 with JDK 11.0.2 on Windows 10 professional with
a 27" monitor. My resolution is 2560 x 1440 and I'm running at 125% for
text size in the display settings.

I have the following font size set in netbeans.conf as the last entry in
the netbeans_default_options:

--fontsize 12

I'm using monospace 12 pt font in the console settings.

I am using the Windows look and feel, and I have not modified the
execution to use the application's DPI settings.

So my environment is a little less high definition than yours. I don't
have any trouble copying from the output window to a text editor (tried
notepad, jEdit, and notepad++).

I've mostly seen weird offsets like that when I needed to adjust the DPI
under the Compatibility settings (right mouse -> Properties ->
Compatibility tab). This went away for NetBeans 10 once I started using
JDK 11.

Hope there's some useful information in all of that.

. . . just my two cents
/mde/



signature.asc
Description: OpenPGP digital signature