Ask coding questions

← Back to all posts
compiler exit status 1
ZhiCai (6)

i don't know what it means. how do i fix it

Comments
hotnewtop
SixBeeps (5037)

Rename the class from tax to Main for your program to run.

Bookie0 (5939)

Hi,

compiler exit status 1 means that there is an error.
I dont know Javascript, but the error messsage says this:

Main.java:3: error: class TaxCalculator is public, should be declared in a file named TaxCalculator.java
public class TaxCalculator {
       ^
1 error
compiler exit status 1

and if you look at the message it says that the class TaxCalculator is public, and should be declared in a file called TaxCalculator.java, so maybe try that ;)