Unable to create working JAR
Hi
So I'm pretty new to java, working with Bluej.
I'm trying to create a program that does certain calculations to the amount of tips at a restaurant.
It's very simple:
import java.util.*;
public class TIPIM
{
static Scanner reader = new Scanner(System.in);
public static void main(String[]args)
{
double Hours = 0;
System.out.println("הכנס טיפ");
double Alltip = reader.nextInt();
double Hafrasha = Alltip*0.05;
System.out.println("הכנס מספר עובדים במשמרת");
int Ovdim = reader.nextInt();
System.out.println("הכנס כמות שעות של" + Ovdim + "עובדים");
while (Ovdim!=0)
{
Hours = Hours+reader.nextDouble();
Ovdim--;
}
System.out.println("כמה נותנים לאנג'לה?");
int Answer = reader.nextInt();
System.out.println("שעות בסך הכל: " + Hours);
System.out.println(" משכורת לשעה:" + ((Alltip-Hafrasha)/Hours));
System.out.println(": לאנג'לה" + (Hours*Answer));
System.out.println("טיפ לשעה: " + ((((Alltip-Hafrasha)/Hours))-Answer));
}
}
Ignore the hebrew...
Anyway, I click "create jar", specify the class, it creates one on the desktop.
Then, when I double click it, nothing happens. I need this to work as a standalone...
It has the main method and I've went through a bunch of tutorials, and have no idea what's wrong.
Any thoughts?
Thanks a lot.
Re: Unable to create working JAR
Re: Unable to create working JAR
Re: Unable to create working JAR
Quote:
Originally Posted by
DarrylBurke
Thanks a-lot.
I'll look more carefully next time.