Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Les Morgan wrote:Enable Java in your browser.
Encapsulate the applet in an HTML file.
Double click on the HTML file and select open in browser or you can do a <file><open> with your browser.
Here is a link on a howto, it's kind of old, so you needn't go through the whole reboot process and dos mode.
Joseph Tagarelli wrote:I created a .jar with .class files and a directory for images that applet load..but when i open it in browser i have a "NoClassDefFoundError"
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Les Morgan wrote:You know it is a lot easier to help people that actually tell what it is that they need. Before anyone attempts to help you any further, please detail what you have done and the whole error message that is given.
Joseph Tagarelli wrote:I created a .jar with .class files and a directory for images that applet load..but when i open it in browser i have a "NoClassDefFoundError"
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Tony Docherty wrote:You are missing a '>' from your applet tag or is that a typo in your post?
What package is the XMeansClient class in?
Joseph Tagarelli wrote:XMeansClient is in "client" package
Paul Clapham wrote:
Joseph Tagarelli wrote:XMeansClient is in "client" package
And in your jar file, is XMeansClient in the "client" folder? The error message (which says "wrong name") suggests that it isn't.
Paul Clapham wrote:Well, frankly I would suggest you stop messing about with applets and just write a plain old Java application to do your client-server project. Using applets just gets you bogged down in configuration issues -- like this one, but there will be more. The only reason to use an applet, really, is that your instructors are requiring you to do that. And even if they are that's a questionable requirement, because nobody uses applets any more unless there's a really really good reason to fight through all of the setup required.
Tony Docherty wrote: I may be wrong (It's a long time since I've done anything with applets because, as Paul has already said, they are a dead technology) but I think your "code=XMeansClient.class" should include the package name ie code=client.XMeansClient.class >
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Joseph Tagarelli wrote:i did it..but it doesnt run..i dont know
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
Joseph Tagarelli wrote:Yes..i must run it on browser.
Paul Clapham wrote:
Even though there may still be a niche where applets are still used, there is just no excuse for requiring beginning programmers to work with applets. If your instructors are doing that, it makes me think that you are at a place which will provide you with a substandard education.
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH
I know it isn't a nice thing to say, but if it was a requirement and your colleague knew about that requirement, then the lost mark was fair.Les Morgan wrote:. . . Was it fair or not, doesn't matter, it was the requirement . . .
Campbell Ritchie wrote:
I know it isn't a nice thing to say, but if it was a requirement and your colleague knew about that requirement, then the lost mark was fair.Les Morgan wrote:. . . Was it fair or not, doesn't matter, it was the requirement . . .
A reminder from the teacher on the lines of, “You have 3½ seconds to hand in your assignments,” however, would have been nice.
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|