Ask coding questions

← Back to all posts
I keep getting a exit status 2 error can anyone help
Wavykennyy (0)

I keep getting a exit status 2 error can anyone help

Answered by btfuss (177) [earned 5 cycles]
View Answer
Comments
hotnewtop
btfuss (177)

Rename your Stars File to main.java

btfuss (177)

@Wavykennyy Yeah, I sometimes mess up like that too don't worry lol. If you make a bash repl, you could name the java file to whatever you want, see:

  1. Make a file with your java code and name it whatever.java but just kept the java
  2. In the main.sh file run: javac whatever.java
  3. To run it remove that line and type: java whatever
    Replace whatever with the file name you are using