Help! java 2 me + database

hi! I have same problems to connect the database with my application in java 2 Me!
Please can samebody help me?
Can samebody tell me same material which is useful for my connection? Or give me same example?
Thakns
Antonio
email: [email protected]

Have you actually looked?
http://forum.java.sun.com/thread.jspa?forumID=76&threadID=705039
http://forum.java.sun.com/thread.jspa?forumID=76&threadID=368745
http://forum.java.sun.com/thread.jspa?forumID=76&threadID=149920
http://forum.java.sun.com/thread.jspa?forumID=76&threadID=652504
and you would have found much more, if you'd have used the search!

Similar Messages

  • Java dictionary database table in web dynpro application

    Hi,
    I want to access java dictionary database table in my web dynpro application in java.
    Right now I have created one java dictionary DC.
    and in that Dc i have created two database table .
    Now I want to use this table in my web dynpro application.
    Can anyone help me.

    You can use the Dictionary Projects to create tables in Database. You must use codes to access these database tables that is created using Dictionary projects.
    You have to use the DataSource in order to get connection ; Use Visual Administrator to see the data source name.
    You can use the following code to access the database table.
    ResultSet result = null;
    try
         InitialContext initialcontext = new InitialContext();
         DataSource datasource = (DataSource)initialcontext.lookup("jdbc/<DataSourceName>");
            Connection connection = datasource.getConnection();
         Statement statement = connection.createStatement();
         result = statement.executeQuery( <Query>);
         connection.close();
    } catch (NamingException e) {
         // TODO Auto-generated catch block          
              e.printStackTrace();
    } catch (SQLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    Regards
       Vinod

  • Customer Order Records in Java using dataBase

    hi can u help me on how to make a Customer Order Records in Java using DataBase?
    may i know the code in the JCreator?
    or the Syntaxfor this program..
    Hope you will help me,,thanks a lot,,

    Well, being that you're offering the maximum dukes, and you're cute, just sit back and relax while one of us does your homework for you. It's going to be a little difficult though, we need to don our mindreading caps too to figure out the exact requirements since you didn't post it.

  • Any Guidance on Java-to-Database Programming?

    Hello, 2-15-2003
    As a beginner in Java, I have succeeded, with
    the help of this Forum, some books, tutorial,
    SUN Web Site, etc. -- to write fairly sophisti-
    cated Java programs. I have used/setup CLASSES,
    Packages, access to System Commands, etc. Basically
    what I can do in REXX, PL/1, etc. I can now do
    in Java.
    My next task for myself is to do a Java to
    database system connect, database READ, WRITE,
    Query, etc. I am planning on Oracle & DB2,
    because those are the most common Databases that
    you see in the market,... therefore, demands for
    skills.
    QUESTION: Any guidance any body can give me?
    Where do I start. What should I
    read up on ? What's the class
    package in Java to do such database
    navigation/manipulation work?
    MY THOUGHTS ON JAVA:
    1. Not bad. A sophisticated language.
    2. I like the idea of packages: AWT, etc.
    3. A bit slow compare to other 3rd gen. languages
    such as PL/1, REXX.
    4. Java is a definite MUST KNOW, because of
    the opportunity for work out there.
    5. Java and Object Oriented stuff is here to
    stay, because of the many advantages.
    6. Java is not a difficult language. It is
    very very powerful, allows you to do very
    complex systems, engaging in ALL modern
    applications, ex. Web, Graphics, High Math.
    Thanks every one,... and I am still a beginner.
    -- gte99te , New York.

    http://java.sun.com/docs/books/tutorial/jdbc/index.html

  • Deployment issues-java desktop database application

    hello,
    i'm vasant...recently visited an online tutorial for creating java desktop database application
    here is the URL [http://www.netbeans.org/kb/docs/java/gui-db.html#running-outside-IDE] ...
    everything works fine...when building and executing the application from within the NetBeans IDE..6.7
    but as instructed in that tutorial...when I tried to run the .jar file after exiting the netbeans IDE, it didnt run...
    infact direction has been given in that tutorial for this in the last section....which says that i've to start Java DB from outside the Netbeans IDE...that's where difficulty arises....
    i've no idea how to start Java DB manually...
    i'd really appreciate if nybody der could...help me out plz
    thanx

    spring_patel wrote:
    i really appreciate you trying to solve my problem..
    but i think...my estion is fairly simple and straight forward...and i've provided every detail of my problem(if uv'e read my opening post of this thread)....
    and as far as that link goes...i've already checked it b4 u guys mentioned it... as it is provided right there in the tutorial i've provided link of...
    and i've tried my options b4 making use of this forum...and i didnt find a solution that's why i'm taking ur help..
    nevertheless...i repeat my question...
    there's a tutorial at this link...[http://www.netbeans.org/kb/docs/java/gui-db.html]...in it is described how to create a java desktop database applicaiton...
    at the end of the tuorial there is a section called: "Building and Deploying the Application"
    in that section they have instructed to exit netbeans IDE and try and run the application outside it...which is not happening
    the reason they say is that i've to start Java DB from outside of the IDE...that is wat my problem is ..
    i dont know how to start Java DB from outside the Netbeans ide...You are not telling us anything.
    If I tell you "my automobile doesn't work" how do you know what is wrong. Instead I need to tell you one of the following.
    1. The engine didn't start.
    2. The wheel fell off.
    3. The engine caught fire.
    4. When I went to the driveway the car wasn't even there.
    When you "run" something then something happens. When I run notepad from a console window if notepad is not in the path then I will get an error about command not found. if it is in the path then the command executes and notepad pops up. Even if I don't see notepad pop up I know that the command seemed to execute from the command window.
    The above are examples of describing what you did and what did happen. In detail.
    "It doesn't work" provides neither detail about how you ran it nor what did happen when you did attempt to run it.

  • I need help about my database! Please help me!!! I really need help!!!!!

    Hey I done my database code through JCreator but it did not seemed to work. This is the buy ticket page whereby you buy the movie ticket online that i am creating.
    The java file is called BuyTextBox.java with database by microsoft access called buy.db .
    I will want the information that the user entered saved be stored in the database. I tried but it did not seemed to work!
    Here is the code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    public class BuyTextBox extends JPanel  implements ActionListener  {
         //Instance Variables
         private String FirstName = "fn";
         private String LastName = "ln";
         private String Address = "addr";
         private String ContactNumber ="1234567";
         private String CreditCardNumber ="111111";
         private String Email="[email protected]";
         private int NumberTickets;
         public String getFirstName(){
              return FirstName;
         public String getLastName(){
              return LastName;
         public String getAddress(){
             return Address;
         public String getContactNumber(){
              return ContactNumber;
        public String getCreditCardNumber(){
              return CreditCardNumber;
         public String getEmail(){
              return Email;
         public int getNumberTickets(){
             return NumberTickets;
    private JLabel movieLabel = new JLabel("Select movie ticket:");
    private JLabel blankLabel = new JLabel("        ");
    private JLabel blank2Label = new JLabel("        ");
    private JLabel blank3Label = new JLabel("        ");
    private JLabel blank4Label = new JLabel("        ");
    private JLabel blank5Label = new JLabel("        ");
    private JLabel FirstNameLabel = new JLabel("First Name:");
    private JTextField FirstNameTextField = new JTextField();
    private JLabel LastNameLabel = new JLabel("Last Name:");
    private JTextField LastNameTextField = new JTextField();
    private JLabel AddressLabel = new JLabel("Address:");
    private JTextArea AddressTextArea = new JTextArea();
    private JLabel contactLabel = new JLabel("Contact number:");
    private JTextField ContactNumberTextField = new JTextField();
    private JLabel creditLabel = new JLabel("Credit card number:");
    private JTextField CreditCardNumberTextField = new JTextField();
    private JLabel emailLabel = new JLabel("Email:");
    private JTextField EmailTextField = new JTextField();
    private JLabel numberLabel = new JLabel("Enter number of tickets:");
    private JTextField NumberTextField = new JTextField();
    private JButton saveButton;
    private JButton resetButton;
    public BuyTextBox() {
    JPanel inputPanel=new JPanel();
    inputPanel.setBorder(new TitledBorder("Please enter your informations:"));
    inputPanel.setLayout(new GridLayout(0,4,40,40));
    inputPanel.add(FirstNameLabel);
    inputPanel.add(FirstNameTextField);
    inputPanel.add(LastNameLabel);
    inputPanel.add(LastNameTextField);
    inputPanel.add(AddressLabel);
    inputPanel.add(AddressTextArea);
    inputPanel.add(contactLabel);
    inputPanel.add(ContactNumberTextField);
    inputPanel.add(creditLabel);
    inputPanel.add(CreditCardNumberTextField);
    inputPanel.add(emailLabel);
    inputPanel.add(EmailTextField);
    inputPanel.add(movieLabel);
    inputPanel.add(new Checkbox("Chicken Little"));
    inputPanel.add(new Checkbox("King Kong"));
    inputPanel.add(new Checkbox("Elizabeth Town"));
    inputPanel.add(blankLabel);
    inputPanel.add(new Checkbox("Curse Of Were Rabbit"));
    inputPanel.add(new Checkbox("Derailed"));
    inputPanel.add(new Checkbox("In Her Shoes"));
    inputPanel.add(new Checkbox("Proved"));
    inputPanel.add(new Checkbox("Family Stone"));
    inputPanel.add(new Checkbox("TinMine"));
    inputPanel.add(new Checkbox("Narnia"));
    inputPanel.add(blank2Label);
    inputPanel.add(numberLabel);
    inputPanel.add(NumberTextField);
    JPanel confirmPanel=new JPanel();
    saveButton=new JButton("Save");
    resetButton=new JButton("Reset");
    confirmPanel.add(saveButton);
    confirmPanel.add(resetButton);
    setLayout(new BorderLayout());
    add(inputPanel,  BorderLayout.PAGE_START);
    add(confirmPanel, BorderLayout.PAGE_END);
    resetButton.addActionListener(this);
    saveButton.addActionListener(this);
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() == resetButton)
    resetButtonClicked();
    else if (e.getSource() == saveButton)
    saveButtonClicked();
         public BuyTextBox(String aName){
              name = aName;
    public boolean insertDetails(){
              boolean success = false;
              DBController db = new DBController();
    //          buy db = new buy();
                 db.setUp("buy");
              String sql = "INSERT INTO buy(FirstName,LastName, Address,ContactNumber,CreditCardNumber,Email,NumberTickets)";
                sql += "values("+FirstName+", '"+LastName+"', "+Address+"', "+ContactNumber+
                "', "+CreditCardNumber+"', "+Email+"', "+NumberTickets+");";
              db.updateRequest(sql);
                 db.terminate();
                success = true;          
              return success;
    private void resetButtonClicked()
    FirstNameTextField.setText("");
    private void saveButtonClicked()
    FirstName = FirstNameTextField.getText().trim();
    LastName = LastNameTextField.getText().trim();
    Address = AddressTextArea.getText().trim();
    ContactNumber = ContactNumberTextField.getText().trim();
    CreditCardNumber = CreditCardNumberTextField.getText().trim();
    Email = EmailTextField.getText().trim();
    NumberTickets = NumberTextField.getText().trim();
    if  (FirstName.length() == 0)
    JOptionPane.showMessageDialog(this ," Name cannot be blank" , "Invalid Field", JOptionPane.ERROR_MESSAGE);
    else
    JOptionPane.showMessageDialog(this, "Record added.", "Confirmation", JOptionPane.INFORMATION_MESSAGE);
    if (insertDetails())
         System.out.println("DB Update OK");
    else
         System.out.println("DB Update Failed");
    public static void main(String args[]) {
    JFrame app=new JFrame();
    //Container contentPane = getContentPane ();
    BuyTextBox p=new BuyTextBox();
    app.getContentPane().add(p);
    app.setTitle ("Buy tickets ");
    app.setSize(1050,740);
    app.setBackground (new Color(0,160,198));
    app.setResizable (false);
    app.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    app.setVisible(true);
    If you know whats wrong with the code, please teach me what to do to make my databse successful!

    and now that one try to hack my icound but i set password so strong cuz it associat me just i little bit you will check me cuz i have your product all i used to use my username nerdseery but ha hacked me all every email addrese i used username nerdsery but now i must changed to nerrdsurery

  • How to connect java with database without any dsn.

    is there any way to connect java with database with out creating any dsn..like we do in ado in vb by providing provider.

    Sure use a type 4 driver. No DSN.

  • HELP to open database (again)

    Hi, saga continue:
    svrmgr> startup mount;
    Database mounted
    svrmgr> alter database open read only;
    ORA-16005: database requires recovery
    svrmgr> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-00264: no recovery required
    svrmgr> alter database open; - hang
    Please help to OPEN database!!!!
    Thnaks in advance,
    Andriy Korud, Ukraine

    You can find how to here:
    http://www.bing.com/search?q=close+sync+services+agent
    http://www.bing.com/search?q=what+is+mac+os+x+sync+services
    Mac OS X: Resetting the SyncServices folder - Apple - Support
    http://support.apple.com/kb/TS1627
      Aug 17, 2012 · Choose Reset Sync Services. Click Reset Sync History. Test for the ... Resetting SyncServices resets your Mac OS X User Account's Sync settings and …
    Sync Services: Advanced troubleshooting for contact and calendar ...
    http://support.apple.com/kb/TS2481

  • How to find my submitted bug report in Java bug database

    I just submitted a bug report in Java bug database and it told me that the submission is successful without its bug ID and no email notification is received from Oracle.
    And I cannot find the bug in bug database with the title I submitted.
    The bug's product/category is Java Plug-in in JRE7
    So how could I get the bug status? Will it be fixed and how is it going on?

    I just submitted a bug report in Java bug database and it told me that the submission is successful without its bug ID and no email notification is received from Oracle.Last time I did that it also said it wouldn't appear straight away. They have to qualify bugs you know.
    And I cannot find the bug in bug database with the title I submitted.How long ago?
    So how could I get the bug status?Wait till it turns up?
    Will it be fixed and how is it going on?How would anyone on this forum know?

  • Java Embedded Database Recommendation

    Does anyone have a recommendation for a Java embedded database solution? I have been using Borland's JDatastore for a while and I have become frustrated by some of its' bugs. Has anyone had a better experience with some of the other Java embedded databases out there - for example, InstantDB or Pointbase? Or are all of these products at about the same level of maturity and reliability?
    Thanks.

    Take a look at our project here; http://www.mckoi.com/database/
    It's an open source embeddable SQL database in Java.

  • Java Swing Database Components

    Heloo guys!
    Anyone knows where to download Java Swing Database Components??

    http://www.jars.com/utilities/libraries/resource.php/28653
    http://sourceforge.net/projects/jsdbc/
    create your own rather.

  • Re: Upgrading java for database

    Hi,
    I have upgraded my java for applications using
    Using J2SE Version 6 with Oracle E-Business Suite 11i (Doc ID 401561.1) .
    My java for database is still old , In one of the post i have seen that to upgrade java for database same above Doc should be used .
    But there is no procedure mentioned for this , should the java be upgraded for database or the old version should be continued ?
    Regards .

    Hi all
    Got the Doc ans sol
    Using Latest Java 6.0 Update With Oracle E-Business Suite Release 12 (Doc ID 455492.1)
    Section 3
    Section 3: Upgrading to Latest JRE 6.0 on Database Tier Node

  • Any tool to help checking the database is in line with the 2NF

    Is there any tool to help checking the database design is in line with the 2NF (second normal form), Thanks.

    Hi,
    Is this table in 2nd normal form?
    CREATE TABLE     orders
    (       order_id     NUMBER (10)     PRIMARY KEY
    ,     company          VARCHAR2 (10)     NOT NULL
    ,     customer     VARCHAR2 (30)
    );How can you tell?
    How would you expect some tool to tell?
    If you willing to even make a guess, it's only because you know what "order". "company" and "customer" probably mean in this context.
    There are queries other methods you could use to detect tables that might not be in second normal form. Fort example, you could assign a number (0-100) to each table, 0 meaning it seems to be in second normal form, 100 means that it has all the traits you expect from a table that is not in second normal form, and then list the 20 tables with the highest scores to check.
    Say exactly what you're trying to do, and someone will help you find a good way to do it. Post CREATE TABLE and INSERT statements for some tables, and expalin what traits you're looking for.

  • Help!! How To Connect Java & PostgreSQL Database

    I'm final year student in comp sc. I'm doing java in my thesis.
    How to get/read data from postgresql using java?
    My thesis is "2 Dimensional Graph Statistics Online Viewing Using Java Applet". So i need a mechanism how to read data from postgresql database using java programming. Please Help!!

    Hi,
    getting started you need some basics on JDBC.
    Have a look at the tutorials, or look at this site (its german):
    http://www.furchur.de/de/informatik/laborberichte2.htm#dbswt
    Have a look at the java.sql package.
    First you need to build up a connection using
    java.sql.DriverManager.getConnection(...)
    The parameter for the PostgreSQL you must look somewhere.
    After you have a connection you can use Statements and PreparedStatements to get and set data in the database.
    At the end, make sure, the connection will be closed, otherwise data can be lost.
    Hope that will help you a little bit

  • Help needed to converstae xml with java and database

    I want to make use of xml to read soem data from database and then use that material in java to display or manipulate that data and again feed back it into database through xml.

    why using XML? how about JDBC?

  • Need help connect Access Database to Crystal Report Viewer in java

    Need example for passing parameters to PropertyBag Class and IConnectionInfo Class.
    We use CR_JRC_11.8
    Thanks

    A sample that demonstrates how to change the database that a report uses at runtime in the JRC can be found at the following link on the SAP Portal:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ad3d3d-be66-2b10-2181-f46c6e05a420
    To help determine what connection properties need to be changed at runtime through code, create a copy of your original report and use the Crystal Reports designer to change this report to new datasource manually.  You can then use the  jrc_display_connection_info helper sample to examine what the parameters should be in the property bag before setting the IConnection information.  The jrc_display_connection_info helper sample can be found at the following link on the SAP Portal:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/706202a4-bd66-2b10-4e8b-92f4a8024ea1
    Hope these samples help.
    Regards.
    - Robert

Maybe you are looking for

  • Error -While create a connection to Microsoft SQL Sever from Oracle SQL Dev

    Dear All, While I am trying to create a connection to Microsoft SQL Sever from Oracle SQL Developer. The following error: "Cannot connect to Microsoft SQL Server on localhost" has been occurred. Can anyone please guide me to solve this.. Thanks in ad

  • Windows 7 64 bit install error

    I have Window's 7 & I run 64 bit. Well Every single time I try to install iTunes 9.2.1 it says that part of the installation failed & it won't let my iPod nano or my gen. 5 iPod run on iTunes. So far every iPod I've tried says no then it tells me to

  • VISA Find Resource primitive runs much slower on OS X compared to Windows

    Hello Everyone, We have a large application that is built with LabVIEW 2014 64-bit that calls the "VISA Find Resource" primitive in a While Loop as the basis for automatic hardware discovery. On Windows, everything works fine. However, we just starte

  • Non RAC to RAC

    Hi, I need to convert a Non-rac to RAC. Can somebody help me with note or doc for doing this ? Thx

  • Error in bdc-urgent

    Hi experts, if i schedule my BDC(call transaction) program in sm36 it shows the error as frontend function cannot be execute in background. message number (FES002) . please guide me Thanks, ashok