Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-04-2008, 08:10 AM
Member
 
Join Date: Apr 2008
Posts: 2
burepallisri can only hope to improve
hai friends i got the Exception in the following java program , how do i resolve it ?
this is the program
import java.sql.*;
import java.lang.*;
import java.io.*;
public class Verify
{
private Connection Database;
private Statement DataRequest;
String query;
public Verify() throws Exception
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Database=DriverManager.getConnection("jdbcdbc:ne wcover2");
DataRequest=Database.createStatement();
for(int m=0;m<12;m++){
query="create table Table" +m+ "(";
for (int i=1;i<=55;i++)
query+="Field"+i+" integer,";
query+="Field"+(56)+" integer";
query+=")";

try
{
System.out.println("."+query+".");
DataRequest.executeUpdate(query);
}
catch (Exception e)
{
System.out.println("Excption in create "+e);
}

}
DataRequest.close();
}catch(Exception e){ e.printStackTrace(); }
}
public static void main (String args[]) throws Exception {

Verify ob=new Verify();

}
}
-------------------------------------------------------------
can please any body help me
withregards
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-04-2008, 08:18 AM
Member
 
Join Date: Apr 2008
Posts: 2
burepallisri can only hope to improve
qqqqqqqqqqqqqqqqqqqq
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-04-2008, 08:21 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 839
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Welcome to the Forums.

Quote:
qqqqqqqqqqqqqqqqqqqqqqq
Please do not waste posts on spam. This is your first and last warning.

That said, what is the exception you're receiving? What happens when you run the code? What are you trying to accomplish?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 06:56 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
I'm guessing the exception is because of:
Code:
Database=DriverManager.getConnection("jdbc:dbc:ne wcover2");
This does not look right to me.
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want Java Programmer Friends. fastspeed33 Advanced Java 6 11-28-2007 04:46 PM
Hi Java Tech Friends !!!!! Sasanka Sekhar Kar Introductions 0 11-16-2007 02:16 PM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 10:33 PM
Want Java Programmer Friends. fastspeed33 New To Java 0 07-31-2007 07:06 PM
MySite/Valid.java:56: cannot resolve symbol Albert Enterprise JavaBeans 1 07-05-2007 06:49 AM


All times are GMT +3. The time now is 07:24 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org