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

2024-03-14 Thread Ernie Rael

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.







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] = 

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

2024-03-14 Thread Zulfi Khan
 Dear Ernie-Good Morning,
Maven is working fine.
I have attached my swapping project. It is working with no errors.
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.
  |

  |

  |

  
  
  
  
  
 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