| Problem with compiling and running a small program [message #1256400] |
Tue, 25 February 2014 06:40  |
Eclipse User |
|
|
|
public class ArithmeticProg {
public static void main(String[] args) {
int i = 10;
int j = 20;
double x = 10.5;
double y = 20.5;
System.out.print("Adding");
System.out.print(" i + j = " + (i +j));
System.out.print(" x + y = " + (x + y ));
System.out.print("Subtracting");
System.out.print(" i - j = " + (i - j));
System.out.print(" x - y = " + (x - y));
System.out.print("Multiplying");
System.out.print(" i * j = " + (i * j));
System.out.print(" x * y = " + (x * y));
System.out.print("Dividing");
System.out.print(" i / j = " + (i / j));
System.out.print(" x / y = " + (x / y));
System.out.print("Modulus");
System.out.print(" i % j = " + (i % j));
System.out.print(" x % y = " + (x % y));
}
}
so this is the small training program i wrote/copied of some guide. i already tried the usual helloworld program with cmd and notepad++ which worked fine.
i wanted to switch to eclipse now because it looks much easier and more smoothly to use.
but when i try to run this programm or even debug is i get this message =
<terminated> New Configuration(1) [java application] and then the path to my java directory.
what could cause this?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06148 seconds