Student getting a Nix Error

Question:
I have a student working on an assignment and is getting a nix error and I do not know how to help him fix this.
Any help would be appreciated!

Repl link:
Main.java - UserName - Scanner for Input-rinkashime - Replit

import java.util.Scanner;
public class Main
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        System.out.print ("Enter your name: ");
        String  name  =  scan.nextLine();
        //System.out.print("Enter your name: " + name);
        System.out.print("Hello " + name + ", it is nice to meet you!");
    }
}

Welcome to Ask! The link you have provided is a 404. Could you please provide the output your program is getting?

1 Like

Your replit.nix file seems to have been messed up, could you share the contents of it?

Actually, looking more closely at the error, it seems to be because the ws package was included in your replit.nix. Try finding and removing pkgs.ws from your replit.nix file.

3 Likes

Thank you! That fixed it :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.