Java Database

Right, i am at my wits end! I'm going to start from basics here.
I want to create a Java application that stores and fetches information from/into a database (a local database, in the same directory file as the java application!).
I am using a Linux OS. I did this on my windows OS and it worked but i want to know how to do it with my Linux OS. This is the code i now have. I have to change the driver or something then i can make a new database on Linux, how do i do this as well?
Thank you to anyone that can help!
import java.sql.*;
public class Accounts{
     public static void main(String[] args)  {
          try {
               Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
               String filename = "/home/players.mdb";
               String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
               database+= filename.trim() + ";DriverID=22;READONLY=true}"; // add on to the end
               Connection con = DriverManager.getConnection(database ,"","");
               Statement s = con.createStatement();
               s.execute("INSERT INTO Accounts values(5,'me3', 'entrance', 4)");// insert some data into the table */
               s.execute("select UserName from Accounts"); // select the data from the table
               ResultSet rs = s.getResultSet(); // get any ResultSet that came from our query
               if (rs != null)                     while ( rs.next() ){      
         System.out.println("Data from column_name: " + rs.getString(1) );
     s.close();
     con.close();
         catch (Exception err) {
         System.out.println("ERROR: " + err);
     }When i try this on the linux OS i get this error:
ERROR: java.sql.SQLException: [unixODBC][Driver Manager]Data source name not found, and no default driver specified

Thanks for the reply. :)
I've seen derby being used in some sample code but
what database does it access (file type). Don't think of a database as being a file type. A database isn't like Word or Excel file where one file correpsonds to one "enity". Each vendor has its own way of storing data. It might be one file per DB, or there might be no particular relation between files and DBs or tables. Some (Sybase, I think) even use their own file system.
Do i have
to use something like MySQL to create a database and
then query it with a derby driver?I've never used Derby, but I'd imagine it comes with tools to create a DB.
Also is their a way i can create a database in the
same way i can using MS Access, i'm looking for a
graphical user interface since i'm new to JDBC and
database connection.That depends on which tools/clients are available for the DB you want to work with.

Similar Messages

  • Java DataBase in NetBeans!!

    Hi there,
    can you help guy,
    I have the NetBeans IDE 4.1,
    Oracle 9,
    j2sdk1.4.0,
    and win xp (on standalone machine)
    I remember the old version of NetBeans, you can use Mounting FileSystem for jdbc\oracle\driver
    to use the OracleDriver
    but I get message error at compiler says that package jdbc.oracle.driver does not exist
    please I need help in who to do Mounting FileSystem or other way
    here is my code of java
    // Database application using Oracle and Java programming Language
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    import java.awt.event.*;
    import jdbc.sql.*
    import java.awt.*;
    public class OracleJavaCustomerWindow extends JFrame
    private JLabel labelCId,labelCName,labelCCity,labelCPhone;
    private JTextField textCId,textCName,textCCity,textCPhone;
    private JPanel labelPanel,buttonPanel,textAreaPanel,labelTextAreaPanel;
    private JTextArea outputArea;
    private JScrollPane scrollPane;
    private JButton buttonDisplay,buttonAdd,buttonModifyRecord,buttonUpdate,buttonDelete;
    private JButton buttonClear;
    private JTextField field1,field2,field3,field4;
    private JLabel label1,label2,label3,label4;
    private JPanel mixedPanel,mixedPanel2,fieldPanel1,fieldPanel2,fieldPanel3,fieldPanel4;
    static Connection sqlconn = null;
    // set up GUI with constrictor(IT IS A METHOD. EACHO CLASS AT LEST HAVE ONE)
    public OracleJavaCustomerWindow ()
    super("Display Oracle Data for Customers");
    try{
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              sqlconn= DriverManager.getConnection ("jdbc:oracle:oci:@Kawasaki", "scott", "tiger");
    catch(SQLException ex)
    System.out.println("SQLException:" + ex.getMessage() + "<BR>");     
    // add GUI components to container
    Container container = getContentPane();
    container.setLayout(new FlowLayout(FlowLayout.CENTER));
    // Build labelPanel
    labelCId = new JLabel(" Customer ID");
    labelCName = new JLabel("Customer Name");
         labelCCity = new JLabel("Customer City");
    labelCPhone = new JLabel("Customer Phone");
    labelPanel = new JPanel();
    labelPanel.setLayout(new FlowLayout(FlowLayout.CENTER,3,5));
         labelPanel.add(labelCId);
    labelPanel.add(labelCName);
    labelPanel.add(labelCCity);
    labelPanel.add(labelCPhone);
    // Build textAreaPanel
    outputArea = new JTextArea(10,30);
    outputArea.setEditable(false);
    scrollPane = new JScrollPane(outputArea);
    textAreaPanel = new JPanel();
    textAreaPanel.setLayout(new FlowLayout(FlowLayout.CENTER,3,5));
    textAreaPanel.add(scrollPane);
    // Build labelTextAreaPanel which contains labelPanel and textAreaPanel
    // to be ready for adding to container
    labelTextAreaPanel= new JPanel();
    labelTextAreaPanel.setLayout(new BorderLayout());
    labelTextAreaPanel.add(labelPanel,BorderLayout.NORTH);
    labelTextAreaPanel.add(textAreaPanel,BorderLayout.SOUTH);
    // Buld buttonPanel
    buttonDisplay = new JButton ("Display Table");
    buttonClear = new JButton ("Clear");
    buttonAdd = new JButton("Add New Record");
    buttonUpdate= new JButton("Display Record");
    buttonModifyRecord = new JButton("Modify Record");
    buttonDelete = new JButton("Delete Record");
    buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(6,1,10,5));
    buttonPanel.add(buttonAdd);
    buttonPanel.add(buttonUpdate);
    buttonPanel.add(buttonModifyRecord);
    buttonPanel.add(buttonDisplay);
    buttonPanel.add(buttonDelete);
    buttonPanel.add(buttonClear);
    // build fieldPanel1
    label1 = new JLabel("Customer Number");
    field1 = new JTextField(10);
    fieldPanel1 = new JPanel();
    fieldPanel1.setLayout(new FlowLayout(FlowLayout.CENTER,3,5));
    fieldPanel1.add(label1);
    fieldPanel1.add(field1);
    // build fieldPanel2
    fieldPanel2 = new JPanel();
    label2 = new JLabel("Customer Name");
    field2 = new JTextField(10);
    fieldPanel2.setLayout(new FlowLayout(FlowLayout.CENTER,3,5));
    fieldPanel2.add(label2);
    fieldPanel2.add(field2);
    // build fieldPanel3
    fieldPanel3 = new JPanel();
    label3 = new JLabel("Customer City");
    field3 = new JTextField(10);
    fieldPanel3.setLayout(new FlowLayout(FlowLayout.CENTER,3,5));
    fieldPanel3.add(label3);
    fieldPanel3.add(field3);
         // build fieldPanel4
    fieldPanel4 = new JPanel();
    label4 = new JLabel("Customer Phone");
    field4 = new JTextField(10);
    fieldPanel4.setLayout(new FlowLayout(FlowLayout.CENTER,3,5));
    fieldPanel4.add(label4);
    fieldPanel4.add(field4);
    // Build mixedPanel which contains fieldPanel1, fieldPanel2,fieldPanel3
    // to be ready for adding to container
    mixedPanel = new JPanel();
    mixedPanel.setLayout(new BorderLayout());
         mixedPanel.add(fieldPanel1,BorderLayout.NORTH);
    mixedPanel.add(fieldPanel2,BorderLayout.CENTER);
    mixedPanel.add(fieldPanel3,BorderLayout.SOUTH);
    mixedPanel2 = new JPanel();
    mixedPanel2.add(fieldPanel4,BorderLayout.SOUTH);
    // add all panels to the container
    container.add(mixedPanel);
    container.add(mixedPanel2);
    container.setBackground(Color.DARK_GRAY);
    container.add(labelTextAreaPanel);
         container.add(buttonPanel);
    //--------- Messages to communicate with different objects
    //----------- method to clear the outputarea
    buttonClear.addActionListener(
              // anonymous inner class
    new ActionListener()
    public void actionPerformed(ActionEvent event)
                        outputArea.setText("");
    }// actionPerformed
    }// anonymous inner class
    //--------- method to use button event--------------------
    buttonDisplay.addActionListener(
    //anonymous class
    new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        //Connection sqlca = null;
                   Statement sqlStatement = null;
                   ResultSet rset = null;
                   try{
                             //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                             //sqlca= DriverManager.getConnection ("jdbc:oracle:thin:@dbserver:1521:infs", "manzur", "manzur");
                             sqlStatement = sqlconn.createStatement ();
                             rset = sqlStatement.executeQuery ("select * from customers");
                             while (rset.next ()){
                                  String CUSTOMERID=rset.getObject(1).toString();
                                  String CUSTOMERNAME =rset.getObject(2).toString();
                                  String CUSTOMERCITY =rset.getObject(3).toString();
    String CUSTOMERPHONE =rset.getObject(4).toString();
                                  //String map=rset.getObject(4).toString();
                                  //String region=rset.getObject(5).toString();
                                  //System.out.println (id + "\t" + name + "\t" + loc );
                   outputArea.append(CUSTOMERID + "\t" + CUSTOMERNAME + "\t" + CUSTOMERCITY + "\t" + CUSTOMERPHONE + "\n" );
                             } // end while
                        }// end try
                        catch (SQLException ex)
                             System.out.println("SQLException:" + ex.getMessage() + "<BR>");
                        }// catch
    }// action performed
    } // anonymous inner class
    );// end addActionListener
    // ------ method to add Customers to the database
         buttonAdd.addActionListener(
         // anonymous inner class
    new ActionListener()
    public void actionPerformed(ActionEvent event)
    try{
                   Statement sqlStatement = null;
    ResultSet rtbookset = null;
    // create statement
    sqlStatement = sqlconn.createStatement();
    int CUSTOMERID = Integer.parseInt(field1.getText());
    String CUSTOMERNAME = field2.getText();
                   String CUSTOMERCITY = field3.getText();
    int CUSTOMERPHONE = Integer.parseInt(field4.getText());
              // create query
                   String insertquery = "INSERT INTO CUSTOMERS VALUES("
         + CUSTOMERID + "," + "'" + CUSTOMERNAME + "'," + "'" + CUSTOMERCITY + "'," + CUSTOMERPHONE + ")";
              // execute the query
                             sqlStatement.executeQuery(insertquery);
                             // clear the textfields
                             field1.setText("");
                             field2.setText("");
                             field3.setText("");
    field4.setText("");
              JOptionPane.showMessageDialog(null,"Record added");                     
    }// try
    catch(SQLException ex)
                        System.out.println("Record exists :" + ex.getMessage() + "<BR>");
                   }// catch
    }// actionPerformed
    }// anonymous inner class
    //--------- method to use buttonUpdate event--------------------
    buttonUpdate.addActionListener(
    //anonymous class
    new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        //Connection sqlconn = null;
                   Statement sqlStatement = null;
                   ResultSet rset = null;
    int CUSTOMER_ID = Integer.parseInt(field1.getText());
                   try{
                             //int CUSTOMER_ID = Integer.parseInt(field1.getText());
              //String d_name = field2.getText();
                             //String d_loc = field3.getText();
                             //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                             //sqlca= DriverManager.getConnection ("jdbc:oracle:thin:@dbserver:1521:infs", "manzur", "manzur");
                             sqlStatement = sqlconn.createStatement ();
                             rset = sqlStatement.executeQuery ("select * from CUSTOMERS where CUSTOMER_ID =" + CUSTOMER_ID);
                             rset.next ();
                             //int id=rset.getInt("DEPTNO");
                             String CUSTOMERID = rset.getObject(1).toString();          
                             String CUSTOMERNAME=rset.getString("CUSTOMER_NAME");
                             String CUSTOMERCITY=rset.getString("CUSTOMER_CITY");
    String CUSTOMERPHONE=rset.getString("CUSTOMER_PHONE");
    field1.setText(CUSTOMERID);
                             field2.setText(CUSTOMERNAME);
                             field3.setText(CUSTOMERCITY);
    field4.setText(CUSTOMERPHONE);
    //buttonUpdate.setEnabled(false);
    //buttonModifyRecord.setEnabled(true);
    //rset.close();
                        }// end try
                        catch (SQLException ex)
                             JOptionPane.showMessageDialog(null,"No Record found with CUSTOMER ID :" + CUSTOMER_ID );
                             //System.out.println("SQLException:No record found" + ex.getMessage() + "<BR>");
                        }// catch
    }// action performed
    } // anonymous inner class
    );// end addActionListener
    //---------Method to modify record------------------------------------
    buttonModifyRecord.addActionListener(
    //anonymous class
    new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        //Connection sqlconn = null;
                   Statement sqlStatement = null;
                   ResultSet rset = null;
                   try{
                             //int dept_no = Integer.parseInt(field1.getText());
              //String d_name = field2.getText();
                             //String d_loc = field3.getText();
                             //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                             //sqlca= DriverManager.getConnection ("jdbc:oracle:thin:@dbserver:1521:infs", "manzur", "manzur");
                             sqlStatement = sqlconn.createStatement ();
    int CUSTOMERID = Integer.parseInt(field1.getText());
              String CUSTOMERNAME = field2.getText();
                             String CUSTOMERCITY = field3.getText();
    int CUSTOMERPHONE = Integer.parseInt(field4.getText());
                             String updatequery = "UPDATE CUSTOMERS SET CUSTOMER_NAME = " + "'" + CUSTOMERNAME + "',"
    + " CUSTOMER_CITY = " + "'" + CUSTOMERCITY + "'," + " CUSTOMER_PHONE = " + CUSTOMERPHONE
    + " Where CUSTOMER_ID = " + CUSTOMERID;
              // execute the query
                             sqlStatement.executeQuery(updatequery);
                             // clear the textfields
                             field1.setText("");
                             field2.setText("");
                             field3.setText("");
    field4.setText("");
              JOptionPane.showMessageDialog(null,"Record modified");
    //buttonUpdate.setEnabled(true);
    //buttonModifyRecord.setEnabled(false);
                        }// end try
                        catch (SQLException ex)
                             System.out.println("SQLException:" + ex.getMessage() + "<BR>");
                        }// catch
    }// action performed
    } // anonymous inner class
    );// end addActionListener
    //---------Method to modify record------------------------------------
    buttonDelete.addActionListener(
    //anonymous class
    new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        //Connection sqlca = null;
                   Statement sqlStatement = null;
                   ResultSet rset = null;
                   try{
                             //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                             //sqlca= DriverManager.getConnection ("jdbc:oracle:thin:@dbserver:1521:infs", "manzur", "manzur");
                             sqlStatement = sqlconn.createStatement ();
    int CUSTOMERID = Integer.parseInt(field1.getText());
              //String d_name = field2.getText();
                             //String d_loc = field3.getText();
                             String deletequery = "DELETE from CUSTOMERS "
    + " Where CUSTOMER_ID = " + CUSTOMERID;
              // execute the query
                             sqlStatement.executeQuery(deletequery);
                             // clear the textfields
                             field1.setText("");
                             field2.setText("");
                             field3.setText("");
    field4.setText("");
              JOptionPane.showMessageDialog(null,"Record Deleted");
    //buttonUpdate.setEnabled(true);
    //buttonModifyRecord.setEnabled(false);
                        }// end try
                        catch (SQLException ex)
                             System.out.println("SQLException:" + ex.getMessage() + "<BR>");
                        }// catch
    }// action performed
    } // anonymous inner class
    );// end addActionListener
    // specify the size of the window
    setSize(800,500);
    show();
    }// constructor
    public static void main(String args[]) throws IOException{
    OracleJavaCustomerWindow application = new OracleJavaCustomerWindow();
    application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }// main
    } // class OracleJavaWindow
    // exceptions classes
    // inserFailedException is a general exception for
    // SQL insert problems
    /*class insertFailedException extends SQLException
    public insertFailedException(String reason)
         super(reason);
    public insertFailedException(String reason)
         super();
    }*/

    Sorry guys here is the correction of details i have provided
    the Error message tells me that
    package oracle.jdbc.driver does not exist
    and the folder I used to do Mounting SystemFile for was
    C:\Oracle\jdbc\lib\classes12

  • What   the   Enviroment  required  for java databases programs?

    Hi guys
    What the enviroment required for java databases programs?
    If I have oracle of version 9i and java 1.4.1 platform
    do I need Jdeveloper platform ?

    What the enviroment required for java databases programs?What do you mean by "environment"?
    f I have oracle of version 9i and java 1.4.1 platformYou just need to download Oracle's 9i JDBC driver (ojdbc14.jar) and put that in your CLASSPATH. Then write JDBC code to connect to Oracle and issue SQL commands.
    do I need Jdeveloper platform ?No, JDeveloper is an IDE. Not required.
    Why Java 1.4.1? We're up to Java 6 now. You're two major versions of the JDK behind.
    %

  • Re: Java Database

    Hello,
    I'll like some advice on the topic mentioned above. I'm a beginner of java programming and have elementry knowledge about java. I'll like to know how is it possible to input the list of data in Excel format into Java Database Connectivity and how am I able to extract out the info. that I'll need. Like say the columns/field on designation and name. How am I able to extract the data and change it like to delete or edit the info.??
    Pls. explain it step-by-step your patience is really appreciated. Thanks and God Bless.

    You should search Javaworld for "Excel" - they've had a few articles about using JDBC to access Excel. As far as I recall, though, you can't alter data in Excel through JDBC, only read it.
    http://www.javaworld.com
    There are other ways of getting at Excel data through Java but they're not very good either (unless you want to use a Java-COM bridge).

  • FLEX+CAIRNGORM+BLAZEDS+JAVA+DATABASE

    A very simple example for FLEX+CAIRNGORM+BLAZEDS+JAVA+DATABASE.
    http://vijaaay.limewebs.com/forum/viewthread.php?tid=26&extra=page%3D1
    or
    visit  www . flexindia . tk >> Flex Examples
    The attachment zip contains the source  files[ FLEX and JAVA ] and Readme.txt which helps you to setup this  example.
    Regards,
    Vijay

    Yeah i registered, but i couldn't find zip file. Could you please tell me where is that example
    Thanks,
    ApacheFlex.

  • Java Export hangs at 'Export Java Database Content' phase

    Hi All -
    As part of system refresh activities,we are doing Java Export from our Production system(PE1) & we will use that export to import it in our Qulaity system(QE1).So while doing Java Export,the export gets stucks/hangs at 'Export Java Database Content" phase which is the last phase in Java Export steps.We have been doing this task since many years  & we did not encounter this kind of issue ever.There are no errors or at least warnings in the logs like sapinst_dev.log,jload.log,jload.java.log,sapinst.log etc.Our environment details are as below
    EP -6.0
    OS - AIX 5.3,64 BIT
    DB - DB2 UDB
    SAPINST version - 642
    Java version is below
    pe1adm> java -fullversion
    java full version "J2RE 1.4.2 IBM AIX 5L for PowerPC (64 bit JVM) build caix64142ifx-20100918 (SR13 FP6)"
    Please note with the SAPINST we are using currently, the exports of remaining systems in EP & other solutions like ECC,CR,SRM,XI,BI are successfull.We are having this issue only in PE1.Looks like some bug in code.So request the experts in this forum to please take a look at it & provide me with solution if any of you have faced the similar situation.
    Thanks & regards,
    Nagendra.

    Thank you for your reply Subhash.The below is the last entry in jload.log.It is at EP_ATTR_HEADERS.While doing the Java export,we asked our DBA to monitor to find out any errors at DB side.He monitored and said that no deadlocks or no infinite loops are found.Also he said that he cannot create index for that too because it is trying to do select *.In our first 2 or 3 attempts it used to hang at CA_PRODUCTS meta data exported,CA_PROPERTY meta data exported.Now here.Our DBA said that EP_ATTR_HEADERS has 1.4M rows.We tried to bounce the entire system also,but no luck.We have the same issue.Peculiar thing is we dont see any errors or warnings in the logs.
    23.06.11 09:54:21 com.sap.inst.jload.Jload dbExport
    INFO: EP_ATTR_DEFS exported (6 rows)
    23.06.11 09:54:21 com.sap.inst.jload.Jload dbExport
    INFO: EP_ATTR_HEADERS meta data exported
    Please let me know if you need any further info in resolving this issue.
    Thanks & regards,
    Nagendra.

  • Free Java Database?

    I'm looking for a free Java database. A few recommended MySQL, but after going to their site, it looks they charge and aren't free.
    The database would be used in my own commercial product that would be sold to stores. Perhaps MySQL is just free for development? Anyone know?
    If anyone knows of other free Java databases that would be appreciated too.
    Thanks,

    You can always check out Postgres. And I'm not sure if they bundle it anymore, but there used to be a pure-Java database called Cloudscape (I think).
    - saish
    "My karma ran over your dogma." - Anon

  • Installation hangs at step 18-Load Java Database Content

    Hi,
    I am trying to install NW04s WAS. No matter, how many times I uninstall & reinstall(after properly clearing registry entries by running supplied cleaner.exe,stop the Xserver services if running), the installation just doesn't progress at step 18- 'Load Java Database Content'.
    Here is what I did:
    I read other threads and checked from the SAP Management Console if the DB is online. It is online and the DB is not full.But the log and Data states are shown as 0%.
    Next, according to some threads I  removed the JDK 1.4.2_15 and installed 1.4.2_12 version.No use.
    I couldn't find any other threads with suggestions which could be of help to my issue.
    I am using windows vista home premium.I get some errors during installation but not during step 18. so I am not sure whether to consider those errors for this issue.
    <u>Following is the phase information:</u>
    PHASE 2007-09-22 15:40:18
    Prepare the installation program.
    WARNING[E] 2007-09-22 15:43:05
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    WARNING[E] 2007-09-22 15:44:47
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    WARNING[E] 2007-09-22 15:45:50
    Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
    ERROR 2007-09-22 15:50:42
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPOsCol).
    ERROR 2007-09-22 15:51:12
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_01).
    ERROR 2007-09-22 15:51:12
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_01).
    ERROR 2007-09-22 15:51:12
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_00).
    ERROR 2007-09-22 15:51:12
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_00).
    WARNING 2007-09-22 15:52:11
    While copying files to 'C:\usr\sap\J2E\SCS01\exe': source file 'C:\usr\sap\J2E\SYS\exe\run/icudt26.dll' not found.
    WARNING 2007-09-22 15:52:12
    While copying files to 'C:\usr\sap\J2E\JC00\exe': source file 'C:\usr\sap\J2E\SYS\exe\run/icudt26.dll' not found.
    ERROR 2007-09-22 15:52:31
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPOsCol).
    WARNING 2007-09-22 15:54:12
    Execution of the command "C:\usr\sap/J2E/JC00/igs/bin/igswd.exe 'C:\usr\sap\J2E\JC00\igs' '-c' '-tracelevel=1' '-mux=Karthik-PC,40000' '-listenerhttp=40080' '-portwatcher=40001' '-portwatcher=40002'" finished with return code 1. Output:
    PHASE 2007-09-22 16:03:03
    Deploying SDAs (using SDM and SAP J2EE Engine).
    PHASE 2007-09-22 16:03:22
    Deploying SDAs (using SDM and SAP J2EE Engine).
    PHASE 2007-09-22 16:04:29
    Deploying SDAs (using SDM and SAP J2EE Engine).
    PHASE 2007-09-22 16:05:18
    Deploying SDAs (using SDM and SAP J2EE Engine).
    PHASE 2007-09-22 16:05:59
    SAP J2EE Engine
    PHASE 2007-09-22 16:06:09
    JLoad Run
    I have spent a lot of time to have this installed. Please somebody help.
    Thanks
    Karthik

    Hi Raja and Anatoliy Misyura  ,
    Thanks a lot for taking time to reply to my issue.
    1)I completely unistalled the previous version by running clearner.exe and stopping the services,removing sapdb folder etc.,
    2)Then I disabled my antivirus,firewall etc.,
    3)Installed jdk 1.4.2_11(after removed the previously tried version 1.4.2_12
    4)Ran the SAPInst installer
    But unfortunately still the installer stops at the same step!
    Don't know what's going wrong.....
    Raja- Can you tell me what is the windows OS version you have? Mine is home premium.
    Thanks
    Karthik
    Can you guys let me know if you have any other suggestions

  • JDBC is the Acronym of Java Database Connectivity - Yes / No?

    Hi,
    JDBC is the Acronym of Java Database Connectivity - Yes / No?
    I am little bit confused. I got this question in an Inteview.
    I support yes. But some of the compitiors say no.
    What will the real answer?

    Really? Even Sun contradicts themselves here:
    (2002) http://java.sun.com/javase/6/docs/technotes/guides/jdbc/
    and (more importantly) here:
    http://java.sun.com/docs/glossary.html#JDBC
    although here:
    (2001) http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/intro.html
    I think it is simply silly for the latter to state that "JDBC is the trademarked name and is not an acronym" -- Oh really? JDBC doesn't stand for anything? It is all caps just because it is a trademark then? hmmm.
    I'm certain the real answer of what it stands for may have been lost long ago. However, I doubt that the interviewer meant the question to be a trick and was looking for "Java DataBase Connectivity"
    For every instance that you find that it doesn't stand for anything, I can show you 2 instances (from Sun or an employee) where they use "Java Database Connectivity (JDBC)".
    P.S. Ryan Craig may be the final authority on this...

  • How we build Java Database Connectivity for Oracle 8i Database

    Can any one send me a sample code for Java Database Connectivity for Oracle 8i Database
    it will be a grat help
    Thanks & Regards
    Rasika

    You don't need a DSN if you use Oracle's JDBC driver.
    You didn't read ANY of the previous replies. What makes you think this one willk help? Or any instruction, for that matter?
    Sounds like you just want someone to give it to you. OK, I'll bite, but you have to figure out the rest:
    import java.sql.*;
    import java.util.*;
    * Command line app that allows a user to connect with a database and
    * execute any valid SQL against it
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        public static final String DEFAULT_DRIVER   = "com.mysql.jdbc.Driver";
        public static final String DEFAULT_URL      = "jdbc:mysql://localhost:3306/hibernate";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    System.out.println("sql     : " + sql);
                    System.out.println("driver  : " + driver);
                    System.out.println("url     : " + url);
                    System.out.println("username: " + username);
                    System.out.println("password: " + password);
                    db = new DataConnection(driver, url, username, password);
                    System.out.println("Connection established");
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Get Driver properties
         * @param database URL
         * @return list of driver properties
         * @throws SQLException if the query fails
        public List getDriverProperties(final String url)
            throws SQLException
            List driverProperties   = new ArrayList();
            Driver driver           = DriverManager.getDriver(url);
            if (driver != null)
                DriverPropertyInfo[] info = driver.getPropertyInfo(url, null);
                if (info != null)
                    driverProperties    = Arrays.asList(info);
            return driverProperties;
         * Clean up the connection
        public void close()
            close(this.connection);
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue;
            Statement statement = null;
            ResultSet rs = null;
            try
                statement = this.connection.createStatement();
                boolean hasResultSet    = statement.execute(sql);
                if (hasResultSet)
                    rs                      = statement.getResultSet();
                    ResultSetMetaData meta  = rs.getMetaData();
                    int numColumns          = meta.getColumnCount();
                    List rows               = new ArrayList();
                    while (rs.next())
                        Map thisRow = new LinkedHashMap();
                        for (int i = 1; i <= numColumns; ++i)
                            String columnName   = meta.getColumnName(i);
                            Object value        = rs.getObject(columnName);
                            thisRow.put(columnName, value);
                        rows.add(thisRow);
                    returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            finally
                close(rs);
                close(statement);
            return returnValue;
         * Close a database connection
         * @param connection to close
        public static final void close(Connection connection)
            try
                if (connection != null)
                    connection.close();
                    connection = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a statement
         * @param statement to close
        public static final void close(Statement statement)
            try
                if (statement != null)
                    statement.close();
                    statement = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a result set
         * @param rs to close
        public static final void close(ResultSet rs)
            try
                if (rs != null)
                    rs.close();
                    rs = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a database connection and statement
         * @param connection to close
         * @param statement to close
        public static final void close(Connection connection, Statement statement)
            close(statement);
            close(connection);
         * Close a database connection, statement, and result set
         * @param connection to close
         * @param statement to close
         * @param rs to close
        public static final void close(Connection connection,
                                       Statement statement,
                                       ResultSet rs)
            close(rs);
            close(statement);
            close(connection);
    }%

  • Login codes using java database (validates with Microsoft Access File)

    hi all pro-programmer, can you show me the code to login with the username and password using java database. When the user enters the username and password in the login page then it will go to the requested page. may i know how to do it?

    no one will give you complete code.
    i'll lay out the pieces for you, though:
    (1) start with a User object. give it username and password attributes.
    (2) write a UserDAO interface with CRUD operations for a User object.
    (3) write a UserDAOImpl for your Microsoft Access database
    (4) write an AuthenticationService interface
    (5) write an implementation of the AuthenicationService that works with the UserDAO to authorize a User.
    Use a servlet to accept request from your login page and pass it off to the service. Voila.
    PS - Here's skeleton to start with. UI, servlet, and controller are your responsibility:
    package model;
    public class User implements Serializable
        private String username;
        private String password;
        public User(String u, String p)
            this.username = u;
            this.password = p;
        public String getUsername() { return username; }
        public String getPassword() { return password; }
    public interface UserDAO
        public User findByUsername(String username);
        public void saveOrUpdate(User user);
        public void delete(User user);
    public class UserDAOImpl implements UserDAO
        private Connection connection;
        public UserDAOImpl(Connection connection)
            this.connection = connection;
        public User findByUsername(String username)
            String password = "";
            // logic for querying the database for a User
            return new User(username, password);
        public void saveOrUpdate(User user)
            // save or update a User
        public void delete(User user)
            // delete a User
    public interface AuthenticationService
        public boolean isAuthorized(String username);
    public class AuthenticationServiceImpl implements AuthenticationService
        private UserDAO userDAO;
        public AuthenticationServiceImpl()
            // Create a database connection here and the UserDAO, too.
        public boolean isAuthorized(String username)
            boolean isAuthorized = false;
            // Add logic to do the database query and decide if the username is authorized
            return isAuthorized;       
    }

  • Java Database Authentication

    Hi :
    I work on web application depends on EJB 3.0 and ADF Faces.
    I don't want to use basic form authentication and authorizations for users...!!??
    I heard about Java Database authentication and authorization...??
    How can I use it...?? somebody helps me please...!!!
    Send me any tutorial or anything related with it..
    Thanks

    Hi,
    and the database authentication uses JAAS LoginModules with basic or form based authentication. See the oC4J Security guide
    Frank

  • Creating a Java Database(derby) using DBFactory

    Hi
    I want to create a Java Database (derby) when running Main. My main program is parsing driver, url, user id and user password to the DBFactory class. I am using netbeans 5.5 with the Sun Java System Application Server and the Java DB server is up and running.
    When I run the main program I get no output and no errors. If you will take a look at the main class below and check for novice errors it would much appreciated.
    public class Main {
    private String driver = "org.apache.derby.jdbc.ClientDriver";
    private String url = "jdbc:derby://localhost:1527/";
    private String uid = "user";
    private String pwd = "user";
    private Connection con;
    public Main() {
    try {
    DBFactory db = new DBFactory(driver, url + "JavaDBTest", uid, pwd);
    con = db.getConnection();
    HashMap metaData = getMetaData();
    Iterator meta = metaData.entrySet().iterator();
    while (meta.hasNext()) {
    Map.Entry entry = (Map.Entry) meta.next();
    System.out.println(
    (String)entry.getKey() + ": " + (String)entry.getValue());
    db.createDB("JavaDBTest");
    Statement st = con.createStatement();
    ResultSet res = st.executeQuery("show tables");
    while (res.next()) {
    System.out.println(res.getString(1));
    st.executeUpdate("insert into JavaDBTest(name,phone) " +
    "values('donald duck', '12345678')");
    st.executeUpdate("insert into JavaDBTest(name,phone) " +
    "values('mickey mouse', '87654321')");
    res = st.executeQuery("select * from JavaDBTest");
    while (res.next()) {
    System.out.println(
    res.getString("name") + " " + res.getString("phone"));
    int i = st.executeUpdate("delete from JavaDBTest");
    System.out.println("Rows deleted: " + i);
    db.dropDB("JavaDBTest");
    catch (ClassNotFoundException cnfe) {
    System.err.println(cnfe.getMessage());
    catch (SQLException sqle) {
    System.err.println(sqle.getMessage());
    }

    add the main entry method to your progam :
    public class Main {
    private String driver = "org.apache.derby.jdbc.ClientDriver";
    private String url = "jdbc:derby://localhost:1527/";
    private String uid = "user";
    private String pwd = "user";
    private Connection con;
    public Main() {
    try {
    DBFactory db = new DBFactory(driver, url + "JavaDBTest", uid, pwd);
    con = db.getConnection();
    HashMap metaData = getMetaData();
    Iterator meta = metaData.entrySet().iterator();
    while (meta.hasNext()) {
    Map.Entry entry = (Map.Entry) meta.next();
    System.out.println(
    (String)entry.getKey() + ": " + (String)entry.getValue());
    db.createDB("JavaDBTest");
    Statement st = con.createStatement();
    ResultSet res = st.executeQuery("show tables");
    while (res.next()) {
    System.out.println(res.getString(1));
    st.executeUpdate("insert into JavaDBTest(name,phone) " +
    "values('donald duck', '12345678')");
    st.executeUpdate("insert into JavaDBTest(name,phone) " +
    "values('mickey mouse', '87654321')");
    res = st.executeQuery("select * from JavaDBTest");
    while (res.next()) {
    System.out.println(
    res.getString("name") + " " + res.getString("phone"));
    int i = st.executeUpdate("delete from JavaDBTest");
    System.out.println("Rows deleted: " + i);
    db.dropDB("JavaDBTest");
    catch (ClassNotFoundException cnfe) {
    System.err.println(cnfe.getMessage());
    catch (SQLException sqle) {
    System.err.println(sqle.getMessage());
    public static void main(String[] args) {
       new Main();
    }then run your program again and post the errors message.
    hth

  • Portal Install Fails During "Load Java Database Content"

    Hi,
    I'm installing our production enterprise portal and it is failing on
    the following step:
    "Load Java Database Content"
    When I load at the jload.log I see the following error message:
    20.06.06 14:11 com.sap.inst.jload.Jload main
    INFO: Jload -sec
    EPP,jdbc/pool/EPP,D:\usr\sap\EPP\SYS\global/security/data/SecStore.properties,D:\usr\sap\EPP\SYS\global/security/data/SecStore.key -dataDir
    Z:/NW04PortalCDs/DVD_JAVA\J2EE_OSINDEP\J2EE-ENG/JDMP -job C:\Program
    Files\sapinst_instdir/IMPORT.XML -log C:\Program
    Files\sapinst_instdir/jload.log
    20.06.06 14:11 com.sap.inst.jload.Jload main
    SEVERE: couldn't connect to DB
    java.sql.SQLException: [SAP NetWeaver][SQLServer JDBC Driver][SQLServer]Login failed for user 'SAPEPPDB'. Reason: Not associated with a trusted
    SQL Server connection.
    Our landscape is as follows:
    production portal server - serverA
    production datbase instance (clustered) - serverB
    production database server (cluster) - serverB(virtual name)The portal is sharing a database with our R3 production server.
    I've noticed that the user SAPEPPDB exists in the database as a windows
    user and I've given that user all roles in the database but it is still
    unable to connect.
    Please help.
    Regards,
    Jeff

    Did you get an answer back on this? I am getting the same problem

  • Loading Java Sneak Preview freezes at Load Java Database

    I have tried installing the java sneak preview on two different machines and it freezes everytime at Load Java Database. I searched the form and found a similiar post with no response. Has anyone had this problem or any ideas.
    1st Box was WinXp 1gig ram p42.8
    2nd Box was Win2003 1gig p41.8

    Agustin,
    Were you able to solve your situation ?
    I have the same situation, I have an ABAP NW2004s (v7.00 SP8) installed and working on my PC.  I am trying to install the Java NW2004s FULL  on the same PC, and after entering the location for the JCE files, the setup displays message:
    Collecting information about installed SAP systems: checking SAP service SAPNSP_00...
    then an error comes up, the log has the following :
    ERROR 2006-11-16 15:03:13
    FJS-00003  TypeError: this._name has no properties (in script NW_Java_OneHost|ind|ind|ind|ind, line 8987: ???)
    ERROR 2006-11-16 15:03:13
    FCO-00011  The step collect with step key |NW_Java_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_GetSidNoProfiles|ind|ind|ind|ind|1|0|collect was executed with status ERROR .
    I am installing on a PC WIn XP SP2, with 1GB of RAM, and have 16.7 GB available on the Hard Disk.
    Please let me know, thanks

  • Error Installing at phase 22, load Java Database Content

    I am using XP SP1. I got the error at phase 22, load Java Database Content. The following is the log file.
    Please help.
    James
    SAPinst is getting started.
    Please be patient ...
    guiengine: login in process.
    ERROR      2005-09-03 06:00:14 [ianxbservi.hpp:235]
               CServiceHandle::Open(SAPOsCol)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPOsCol).
    ERROR      2005-09-03 06:00:44 [ianxbservi.hpp:235]
               CServiceHandle::Open(SAPJ2E_01)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_01).
    ERROR      2005-09-03 06:00:44 [ianxbservi.hpp:235]
               CServiceHandle::Open(SAPJ2E_01)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_01).
    ERROR      2005-09-03 06:00:44 [ianxbservi.hpp:235]
               CServiceHandle::Open(SAPJ2E_00)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_00).
    ERROR      2005-09-03 06:00:44 [ianxbservi.hpp:235]
               CServiceHandle::Open(SAPJ2E_00)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPJ2E_00).
    ERROR      2005-09-03 06:01:32 [ianxbservi.hpp:235]
               CServiceHandle::Open(SAPOsCol)
    FSL-06002  Error 1060 (The specified service does not exist as an installed service.
    ) in execution of a 'OpenService' function, line (255), with parameter (SAPOsCol).
    ERROR      2005-09-03 06:53:19
               CJSlibModule::writeError_impl()
    CJS-20065  Execution of JLoad tool 'C:\j2sdk1.4.2_08/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;c:\sapdb\programs\runtime\jar\sapdbc.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jce_export.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jsse.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_smime.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_ssl.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'J2E,jdbc/pool/J2E,C:\usr\sap\J2E\SYS\global/security/data/SecStore.properties,C:\usr\sap\J2E\SYS\global/security/data/SecStore.key' '-dataDir' 'C:/@SAP/NW04SneakPrevJavaSP11/NW04SneakPrevJavaSP11/NWSneakPreviewSP11/SAP_NetWeaver_04_SR_1_Installation_Master_DVD__ID__51030843\IM01_NT_I386\..\..\SneakPreviewContent\JDMP' '-job' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/IMPORT.XML' '-log' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log'' aborts with returncode 2. Check 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log' and 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.java.log' for more information.
    ERROR      2005-09-03 11:56:24
               CJSlibModule::writeError_impl()
    CJS-20065  Execution of JLoad tool 'C:\j2sdk1.4.2_08/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;c:\sapdb\programs\runtime\jar\sapdbc.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jce_export.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jsse.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_smime.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_ssl.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'J2E,jdbc/pool/J2E,C:\usr\sap\J2E\SYS\global/security/data/SecStore.properties,C:\usr\sap\J2E\SYS\global/security/data/SecStore.key' '-dataDir' 'C:/@SAP/NW04SneakPrevJavaSP11/NW04SneakPrevJavaSP11/NWSneakPreviewSP11/SAP_NetWeaver_04_SR_1_Installation_Master_DVD__ID__51030843\IM01_NT_I386\..\..\SneakPreviewContent\JDMP' '-job' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/IMPORT.XML' '-log' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log'' aborts with returncode 2. Check 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log' and 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.java.log' for more information.
    ERROR      2005-09-03 11:56:40
               CJSlibModule::writeError_impl()
    CJS-20065  Execution of JLoad tool 'C:\j2sdk1.4.2_08/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;c:\sapdb\programs\runtime\jar\sapdbc.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jce_export.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jsse.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_smime.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_ssl.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'J2E,jdbc/pool/J2E,C:\usr\sap\J2E\SYS\global/security/data/SecStore.properties,C:\usr\sap\J2E\SYS\global/security/data/SecStore.key' '-dataDir' 'C:/@SAP/NW04SneakPrevJavaSP11/NW04SneakPrevJavaSP11/NWSneakPreviewSP11/SAP_NetWeaver_04_SR_1_Installation_Master_DVD__ID__51030843\IM01_NT_I386\..\..\SneakPreviewContent\JDMP' '-job' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/IMPORT.XML' '-log' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log'' aborts with returncode 2. Check 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log' and 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.java.log' for more information.
    ERROR      2005-09-03 12:00:42
               CJSlibModule::writeError_impl()
    CJS-20065  Execution of JLoad tool 'C:\j2sdk1.4.2_08/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;c:\sapdb\programs\runtime\jar\sapdbc.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jce_export.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jsse.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_smime.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_ssl.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'J2E,jdbc/pool/J2E,C:\usr\sap\J2E\SYS\global/security/data/SecStore.properties,C:\usr\sap\J2E\SYS\global/security/data/SecStore.key' '-dataDir' 'C:/@SAP/NW04SneakPrevJavaSP11/NW04SneakPrevJavaSP11/NWSneakPreviewSP11/SAP_NetWeaver_04_SR_1_Installation_Master_DVD__ID__51030843\IM01_NT_I386\..\..\SneakPreviewContent\JDMP' '-job' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/IMPORT.XML' '-log' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log'' aborts with returncode 2. Check 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log' and 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.java.log' for more information.
    ERROR      2005-09-03 12:00:47
               CJSlibModule::writeError_impl()
    CJS-20065  Execution of JLoad tool 'C:\j2sdk1.4.2_08/bin/java.exe '-classpath' './sharedlib/antlr.jar;./sharedlib/exception.jar;./sharedlib/jddi.jar;./sharedlib/jload.jar;./sharedlib/logging.jar;./sharedlib/offlineconfiguration.jar;./sharedlib/opensqlsta.jar;./sharedlib/tc_sec_secstorefs.jar;c:\sapdb\programs\runtime\jar\sapdbc.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jce_export.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_jsse.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_smime.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/iaik_ssl.jar;C:/usr/sap/J2E/SYS/global/security/lib/tools/w3c_http.jar' '-showversion' '-Xmx512m' 'com.sap.inst.jload.Jload' '-sec' 'J2E,jdbc/pool/J2E,C:\usr\sap\J2E\SYS\global/security/data/SecStore.properties,C:\usr\sap\J2E\SYS\global/security/data/SecStore.key' '-dataDir' 'C:/@SAP/NW04SneakPrevJavaSP11/NW04SneakPrevJavaSP11/NWSneakPreviewSP11/SAP_NetWeaver_04_SR_1_Installation_Master_DVD__ID__51030843\IM01_NT_I386\..\..\SneakPreviewContent\JDMP' '-job' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/IMPORT.XML' '-log' 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log'' aborts with returncode 2. Check 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.log' and 'C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_COPY\ONE_HOST/jload.java.log' for more information.
    Exit status of child: 1

    Yes, you need to download the new installer or you need to change your system setting timezone settings to GMT+1. I faced this problem too but once you are in the middle of installing it, there will be something somewhere missing. The best thing to do is to uninstall the application and unmount the database instance. Uninstall utility 'UNINSTSAP.EXE' is available in the "C:\usr\sap\J2E\JC00" location.
    Look at the steps mentioned in the following post by Prakash Gowda.
    Error during Load Java Database content at phase 18
    Hope this helps and please don't forget to close the thread if answered.
    Srinivas

Maybe you are looking for

  • Problem during ORACLE 9.2.0 on HP-UX 11.11

    Hi, I am installing Oracle 9.2.0 on HP-UX 11.11. During the start of the isntallation in File locations Destination and Path" in Destination i write "ORACLE_HOME" in path i write " /opt/oracle/product/9.2.0" Now when i write product in path it change

  • Takes a long time to upload a publish to folder site

    i have charter.net internet service...3mb high speed internet service... i recently built a site that is approximately 19mb...when i use either fetch or captain ftp, it takes a long time to upload (hours sometimes)...most of the time is gets hung up

  • Tecra S2: DVD burning issue

    Hi to everybody, we are in 4 and we have about the same problem when we try to write a DVD with ours notebooks, using nero6 the error message usually is "there was a problem in powe supply" or "trace destination not valid" (I try to translate from it

  • Help saving my progress with iBooks Author

    I am having trouble to save my work on iBooks Author.  Every time I add something to the text or edit it content the computer automatically saves another copy of the same text with  the changes or corrections.  Just to give you an idea I am working o

  • Private messaging...in a messenger

    hi friends... i am developing a lan messenger currently......but i am facing a problem...i hav developed the conference type messenger till now..means in one window all users online can send theie messages...now i want to go for sending the private m