Forums Register Login

exceptions -Netbeans build failed

+Pie Number of slices to send: Send
There is an exception
Error.
Exception in thread "main" java.lang.IllegalArgumentException: Your number is false
at erg5.Erg5.main(Erg5.java:128)
C:\Users\ekte\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 15 seconds)

I did the exception but is wrong ? it shouldnt say build failed?
+Pie Number of slices to send: Send
at erg5.Erg5.main(Erg5.java:128)

This tells you that the program Erg5 got an error at line 128 in the method main. Can you tell why you got an IllegalArgumentException there? If not, post the code of Erg5.java.
+Pie Number of slices to send: Send
 

Knute Snortum wrote:at erg5.Erg5.main(Erg5.java:128)

This tells you that the program Erg5 got an error at line 128 in the method main. Can you tell why you got an IllegalArgumentException there? If not, post the code of Erg5.java.

i dont put the whole code here
+Pie Number of slices to send: Send
I don't know if it's a typo, but you have int mer = 90; and then you test against the variable meR. Java is case sensitive so those are two different variables.

I'd also put some information in the thrown error:
+Pie Number of slices to send: Send
 

Knute Snortum wrote:I don't know if it's a typo, but you have int mer = 90; and then you test against the variable meR. Java is case sensitive so those are two different variables.

I'd also put some information in the thrown error:

i thought maybe needs try -catch but it doesnt right?
1
+Pie Number of slices to send: Send
 

i thought maybe needs try -catch but it doesnt right?


Not to throw an error, no.
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 640 times.
Similar Threads
Nerbeans 8.1 - Exception in thread "main" java.lang.UnsatisfiedLinkError:
input
Could not find or load main class java Run time error
Getting a running error while running some code to import X3D into Java
failed to create task or type translate-classpath
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:47:27.