Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

debug question in netBeans

 
adam smith ii
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to debug following code and I am unable to see program variables when I run the program in debug mode. Please explain reason for messages and corrective action required.



Output window contains following:


Variables output window included as a jpeg attachment. What does the message,
No variables to display because there is no current thread.
mean?

Also the messages
>No current context (stack frame)<


thanks in advance.


debug variables not visiable.JPG
[Thumbnail for debug variables not visiable.JPG]
image of debug variables window
 
adam smith ii
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I determined that when the system is waiting for input, the current thread is not visible. I needed a breakpoint to see current thread information.
However, I still do not understand the messages:


in the "debug" window.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the libraries for your project, or check the JDK configuration settings for these two entries and remove them. Essentially, the error message means that that file and directory could not be found, which is not surprising since they don't exist.
 
adam smith ii
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter,
You got me looking in the right place, but...

The libraries are introduced when I use, Tools, Java Platforms (see attached pic.)

I tried to "Add Platform" and the same 2 missing objects a jar & a directory lines are included (items 3 & 7 in Platform Classpath panel).

Could there be a problem with the JDK build I have?


netbeans java platform manager.JPG
[Thumbnail for netbeans java platform manager.JPG]
netbeans java platform manager screen pic
 
adam smith ii
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(found on Google)
I too have the same problem. What is interesting that I still have NetBeans
6.7 and the newest 6.8.
6.7 runs without a hitch and 6.8 gives the error.

I think it is some sort of red herring, but I don't like errors.

I found the sunrsaign.jar in C:\Program Files\NetBeans 6.8\mobility8\Java_ME_platform_SDK_3.0,
so I just copied it into C:\Program Files\Java\jdk1.6.0\jre\lib

Likewise I created a folder called classes in C:\Program
Files\Java\jdk1.6.0\jre.

Now NetBeans is happy and I am happy not to see these error messages.

Ilan
--
View this message in context: http://old.nabble.com/Error-on-project-debbuging-tp26785093p26807921.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.
Back to top

Problem solved, thanks to anyone who made an effort to help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic