Results 1 to 15 of 15
- 02-09-2012, 04:16 PM #1
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
- 02-09-2012, 04:43 PM #2
Re: My database dont working on html in Applet
Are there any error messages? Look in the browser's java console.
Copy and paste them here.
- 02-09-2012, 05:23 PM #3
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
Re: My database dont working on html in Applet
no.i didnt take any error mssages on eclipse. i cant see error messages on firefox
- 02-09-2012, 05:30 PM #4
Re: My database dont working on html in Applet
What messages are in the java console?
Do all the catch blocks in the code call the printStackTrace() method?
- 02-09-2012, 05:40 PM #5
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
Re: My database dont working on html in Applet
com.mysql.jdbc.JDBC4ResultSet@ad89ecinit(): messages in ECLİPSE
other hand my code :
Java Code:public void baglantiAc() throws Exception { String query="select * from kullanici"; Class.forName("com.mysql.jdbc.Driver"); baglanti=DriverManager.getConnection("jdbc:mysql://localhost/egitim","root","123456"); Statement statement=baglanti.createStatement(); if (baglanti == null){ System.out.print("Bağlanti sağlanamadi"); } ResultSet result=statement.executeQuery(query); ResultSetMetaData meta=result.getMetaData(); for(int i=1;i<=meta.getColumnCount();i++) System.out.printf( "%-8s\t", meta.getColumnName( i ) ); System.out.println(); while(result.next()) { int k=1; id=String.valueOf(result.getObject(k)); k++; kullanici=String.valueOf(result.getObject(k)); k++; pass=String.valueOf(result.getObject(k)); k++; okul=String.valueOf(result.getObject(k)); k++; yas=String.valueOf(result.getObject(k)); } System.out.print(result); }Last edited by Norm; 02-09-2012 at 05:43 PM. Reason: added code tags
- 02-09-2012, 05:43 PM #6
Re: My database dont working on html in Applet
If you do not get an error message, there is no way to know what the problem is.
Add a println("Applet started") to your code that you will see on the java console and know that the program is executing.
What messages are in the browser's java console?
- 02-09-2012, 05:47 PM #7
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
Re: My database dont working on html in Applet
hmm. so i get null value of a String data.
- 02-09-2012, 05:48 PM #8
Re: My database dont working on html in Applet
Do you understand your problem now?
- 02-09-2012, 05:51 PM #9
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
Re: My database dont working on html in Applet
so so.thank you :):) Thank you for your help...
- 02-09-2012, 05:53 PM #10
Re: My database dont working on html in Applet
hoş geldiniz
- 02-09-2012, 05:59 PM #11
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
Re: My database dont working on html in Applet
:) hoş bulduk
- 02-09-2012, 10:55 PM #12
Member
- Join Date
- Dec 2011
- Posts
- 13
- Rep Power
- 0
Re: My database dont working on html in Applet
what are errors this:
Detected from bootclasspath: C:\\PROGRA~1\\Java\\jre7\\lib\\deploy.jar
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at ayy.init(ayy.java:37)
at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter .init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
- 02-09-2012, 11:18 PM #13
Re: My database dont working on html in Applet
The Class.forName() method can not find the class it is trying to load.java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
..
at java.lang.Class.forName(Unknown Source)
at ayy.init(ayy.java:37)
You need to find the jar file with this class: com.mysql.jdbc.Driver and put it on the classpath so the java program can find it.
- 02-19-2012, 09:11 PM #14
Member
- Join Date
- Feb 2012
- Posts
- 3
- Rep Power
- 0
Re: My database dont working on html in Applet
There must be an error message. You are missing it somehow.
- 02-19-2012, 09:33 PM #15
Similar Threads
-
applet working in applet viewer, not browser
By plasticfood in forum Java AppletsReplies: 4Last Post: 06-24-2011, 06:47 PM -
Applet in Html
By durduman in forum New To JavaReplies: 10Last Post: 02-06-2011, 03:17 PM -
HTML Links on IzPack HTMLInfoPanel not working correctly
By salman.kagzi in forum New To JavaReplies: 0Last Post: 11-30-2010, 05:07 PM -
I dont get it! How do I create an sql database on my own computer?
By Addez in forum New To JavaReplies: 1Last Post: 08-22-2010, 09:37 AM -
database-html/jsp
By java_on_fire in forum New To JavaReplies: 7Last Post: 03-18-2010, 01:48 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks