why is not working? Math.pow in Java
<p>my professor told us to make a java program to do exponents. so i try to write this code:</p>

<pre><code>System.Out.PrintLn("Enter a number/integer to do raise to a power: ");
Scanner MyScanner = new Scanner(System.In);
int Integer = MyScanner.NextInt();

System.Out.PrintLn("Enter an exponential power: ");
Scanner MyScanner1 = new Scanner(System.In);
int Power = MyScanner1.NextInt();

int Answer=Math.pow(Integer, Power);

System.Out.PrintLn(Integer + "^" + Power + "=" + Answer);
</code></pre>

<p>But it gives me an error :(</p>

<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError
</code></pre>

<p>But where is my code wrong?? I think the structure is all correct.</p>

<p><strong>Edit:</strong></p>

<p>I am using Eclipse ide.</p>
