1
package BasicPrograms;

import java.util.Scanner;

public class OddEvenNumber {

    public static void main(String[] args) {
        // TODO Auto-generated method stub

        int no;
        Scanner s = new Scanner(System.in);
        System.out.println("Enter a number :");
        no = s.nextInt();
        
        if(no%2==0)
        {System.out.println("Even Number");}
        else
        {System.out.println("Odd Number");}
    }

}

This is the error message:

Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module descriptor for C:\Users\ARVIND\Downloads\poi-bin-5.1.0-20211024\poi-bin-5.1.0\auxiliary\batik-script-1.14.jar Caused by: java.lang.module.InvalidModuleDescriptorException: Provider class org.apache.batik.bridge.RhinoInterpreterFactory not in module

5
  • Maybe have a look at this: issues.apache.org/jira/browse/BATIK-1260 Commented Dec 1, 2021 at 11:06
  • Its a bug? Then what else can be done. Commented Dec 1, 2021 at 11:11
  • Create a new project, and look out for any module-settings you use. Then copy everything you have over from the old to the new. Commented Dec 1, 2021 at 11:12
  • Looks like you have a module-info.java in the project making it modular. Deleting the module-info.java will revert to the non-modular style. Commented Dec 1, 2021 at 11:40
  • I have already deleted module-info.java file from the project. But still the problem exists. Commented Dec 2, 2021 at 5:36

1 Answer 1

0

Path giving you the exception, please provide the valid path, or convert your project to maven

C:\Users\ARVIND\Downloads\

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.