You have nothing in the main ... Obviously nothing will be shown in the console. Your code should go in the main method or you should call some other method that contains your code.
Another tip is that you do not use as many if and use the switch statement, also I see that you do not start your variables and try to divide by zero, things that are going to give you more problems.
I leave this example that works, you must change the 0 for another value, I for example I put 10.
public class example {
public static void main(String[] args) {
long documento = 12345678;
String nombre = "Lucas";
double valorHora = 5.00;
int horasTrabajo = 8;
long salarioTotal = 2000;
if (valorHora >= 80) {
System.out.println("salarioTotal" + 100000);
}
if (salarioTotal <= 1500000) {
// NO PUEDES DIVIDIR POR CERO !
System.out.println("Deduccion salud" + (salarioTotal * 100) / 5 + "rte fuente" + (salarioTotal * 100) / 10);
} else {
if (salarioTotal >= 1500001 && salarioTotal <= 3000000) {
System.out.println(
"deduccion salud" + (salarioTotal * 100) / 8 + "rte fuente" + (salarioTotal * 100) / 3);
} else {
if (salarioTotal <= 3000000) {
System.out.println(
"deduccion salud" + (salarioTotal * 100) / 12 + "rte fuente" + (salarioTotal * 100) / 5);
}
}
}
}
}
This way, by console, I printed Deduction health40000rte source20000