when i tried to compile a simple java program with a package name it shows me NoClassDefFoundError when I remove this, my program executes good.I don't want to use an IDE, so how to solve this
package com.example.satya;
public class Overloading{
int telugu,english,hindi,maths,science,social,languages,non_languages;
public int total(int sub1, int sub2, int sub3){
int total = sub1+sub2+sub3;
return total;
}
public int total(int languages, int non_languages){
int total = languages+non_languages;
return total;
}
public static void main(String[] args) {
Overloading testOverloading = new Overloading();
int languages = testOverloading.total(25,30,35);
int non_languages = testOverloading.total(45,50,28);
testOverloading.total(languages,non_languages);
System.out.println(languages+non_languages);
}
}