Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2004

Tip: Looking for answers? Try searching our database.

help! Can't get applet to work on website

Thread view: 
Bored Huge Krill - 18 Apr 2004 19:38 GMT
any suggestions greatly appreciated...

I have an applet which works just fine locally. Works just fine when I put
it on a web server on the LAN.

When I put the same thing up on a publicly accessible website, it doesn't
work. I get a
java.lang.classnotfound exception on the top level class.

Everything I try works locally, and nothing I try works on a public website.
I have everything in a .jar file now, still doesn't work.

Any suggestions?

Thanks...
Bored Huge Krill - 18 Apr 2004 19:41 GMT
ok, that's not actually true... my .jar file doesn't seem to be working
locally either.

> any suggestions greatly appreciated...
>
[quoted text clipped - 11 lines]
>
> Thanks...
Bored Huge Krill - 18 Apr 2004 19:52 GMT
ok then, never mind. I figured out my problem.

Just for the record, in case anybody else hits this issue:

I created the jar file incorrectly. Because the .class files were part of a
package called "ephemeris", I needed to create the jar file from the
directory above using:

jar cvf ephemeris.jar ephemeris

rather than in the directory itself using

jar cvf ephemeris.jar *.class

once I fixed that, everything worked (phew! that was driving me nuts for a
while...)

> any suggestions greatly appreciated...
>
[quoted text clipped - 11 lines]
>
> Thanks...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.