File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Error while connecting Applet to database within browser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Error while connecting Applet to database within browser" Watch "Error while connecting Applet to database within browser" New topic
Author

Error while connecting Applet to database within browser

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 675

Hi , I have an JApplet which is running fine under Netbeans but when i am putting it in browser using this html code
it throws some error while connecting to the database
Is is throwing an error because i have not signed the jar file before using it in web-browser or is it a class path issue of connector/J (Mysql) ?
if it is a class-path issue, what i need to do to resolve this ?
Note: I have set the environment variables under windows ...

This is line number 30 of Database.java


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16479
    
    2

Because you didn't sign the jar.
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 675

Paul Clapham wrote:Because you didn't sign the jar.

Ok thanks
and one more thing can an Applet send email ?
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Error while connecting Applet to database within browser
 
Similar Threads
null pointer
Open office Integration in JavaSwing application gives an exception when a jar is created.
Populate Array of type Double from text file
Persistence.xml file not wokring in JGrasp IDE
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError