Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Joseph Tagarelli

Greenhorn
+ Follow
since Jun 03, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joseph Tagarelli

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 >


i did it..but it doesnt run..i dont know
4 years ago

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.


Yes..i must run it on browser.I dont know why it runs on eclipse but dont in browser
4 years ago

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.


Yes,it is
4 years ago

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?


XMeansClient is in "client" package,i try with code="client.XMeansClient.class" but i received nullpointerexception..and in details there is CacheEntry[file:/C:/Users/Jt1995/workspace/Xmeans/bin/xmeans.jar]: updateAvailable=false,lastModified=Fri Jun 03 21:47:15 CEST 2016,length=51303
4 years ago

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"


I have a file called XMeansClient that is my applet.In the same directory i created a .html that contains:

My project contain 5 package,2 of these are "client" and "server".The client is my applet(that use two image) that send to server the data that need to run my project,using other package.So,i dont know if my jar file is correct,it contains all .class of client package and the two images.My applet and server run correctly in Eclipse ide,but i need to run the applet in browser.When i open my .html in browser i received "NoClassDefFoundError,XMeansClient(wrog name:client/XMeansClient)".If i click on detail there is this:
CacheEntry[file:/C:/Users/Jt1995/workspace/Xmeans/bin/client/xmeans.jar]: updateAvailable=false,lastModified=Fri Jun 03 19:03:56 CEST 2016,length=13890
4 years ago

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.



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"
4 years ago
Hi to all.I m a student of informatics degree,and i am studying java language.First of all,sorry for my bad english but im not english.My project is a client-server project where i send the client choices with an applet.Now,this applet works on my ide(Eclipse) but i need to run it in browser,but i dont know how to do this.I hope you can teach me how do this.
4 years ago