I put this "Connection conn=null;" in the
"comadmin.java" as below:
=========
Connection conn=null;
Statement stmt = null;
ResultSet rs = null;
conn=koneksi.konek();
// Do something with the Connection
// assume conn is an already created JDBC
connection
try {
...
...
=======
And I still got the same error, as below:
=======
patrixlinux@patrix:~/arsip/My/comadmin/dimodulkan>
javac comadmin.java
comadmin.java:30: incompatible types
found : koneksi
required: java.sql.Connection
conn=koneksi.konek();
^
1 error
patrixlinux@patrix:~/arsip/My/comadmin/dimodulkan>
=======
What is my mistake? Please tell me.
TIC.
--- expatriate
Prabu Subroto wrote:
Dear Thorsten....
Ooo..Oooo... Sorry my friends... I am trapped again into trouble.
I made one separated file named "koneksi.java". And did some modification in "comadmin.java".
I got this error message: " patrixlinux@patrix:~/arsip/My/comadmin/dimodulkan> javac comadmin.java comadmin.java:26: cannot resolve symbol symbol : variable conn location: class menu conn=koneksi.konek(); ^
<snip>
I don't see where you have declared the variable "conn" anywhere. e.g. Connection conn = null; .... conn=koneksi.konek();
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/