Skip to content
← Back to Community
compiler exit status 1
Profile icon
ZhiCai

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

Voters
Profile icon
chaitanya8055
Profile icon
ninjatechno245
Profile icon
asuoskah
Profile icon
micowill
Profile icon
YwjpheejYang
Profile icon
DianaMadrevica
Profile icon
RyuHigashi
Profile icon
adiletaubakir
Profile icon
ZhiCai
Comments
hotnewtop
Profile icon
Coder100

works for me

Profile icon
SixBeeps

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

Profile icon
Bookie0

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 ;)

Profile icon
EpicGamer007

@Bookie0 , this aint js lmao