Results 1 to 10 of 10

Thread: Report Problem

  1. #1
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default Report Problem

    Hello everyone
    I have created a report in netbeans by ireport tool in java.
    It is working correctly but the problem is that,i want to open by clicking button.
    I don't know how to do this
    Please tell me soon...............
    Thank You

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    Thank's Mam My Problem Has Been Short Outed Thank Again.
    I have an another problem that my java program is not accessing mysql database on another system .I developed a project in netbeans then create the jar file now i move the dist folder
    to another machine but it is not accessing database.Plz tell how we deployee mysql database with java jar file.I am at end of project.
    Amitabh

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #6
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    public class dbconnect {

    Statement st;
    ResultSet rs;
    Connection conn;

    dbconnect() {
    try {
    Class.forName("com.mysql.jdbc.Driver");
    conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/jewellarydatabase","root","");
    st=conn.createStatement();
    // System.out.println("Got connection....");
    } catch(SQLException e) {
    javax.swing.JOptionPane.showMessageDialog(null,""+ e.getMessage(),"Sql Error",javax.swing.JOptionPane.WARNING_MESSAGE);
    } catch(ClassNotFoundException e) {
    javax.swing.JOptionPane.showMessageDialog(null,""+ e.getMessage(),"Sql Error",javax.swing.JOptionPane.WARNING_MESSAGE);
    }

    }
    this is my connection class dbconnect
    when i run on another system jdbc error

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    What error?
    And please, use printStackTrace(). You lose so much information if you only print the message.

  8. #8
    amitabh is offline Member
    Join Date
    Apr 2010
    Posts
    51
    Rep Power
    0

    Default

    Communivation link Failier error

    I hava Got a mysql article about creating add deploying mysql by Connector Mx/j
    Sir do you have any idea about this
    Thank You

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    And what line is throwing that exception?

  10. #10
    nayanjyoti is offline Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    Default

    give the remote machine's IP in the connection..............

Similar Threads

  1. Problem with Sums and Averages in Sales Report
    By DavidEvans in forum New To Java
    Replies: 9
    Last Post: 04-21-2010, 08:57 PM
  2. Problem With Dimension of Jasper Report
    By Prashant.surwade in forum Advanced Java
    Replies: 3
    Last Post: 09-19-2009, 02:29 PM
  3. Problem in running jasper report in servlet
    By khadaree in forum Java Servlet
    Replies: 1
    Last Post: 07-16-2009, 09:35 AM
  4. Replies: 0
    Last Post: 03-04-2009, 09:51 AM
  5. Problem with a report
    By sanduta in forum NetBeans
    Replies: 1
    Last Post: 06-26-2008, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •