0

In the configurations I have edited the workspace to a data folder where i have json and csv files that are going to be used in my program. My end goal is to have the user be able to type in the terminal:

java Main.java booking.json

assuming they are in the same folder as Main.java and have booking.json be stored as args[0]. However, the terminal is giving me

Error: Could not find or load main class Main

What can I do to fix this? I can try to run the command from somewhere else but will the configuration affect the terminal command and where the arguments are looked for?

mcgillian
  • 97
  • 7

0 Answers0