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

<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

2. Add the following in the properties section

<maven.compiler.release>11</maven.compiler.release>

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

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.12.1</version>
                <configuration>
                    <release>${maven.compiler.release}</release>
                </configuration>
            </plugin>
        </plugins>
    </build>

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 <err...@raelity.com> 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 <err...@raelity.com> <mailto:err...@raelity.com> 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 <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 <v...@ricker.us> <mailto:v...@ricker.us> 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 <http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>


Email Validation in Java | Baeldung <https://www.baeldung.com/java-email-validation-regex>


        


        


    Email Validation in Java | Baeldung

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

<https://www.baeldung.com/java-email-validation-regex>





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}))?" <mailto:[_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  
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail:users-h...@netbeans.apache.org  
<mailto:users-h...@netbeans.apache.org>

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

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

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




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

Reply via email to