Encountering an issue when running the Odd Even Number Finder algorithm

package BasicPrograms;

import java.util.Scanner;

public class OddEvenNumber {

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

        int num;
        Scanner input = new Scanner(System.in);
        System.out.println("Please enter a number :");
        num = input.nextInt();
        
        if(num % 2 == 0)
        {System.out.println("The number entered is Even");}
        else
        {System.out.println("The number entered is Odd");}
    }

}

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

Answer №1

The error is being caused by the file path. To fix this issue, either update the path to a valid location or switch your project to Maven.

C:\Users\JohnDoe\Documents\

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Collaborate and apply coding principles across both Android and web platforms

Currently, I am developing a web version for my Android app. Within the app, there are numerous utility files such as a class that formats strings in a specific manner. I am wondering if there is a way to write this functionality once and use it on both ...

Spring Boot fails to recognize path variable data sent from Angular

When working with Angular 7, I encountered a situation where I needed to pass a value from the service class of Angular. Here is how I achieved it: executeHelloWorldBeanServiceWithPathVariable(name){ console.log("name coming from here"+name); retu ...

What is the process for generating an alert box with protractor?

While conducting tests, I am attempting to trigger an alert pop-up box when transitioning my environment from testing to production while running scripts in Protractor. Can someone assist me with this? ...

Is it possible to interchange the positions of two components in a routing system?

driver-details.component.ts @Component({ selector: 'app-driver-details', templateUrl: './driver-details.component.html', styleUrls: ['./driver-details.component.css'] }) export class DriverDetailsComponent implements OnI ...

Developing J2EE servlets with Angular for HTTP POST requests

I've exhausted my search on Google and tried numerous PHP workarounds to no avail. My issue lies in attempting to send POST parameters to a j2ee servlet, as the parameters are not being received at the servlet. Strangely though, I can successfully rec ...