NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
tomii
Joined: 12 Jan 2011 Posts: 1
|
Posted: Wed Jan 12, 2011 12:04 pm Post subject: Have no file for... jdk.boot.jar - Problem |
|
|
Hi! I'm a complete Java newbie, and I'm getting this error in NetBeans when I'm click the "Debug Main Program" button.
This is all the code I have at the moment:
| Code: |
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
package helloworldapp;
/**
*
* @author Tomii
*/
public class HelloWorldApp {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Hello World");
}
} |
And this is what I get in the Output window:
| Quote: | debug:
Have no file for C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar
Hello World
BUILD SUCCESSFUL (total time: 0 seconds) |
What should I do to get rid of the jdk.boot.jar error?
Thanks in advance! |
|
| Back to top |
|
 |
Shawnb
Joined: 13 Jan 2011 Posts: 1
|
Posted: Thu Jan 13, 2011 10:23 am Post subject: I am also having this Problem |
|
|
Hi Friend
I am also having this problem. When I click on "debug main project" i get the following error message:
Have no file for C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar
Although this does not crash the IDE and it doesn't affect the build, I would really like to fix this problem so if anyone has the solution I would greatly appreciate it!
Regards
Shawn |
|
| Back to top |
|
 |
jdave
Joined: 26 Feb 2011 Posts: 1
|
Posted: Sat Feb 26, 2011 7:10 am Post subject: This should fix the problem... |
|
|
I also had this issue. It wouldnt go into debug mode and I couldnt Step Into by code... This is what I did to fix it:
1) Right click on your project (top level of project tab)
2) Select 'Properties'
3) Choose the 'Run' Category
4) Change the Main Class by selecting 'Browse' button.
My Main class was set to WorkBooks.DataTypes and when I changed it to one of my class files that had a main() entry all worked fine
Note. I still get the error but everything works ok. |
|
| Back to top |
|
 |
waltc
Joined: 30 Mar 2010 Posts: 4
|
Posted: Thu Mar 31, 2011 5:45 pm Post subject: Re: This should fix the problem... |
|
|
| jdave wrote: | I also had this issue. It wouldnt go into debug mode and I couldnt Step Into by code... This is what I did to fix it:
1) Right click on your project (top level of project tab)
2) Select 'Properties'
3) Choose the 'Run' Category
4) Change the Main Class by selecting 'Browse' button.
My Main class was set to WorkBooks.DataTypes and when I changed it to one of my class files that had a main() entry all worked fine
Note. I still get the error but everything works ok. |
Then I would say it doesn't work OK.
I, too, started getting this today. Your solution did NOT work and a clean does nothing but the problem is moving to other modules. I amso noticed that I have an enum, call it fooEnum that I used to rename the thread. This worked fine about 1 hour ago, now it shows as being null.
I believe something get wedged in the Netbeans meta data somewhere but I don't know if it trashed the project or the installation of Netbeans 6.9.1.
If it is the project I really need it back. |
|
| Back to top |
|
 |
CharlesKnNell
Joined: 03 Dec 2011 Posts: 2
|
Posted: Sat Dec 03, 2011 8:54 pm Post subject: jdk.boot.jar is reported missing but netbeans operates fine |
|
|
This problem happens periodically with many different missing files. It's a netbeans bug in the netbeans software upgrade process. If you search your hard disk for this file, I bet you can't find it. It is my opinion that it was part of the default jdk that netbeans used before you deleted that jdk and then installed an upgrade of netbeans, which doesn't use it. The next time you started netbeans, the missing file problem appeared. If there was truly a missing file containing software required to boot the jdk, I have my doubts about how well the IDE could function in that case. IMO, you can ignore this error when the IDE functions correctly in ALL other respects. If it bugs you, create an empty text file and place it in the path reported. The error will be gone. That should convince you that it isn't being used.
Charles (KnNell) Knell
http://rrco.biz |
|
| Back to top |
|
 |
CharlesKnNell
Joined: 03 Dec 2011 Posts: 2
|
Posted: Tue Dec 06, 2011 5:00 pm Post subject: P.S. missing jdk.boot.jar |
|
|
P.S. If placing an empty file at the location reported causes a new error, it means that you DO have a problem. In that case, Uninstall NetBeans and reinstall. Usually, this can be done without losing your personal configurations or Projects. Just follow the onscreen instructions carefully.
Charles (KnNell) Knell |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|