|
-
Feb 20th, 2008, 12:31 PM
#1
[RESOLVED] Can't debug Applet in the IDE
My java applet compiles error free and it runs in the browser as expected. However I can't get it to debug while I am in the IDE. I used to be able to debug applets all the time and now I can't. I set breakpoints and even tell it to Step Into but all it does is runs the applet in the browser and never stops at any breakpoints or anything.
I have the project set to the Debug mode
Is/are there things I need to set or enter into the project to make it debug?
-
Feb 24th, 2008, 10:26 PM
#2
PowerPoster
Re: Can't debug Applet in the IDE
Which IDE you use? Is that debug works for simple application, and for Applets earlier?
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Feb 24th, 2008, 11:33 PM
#3
Re: Can't debug Applet in the IDE
I can debug applications only.
I believe the problem with not being able to debug Applets might have something to do with the browser displaying a security warning message which I think interferes with the debugger. I have to click on the security message bar so it will show a drop down menu selection and then I have to click on allow activex to run in the browser and that brings up a dialog box which asks me am I sure which I have to click on yes then the applet starts to run ok but I have now lost the debugger.
When I was debugging Applets it was back when I had W98 and probably before IE6. I don't remember having those security warning bars in the browser when I was running Applets. But now I have XP and IE6.
I haven't been able to find a way to disable that security message bar. I have to do what I said above every time I run an Applet.
The fact that I can debug applications and not Applets is what tells me it must have to do with the security messages. I don't know for sure however.
I'm using an old Microsoft Visual J++ 1.1. I know that's very old and outdated but it's the only one I have and I like it and it does handle about 95% of all my Java programs quite well.
-
Feb 24th, 2008, 11:47 PM
#4
PowerPoster
Re: Can't debug Applet in the IDE
Actually I don't know much about IE, because I'm FF user from now over the years. But, there can be some options to make Java enable option. Even on that, I'm not sure it support J++. Did you check all the options on IE.
And again, what is your IDE. It can be helpful to everyone who read this tread.
Why don't you use JDK latest version for Java developments, I'm confusing with that pal.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Feb 25th, 2008, 12:13 AM
#5
Re: Can't debug Applet in the IDE
And again, what is your IDE. It can be helpful to everyone who read this tread.
I did say what my IDE is. Last sentence in my previous post.
Why don't you use JDK latest version for Java developments
I did install the latest JDK about two weeks ago. So I will assume that my IDE is picking up the latest classes from that but I need to use VJ++ 1.1 because of it's interactive visual features. All of my Java programs were made with that IDE. I'm just now getting back into it and took some old Applets I made years ago and revamping them.
-
Feb 25th, 2008, 12:50 AM
#6
PowerPoster
Re: Can't debug Applet in the IDE
 Originally Posted by jmsrickland
And again, what is your IDE. It can be helpful to everyone who read this tread.
I did say what my IDE is. Last sentence in my previous post.
Oops, sorry I got it.
 Originally Posted by jmsrickland
Why don't you use JDK latest version for Java developments
I did install the latest JDK about two weeks ago. So I will assume that my IDE is picking up the latest classes from that but I need to use VJ++ 1.1 because of it's interactive visual features. All of my Java programs were made with that IDE. I'm just now getting back into it and took some old Applets I made years ago and revamping them.
I don't think that Microsoft Visual can do that If you can best thing to do is, install netbense or any related IDE for JDK which you have already install, and use you IE6 to debug. From there you can find either IE6 or Visual J++ gives that issue.
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Feb 25th, 2008, 10:02 AM
#7
Re: Can't debug Applet in the IDE
Oh I know it can do that because I compiled a Java Applet the other day that needed some classes from the JDK that wern't there before and it picked them up so I got a clean compile and run of the Applet.
I going to see if I can find a way to disable those security messages. I just have a gut feeling that once I can do that I will be able to debug Applets.
-
Feb 25th, 2008, 02:58 PM
#8
Re: Can't debug Applet in the IDE
Again and again.
Microsoft J++ & Microsoft J# Are NOT the Java you want. You are looking for Sun Microsystems Java.
There is a big difference between those 3 types of technologies
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 25th, 2008, 03:37 PM
#9
Re: Can't debug Applet in the IDE
I'm sorry but I don't understand.
I know there is a difference like you say I just don't understand why I need to use JDK instead if Visual J++. I have been using J++ for years and made umpteen Applets without any problems and I never had an issue before I installed either IE 6.0 or XP or both. I have never used the JDK in the sense of compiling Applets just the classes in the JDK. Does JDK have an visual interface? That's what I need. I don't want to use command-line compiler if that is what JDK amounts to if I absolutely don't need to. Sorry I'm dull about what you are telling me.
-
Feb 26th, 2008, 01:50 AM
#10
Re: Can't debug Applet in the IDE
If by "visual interface" you mean an IDE then yes there are so many IDE's for Java (not J++) like Netbeans, Eclipse... etc.
A simple google search will return many results but those 2 are the richest in features
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Feb 26th, 2008, 01:53 AM
#11
PowerPoster
Re: Can't debug Applet in the IDE
Yes, I don't know why he is worried on J++ IDE for Java.
And IntelliJ IDEA also best for Java
“victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha
-
Feb 26th, 2008, 01:52 PM
#12
Re: Can't debug Applet in the IDE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|