hello everyone hope all ok
i'm facing a problem in Netbeans in that when compiling no error exist but when running nothing happen or displayed, can anyone help me in it plz
is it a console app? are you making a frame? what does your main method look like? We need more information than "its not working"
my code is too large to post it here what do u think i shall do?
Add some System.out.println calls in your methods and print some debug messages. Add some in your main method. You may also want to print any exceptions that you get.
i've tried this too but the same problem
i'm trying now to reinstall Netbeanse again & i hope it'll work
If you have a large application you shouldn't wait until its finished in order to run it.
You should be testing it many times during the development. With every change you make, run it. So if for some reason the application stops running it means that your previous change was the problem and you can undo it.
Before you reinstall try to comment all your code and then start adding bit by bit and run it in order to find the error.
Can you run a hello world app in netbeans? Have you run this application in anything other than netbeans?
I find it very hard to belive that you have made a program right untill the end without ever running it! As javaAddict said, what do you expect?
If you have run it, and know you code is right, then fair enough. Though you are still giving very little information - is there any output to console? Can you run other things? Have you run it before? If you coment out everything int he main method exept a println does that line print? You have told us you have a problem, and that the code is too big...
when i run everythin either small program or not it gave me:
C:\Users\dell\.netbeans\6.9\var\cache\executor-snippets\run.xml:52: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_22\bin\java.exe" (in directory "C:\Hanaa \uni\third year\M257\tama\q2\q2"): CreateProcess error=267, þþÇÓã ÇáÏáíá ÛíÑ ÕÍíÍ
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_22\bin\java.exe" (in directory "C:\Hanaa \uni\third year\M257\tama\q2\q2"): CreateProcess error=267, þþÇÓã ÇáÏáíá ÛíÑ ÕÍíÍ
... 19 more
Caused by: java.io.IOException: CreateProcess error=267, þþÇÓã ÇáÏáíá ÛíÑ ÕÍíÍ
at java.lang.ProcessImpl.create(Native Method)
... 24 more
Java Result: -1
BUILD SUCCESSFUL (total time: 0 seconds)
Try running netbeans as administrator (right click and click "run as administrator")
also, looking at this
suggests error=267 means your destination path doesnt exist, so check everythihng is right in "C:\Program Files\Java\jdk1.6.0_22\bin\java.exe" (in directory "C:\Hanaa \uni\third year\M257\tama\q2\q2"):
ok i'll check them and see wht's wrong
i think the problem is with downloading eithe the JDK or Netbeans becuse when i tried the already build project same problem exist, als the file NetbeansProject that must be in my documents doesn't exist. now i'm trying to download them again hope it'll fixed.
netbeans also has its own forum, it might be worth asking there too