Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problem with compiling and running a small program(eclipse, java6)
Problem with compiling and running a small program [message #1256400] Tue, 25 February 2014 06:40 Go to next message
Eclipse UserFriend

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?
Re: Problem with compiling and running a small program [message #1256568 is a reply to message #1256400] Tue, 25 February 2014 10:15 Go to previous messageGo to next message
Eclipse UserFriend
thanks for the help i gues....
Re: Problem with compiling and running a small program [message #1257338 is a reply to message #1256568] Wed, 26 February 2014 05:06 Go to previous message
Eclipse UserFriend
problem solved without you peoples "help"
Previous Topic:Run Java code in Android device
Next Topic:Getting Java 8 support in Eclipse Luna
Goto Forum:
  


Current Time: Fri Nov 14 01:11:20 EST 2025

Powered by FUDForum. Page generated in 0.06148 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top