Java and Ms access conection and modification

Hello everyone,
I have two problems:
1. I need to create tool that will create a test database and later on to populate it. The first problem is connected with creating the file. I do not know whether this is possible or not, but I want to create a file in which later on I can create tables and insert some values in the tables.
2. In this problem I want to input meaningfull values in the database columns? I do not know how this could be done.
Also at the moment I am have created the application and connect the application with a database file created from MS Access, with ODBC driver through the Control Panel.. What I mean to do is to create dinamicaly file according to the user input, and to populate that file with meaningfull data(values) later on. This is all done automatically, the user do not have to insert the values in the database, but through For loop at the moment I am inserting some kind of values, rows in the database, according the users input.
Any tips and help regarding any of the two above problems will be appreciated.
Thanks to everyone,
Borce.

Thanks for the reply. How do you mean to make a copy
of a "empty" file? From the command line....
copy empty.db mystuff.db
In your java code you do the same.
To create one file with MS Access
and than to use the copy of this file? If this is
what you mean thanks a lot, I thought that idea, but
I did had time to work on it. Yes that is one way,
and I will check whether it will work, if the user
changes the name of the file into something else.
That is the only way unless you want to use JNI and OLE (and I am only guessing that it is possible to do it that way.)
Also I have one more question, is it possible to use
the file, what I mean by use is to create table in it
or to insert values if I have not set this file to be
the database file in the Control Panel? Search for "DSN-less" connection strings for MS Access in this forum. The url must be exact or it will not work.
>
For the second problem, what I mean by meaningfull
data is that if the name of the column is "Name" to
put some kind of characters or to input from file. I
beleave that the meaningfull data. :) Still doesn't mean anything.
If you just want to populate the initial database with a small amount of data then just do it manually. Then that is what you use for the initial copy.
If it is more complicated then you can either use the MS Access import feature in the GUI (and still do the above copy) or you write some java code, perhaps getting the data from a file or not (up to you.)

Similar Messages

  • Java and MS-Access: Login Authentication trough SQL

    Hi all,
    I am currently new to the world of java and would like to ask something for a school project.
    We have an MS-Access database setup which we want to use as an login-database.
    We can select from the tables in the database using a standard SQL query, and print out the output, but we do not know how to combine the java-string "UserID" and "Corrpass" field to compare them with the database to check if the entered login is correct.
    I know this question is a little bit on the SQL side, but could you please help me? The code for printing out Usernames was founfdon the bottom of this webpage:
    http://www.ster.be/java/java6.html
    Our Microsoft Access Database Layout:
    MS-Access Database
    Table: Users
    | UserID -AutoNumber : UserID (Login code)
    | Corrpass -text :The Correct Password for the above UserID
    | UserVoornaam -text : First name
    | UserAchternaam -text : Surname
    All help/welcome/advise/flaming posts are welcome.

    Hi all,
    I am currently new to the world of java and would like to ask something for a school project.
    We have an MS-Access database setup which we want to use as an login-database.
    We can select from the tables in the database using a standard SQL query, and print out the output, but we do not know how to combine the java-string "UserID" and "Corrpass" field to compare them with the database to check if the entered login is correct.
    I know this question is a little bit on the SQL side, but could you please help me? The code for printing out Usernames was founfdon the bottom of this webpage:
    http://www.ster.be/java/java6.html
    Our Microsoft Access Database Layout:
    MS-Access Database
    Table: Users
    | UserID -AutoNumber : UserID (Login code)
    | Corrpass -text :The Correct Password for the above UserID
    | UserVoornaam -text : First name
    | UserAchternaam -text : Surname
    All help/welcome/advise/flaming posts are welcome.

  • How to change the parameter 'Default Servers To Use For Viewing And Modification' using java api dynamically.

    Hi,
    I need to change the Crystal Reports setting 'Default Servers To Use For Viewing And Modification' to a particular server.this i need to do using java api.
    could you pls provide me the sample code for this.
    Regards
    Srinivas

    The IReport interface extends IViewingServerGroupInfo interface, that allows you to specify the server group. 
    The choice selection for that interface is as follows:  0 = first available, 1 = prefer the selected server group, and 2 =  only use the selected server group.
    The server group selection is by the SI_ID for that server group InfoObject.
    Sincerely,
    Ted Ueda - Developer Support

  • Error when accessing Java and JVM section

    I'm getting the following error when accessing the Java and
    JVM section of the CF Administrator:
    "Element JDKPATH is undefined in FORM"
    I've searched a lot and there's very little on the topic. On
    this forum there are two posts and one got no answer, on the other
    it was suggested it might be the jvm.config file. I've looked at
    mine but I really have no idea what could be wrong. Also, there are
    two jvm.config files in my install, one in jrun4/bin and another in
    jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/runtime/bin
    folder (I did multiserver installation).
    I've already tried a bunch of things and no luck, any help is
    appreciated on this.

    quote:
    Originally posted by:
    ke4pym
    What is your path? Make sure you're using forward slashes.
    ie: d:/java/jdk1.6.0_12/bin/blah/blah/blah
    What path are your referring to? My actual PATH environment
    variable? Or are you referring to something else. Btw, here's what
    my config file looks like right now.
    # VM configuration
    # Where to find JVM, if {java.home}/jre exists then that JVM
    is used
    # if not then it must be the path to the JRE itself
    java.home=C:/JRun4/jre
    # If no java.home is specified a VM is located by looking in
    these places in this
    # order:
    # 1) bin directory for java.dll (windows) or
    lib/<ARCH>/libjava.so (unix)
    # 2) ../jre
    # 3) registry (windows only)
    # 4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
    # Arguments to VM
    java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false
    -XX:MaxPermSize=192m -XX:+UseParallelGC
    -Dcoldfusion.rootDir={application.home}/
    # commas will be converted to platform specific separator and
    the result will be passed
    # as -Djava.ext.dirs= to the VM
    java.ext.dirs={jre.home}/lib/ext
    # where to find shared libraries
    java.library.path={application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusi on/lib,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra /bin,{application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/jintegra/b in/international
    system.path.first=false
    # set the current working directory - useful for Windows to
    control
    # the default search path used when loading DLLs since it
    comes
    # before system directory, windows directory and PATH
    java.user.dir={application.home}/../lib
    # JVM classpath
    java.class.path={application.home}/servers/lib,{application.home}/lib

  • UML,Java and Access

    Hello Good morning. Maybe this message has not a lot to do at all with Java. Iam doing a program in Java using UML(both OO).Wouldn't be a contradiction to use MS Access as "DataBase" since Java and UML are Object Oriented?.
    Thanks.
    CELH.

    You are quite right. Thus, I wonder about it because it's strange mixing Object Oriented programming and modeling with a relational DataBase. Maybe a Object Oriented DataBase will suit it better, but then again, you are right: There a few known Object Oriented DataBase.
    Thanks.
    CELH

  • Java and database

    I want to develop an application software using java however i dont know which data base systems / software to use apart from mysql, and access. Is sql just a language or is it also a database software
    please help

    OK, that enough, but just to set the record straight. You said "SQL is a software too", no it is not. SQL is a language.
    http://en.wikipedia.org/wiki/SQL
    SQL (IPA: /&#716;&#603;s&#716;kju??&#712;&#603;l/ or /&#712;si??kw&#601;l/), commonly expanded as Structured Query Language, is a computer language designed for the retrieval and management of data in relational database management systems, database schema creation and modification, and database object access control management
    Some companies, such as Microsoft (not "windows"), make products, such as SQL server, with "SQL" in the title. But SQL Server is:
    Microsoft SQL Server 2005 is a comprehensive, integrated data management and analysis software
    http://www.microsoft.com/sql/prodinfo/overview/default.mspx

  • RE: Java and Forte

    We have no problem using JDK 1.1.5. However, we are using Orbixweb. If
    you are accessing the applet and the IOR file from the same host (exact
    host name), then one other possibility is the JVM compatibility for your
    browser. Using Javasoft's Activator or appletviewer should resolve
    that.
    -----Original Message-----
    From: Kamran Amin [SMTP:[email protected]]
    Sent: Tuesday, March 10, 1998 7:48 AM
    To: '[email protected]'; '[email protected]'
    Subject: RE: Java and Forte
    Dan,
    We had the same problem as you are having regarding question
    one. Make
    sure you are
    using JDK 1.1.3 or 1.1.4. It did not work for me when I was using JDK
    1.1.5. Also you have to
    use the gatekeeper to make the applet work. Hope this help.
    Kamran Amin
    Forte Technical Leader, Software Engineering
    [email protected]
    203-459-7362
    Oxford Health Plans
    48 Monroe Turnpike
    CT, Trumbull 06611
    http://www.oxhp.com/
    From: [email protected][SMTP:[email protected]]
    Sent: Monday, March 09, 1998 7:49 PM
    To: [email protected]
    Subject: Re: Java and Forte
    1. I have been able to make my Java client appllication call-in to a
    Forte service object with success. However the tricky part beginswhen
    I try to do the same with a Java applet. I get an exception returned
    which is an AppletSecurityException. I understand that running a Java
    applet in a browser has two limitations, one being the Java applet
    sandbox and the firewall restriction. As I am only running my Java
    applet and the Forte service object on the same node, this rules out
    the latter.
    I have tried running the Gatekeeper from the same directory as myJava
    client application, which includes all the client stub files
    (including stub files which are generated from Forte supplier plans
    such as those in the Framework folder). However, I still receive the
    AppletSecurityException.
    How can I go about making this operation successful?
    **AppletSecurityExceptions can be caused by many problems--trying toaccess
    machines other than the class download machine, or trying to accessserver
    side classes outside the defined directory structure in the webserver. I'd
    look closely at the classes that are being brought into memory (forexample,
    Visibroker's ORB shows you each file as it is loaded) and make sureyour web
    server is defined correctly. If you follow the Forte technotesclosely, it
    usually solves this problem.
    2. Has anyone tried implementing a 'fat' client, one that combines a
    Forte web application, JavaScript, and a Java applet client toperform
    operations such as validation and a tiny bit of data processing allon
    the client side, relieveing the application server from such
    operations? If yes, how do I implement the solution, and are thereany
    tech notes from Forte that specifically tell me how to do this?
    **We have created a Java framework that follows many of the designpatterns
    and naming conventions as our Forte framework. The Java classes canbe
    extended to marshal and unmarshal scalar data structs passed acrossthe ORB
    boundary to instantiate 'thick' functional objects on the client, andas much
    processing and as many business rules as wanted can be developed inthe
    client
    Java objects.

    If you look at the exception information in the iiop manual it
    discusses exteneded propties DefaultThrowsClause, ThrowsClause and
    IsThrowable.
    If you mark your exception class with IsThrowable it will show up in the
    IDL as an exception. If you use either DefaultThrowsClause(project) or
    ThrowsClause(method) you will get the appropriate raises in the idl.
    This will cause the idl2java to produce code which will allow you to catch
    the exception.
    Tom.
    At 09:41 AM 1/29/99 +0100, Giuseppe Sorce wrote:
    >
    Hi all,
    I am currently working to an architecture to establish a communication
    between a Forte' server and a Java client, using Visigenic's Visibroker and
    IDL mode.
    I have problems when I try to raise a Forte' exception from a method
    invoked by the Java client; I would like the exception class
    (ProductException) not to inherit from the class GenericException, because
    the IDL I want to generate must have this structure:
    exception ProductException {
    string message;
    Using this solution, the client application gets blocked waiting forever.
    I am currently working with:
    - Forte' 3.0.G.2 plus WebEnterprise 1.0.B
    - JDK 1.1.5
    - Visibroker 3.1
    My question is: is it possible to raise an exception from the Forte' side
    that is
    compliant to the IDL mentioned above?
    Of course it should be caught from the Java side.
    Thank you in advance
    Giuseppe Sorce
    CSI Piemonte - C.so Unione Sovietica 216 - 10134 Torino - ITALY
    tel. +39-011-3168736
    fax +39-011-3168212
    e-mail [email protected]
    url http://www.csi.it
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Java and MS SQL Server 2000 problem, please help

    please help me. I am using java and MS SQL Server 2000, and I'm trying to access and verify the login. I'm getting the following error message: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
    Can any please help in this regard.
    String userNumber = (String)userNumField.getValue();
    char[] userPasswordArray = userPasswordField.getPassword();
    String userPassword = new String(userPasswordArray);
         try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:odbc:Dikolobe_Data");
                java.sql.PreparedStatement statement = connection.prepareStatement(
                        "SELECT USER_NUMBER, USER_PASSWORD, USER_CLASS, USER_STATUS " +
                        "FROM SYS_USER " +
                        "WHERE (USER_NUMBER = ? AND USER_PASSWORD = ?);");
                statement.setString(1, userNumber);
                statement.setString(2, userPassword);
                java.sql.ResultSet result = statement.executeQuery();
                if(result.next()) {
                    String userStatus = result.getString(4);
                    if(userStatus.equals("logged on")) {
                        String loginErrorMessage = "User with number: " + userNumber + " is already logged on.";
                        javax.swing.JOptionPane loginErrorPane = getNarrowOptionPane(72);
                        loginErrorPane.setMessage(loginErrorMessage);
                        loginErrorPane.setMessageType(javax.swing.JOptionPane.ERROR_MESSAGE);
                        javax.swing.JDialog loginErrorDialog = loginErrorPane.createDialog(null, "Login Error");
                        loginErrorDialog.setVisible(true);
                    else {
                        String userClassification = result.getString(3);
                        if(userClassification.equals("Administrator")) {
                            AdminHomePage newAdminHomePage = new AdminHomePage();
                            newAdminHomePage.setVisible(true);
                        else if(userClassification.equals("Educator")) {
                            EduHomePage newEduHomePage = new EduHomePage();
                            newEduHomePage.setVisible(true);
                        statement = connection.prepareStatement(
                                "UPDATE SYS_USER SET USER_STATUS = ? " +
                                "WHERE USER_NUMBER = ?");
                        statement.setString(1, "logged on");
                        statement.setString(2, userNumber);
                        statement.executeUpdate();
                        dispose();
                }

    Doesn't the following link give you enough information?
    http://www.google.com/search?q=invalid+descriptor+index
    Anyway .. This error means that the given ResultSet column index which you're trying to retrieve the value from is out of the range.

  • Netweaver Data base instances for Java and ABAP

    Hello Experts,
    Please help me to understand how the two technology stacks of SAP WAS (Java and ABAP) are configured to use underline data base in Netweaver.
    Is it manadatory to have two separate data base schemas, one for ABAP applications and other for Java applications in the Netweaver?
    If yes..the any idea about what are those schema differences??
    - Rajan

    Hello Krishna,
    Thanks for the reply.
    Is there any way I can access these shemas? Are they the same by structure or there are major differences?
    My requirement is to build a common schema out of these two and have the data from these two schemas to be consolidated in the new schema.
    Any help will be greatly appreciated.
    - Rajan

  • Could not find .java and .class files...

    I am working on Windows Vista operating system.
    I am able to access the .java which I created and also .class files from the command prompt.
    But I am not able to find those files in the bin folder in Windows Explorer.
    I want to delete some .java and .class files. When I use the delete command on the command prompt , I am getting ---- could not find the file.
    Can anyone help me...

    Hey everyone,
    I found the answer!
    If the command prompt application is run as administrator(since it is windows vista), the created .java files as well as .class files will be stored and can be seen in the bin folder.
    However, I could not locate the .java files (and also corresponding .class files) which I created previously.

  • Installing Java and Eclipse - its got to be easy, hasnt it?

    Hello all
    I dont know how ive got into this mess but all I know is it doesnt work
    I want to download Eclipse and have it run on my home XP computer - we use it at uni on linux machines.
    I went to the eclipse site and downloaded it - but the zip directory you download has no installation file. so i unzipped it and double click on the Eclipse icon. it came up with saying there is a problem, see the log file (it doesnt even come up with anything else, jst that message)
    I looked on the eclipse help and it says I need a java jdk or jre something. ive downloaded a few of those.
    its got to be something simple - please excuse my stupidness as its bound to be something obvious
    log files on request
    thanks in advance
    iain

    ive run it a few times but that was the most recent one
    i think thats the logs anyway
    !SESSION Apr 29, 2005 19:57:27.953 ---------------------------------------------
    eclipse.buildId=M200503110845
    java.version=1.3.1_15
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
    !ENTRY org.eclipse.osgi Apr 29, 2005 19:57:27.968
    !MESSAGE Error registering XML parser services.
    !STACK 0
    java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at org.eclipse.core.runtime.adaptor.EclipseAdaptor.registerEndorsedXMLParser(EclipseAdaptor.java:272)
         at org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStart(EclipseAdaptor.java:253)
         at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:61)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:553)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:477)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:273)
         at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:243)
         at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:166)
         at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:425)
         at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:216)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
         at org.eclipse.core.launcher.Main.run(Main.java:704)
         at org.eclipse.core.launcher.Main.main(Main.java:688)
    !ENTRY org.eclipse.osgi Apr 29, 2005 19:57:28.31
    !MESSAGE Startup error
    !STACK 1
    java.lang.NoClassDefFoundError: org/xml/sax/helpers/DefaultHandler
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at org.eclipse.core.runtime.adaptor.PluginConverterImpl.parsePluginInfo(PluginConverterImpl.java:557)
         at org.eclipse.core.runtime.adaptor.PluginConverterImpl.fillPluginInfo(PluginConverterImpl.java:111)
         at org.eclipse.core.runtime.adaptor.PluginConverterImpl.convertManifest(PluginConverterImpl.java:660)
         at org.eclipse.core.runtime.adaptor.EclipseBundleData.generateManifest(EclipseBundleData.java:233)
         at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadManifest(EclipseBundleData.java:191)
         at org.eclipse.core.runtime.adaptor.EclipseBundleData.getManifest(EclipseBundleData.java:159)
         at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadFromManifest(EclipseBundleData.java:280)
         at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultBundleData.initializeNewBundle(DefaultBundleData.java:77)
         at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$1.begin(DefaultAdaptor.java:451)
         at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:746)
         at org.eclipse.osgi.framework.internal.core.Framework$2.run(Framework.java:664)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:715)
         at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:659)
         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:219)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:800)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:429)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:222)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
         at org.eclipse.core.launcher.Main.run(Main.java:704)
         at org.eclipse.core.launcher.Main.main(Main.java:688)
    !ENTRY org.eclipse.osgi Apr 29, 2005 19:57:28.46
    !MESSAGE Bundle initial@reference:file:c:/Program Files/Programming/Eclipse/eclipse/plugins/org.eclipse.core.runtime_3.0.2/ [1] was not resolved.

  • Java and Word Docs

    Few weeks ago I posted a question about: Word document and Java. Is there anyway that a Java application can access a Word Document.
    I need to create a template in word and then fill the document a run time.
    Thank you for your help.

    The problem is, even if you can discover the format used by the current version of word you can pretty much guarantee your code won't work with the next version.
    RTF is probably a better bet because the definition is public domain, and stable.

  • Problem in completing the TASK when using Web Dynpro Java and BPM

    Hi,
    I am using Web Dynpro Java and BPM.
    i see my Web Dynpro View when i run the process.
    Just that the task is not completing.
    when i click on the Web Dynpro button to signal the completion of the event, nothing happens.
    i have appropriately created events in both Component controller and Interface Controller and used the same in creating the Task.
    a method in Component controller fires the event and a button click in the view calls this method.
    i have successfully completed Donka Dimitrova's "SAP Netweaver Business Process Management-End-to-End Process Implementation Sample " but when i tried my own with slight modifications, it is not working !!!
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f
    regards,
    -Amol Gupta

    Hi Amol,
    The way you described the things, I dont see any problems. Just to make sure that you are triggering the right event that you mapped as completion event for the task, try to cross check once again and see if the correct event is getting triggered. Also try to put some messages for debugging to see till where the control goes.
    Regards,
    Arafat

  • The performance of management system with Java and MySQL

    Hi all,
    I want to develop one management application with Java and MySQL. However I am not sure which is a good way to design the system. The system has to deal with customers' data in the database.
    Should I create objects for every customers when application starts so that I do not need to access to the database often? Or
    Should I access to the database everytime the user want to deal with customer's data?
    Welcome for any suggestion.
    Thank you
    Pat

    Hi
    i i think u should go through MVC model or use connection pooling

  • Why are Java and Video Player updates appearing in Safari

    Today these fake Java and Video Player update pop ups started appearing in Safari 6.2.4, in OS 10.8.5.  The Java updates say I need  version 13 which doesn't exist and the video player pop ups are gray with a red square that resemble the Adobe colors.  These are popping up on almost every page I load in Safari.
    I've looked in the Launch Daemons folder and that other Launch folder that keeps being recommended in the post that says I don't need to download anything and there is nothing out of the ordinary there.  How do I stop these pop ups?
    Tracy

    The update alerts are indeed fake, and are intended to dupe you into installing malware or disclosing private information so that your identity can be stolen.
    You might get the alerts when visiting a website that has been hacked. Don't visit the site again. If applicable, notify the site administrator of the problem, but don't send email to an unknown party.
    If you get the alerts when visiting more than one well-known website, such as Google, YouTube, or Facebook, then they may be the result of an attack on your router that has caused you to get false results from looking up the addresses of Internet servers. Requests sent to those sites are redirected to a server controlled by the attacker. It's possible, but less likely, that the DNS server used by your ISP has been attacked.
    Back up all data.
    Unlock the Network preference pane, if necessary, by clicking the lock icon in the lower left corner and entering your password. Cllck Advanced, open the DNS tab, and change the server addresses to the following:
              8.8.8.8
              8.8.4.4
    That's Google DNS. Click OK, then Apply.
    In Safari, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. If you’re using another browser, empty the cache. Test. If the fake update alerts stop, see below. Otherwise, ask for instructions.
    The router's documentation should tell you how to reset it to the factory default state. Usually there's a pinhole switch somewhere in the back. It may be labeled "RESET." Insert the end of a straightened paper clip or a similar tool and press the button inside for perhaps 15 seconds, or as long as the instructions specify.
    After resetting the router, quit the web browser and relaunch it while holding down the shift key. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Do the equivalent if you use another browser. Open the Downloads folder and delete anything you don't recognize.
    Then go through the router's initial setup procedure. I can't be specific, because it's different for every model. The key points are these:
    1. Don't allow the router to be administered from the WAN (Internet) port, if it has that option. Most do.
    2. Set a strong password to protect the router's settings: at least ten random upper- and lower-case letters and digits. Don't use the default password or any other that could be guessed. Save the password in your keychain. Any password that you can remember is weak.
    3. If the router is wireless, or if you have a wireless access point on the network, use "WPA 2 Personal" security and set a different strong password to protect the network. If the router or access point doesn't support WPA 2, it's obsolete and must be replaced.
    During the time the router was compromised, you were redirected to bogus websites. If you ever connected to a secure site and got a warning from your browser that the identity of the server could not be verified, and you dismissed that warning in order to log in, assume that your credentials for the site have been stolen and that the attacker has control of the account. This warning also applies to all websites on which you saw the fake update alerts.
    Check the router manufacturer's website for a firmware update.
    If you downloaded and installed what you thought was a software update, ask for instructions.

  • Three questions about Java and Ftp

    Hello, i've the following questions about Java and Ftp:
    1- .netrc file is in $HOME directory but i can't access to this directory from java code. The following line producesan Exception (directory doesn't exists)
    FileWriter file = new FileWriter ("$HOME/.netrc");
    2- .netrc file must have the following permissions: -rw- --- --- but when i create the .netrc file the following permissions are on default: -rw- r-- r--, how can i change this permissions? (In java code, i can't use chmod.....)
    3- Are there any way to pass parameters to a .netrc file? If i get to do this i needn't change the permissions because i can't modify or create/destroy this file.
    Thanks in advanced!!!
    Kike

    1- .netrc file is in $HOME directory but i can't
    access to this directory from java code. The
    following line producesan Exception (directory
    doesn't exists)
    FileWriter file = new FileWriter ("$HOME/.netrc");$HOME would have to be replaced by a shell, I don't
    think you can use it as part of a legal path.
    Instead, use System.getProperty("user.home");
    Ok, thanks
    2- .netrc file must have the followingpermissions:
    -rw- --- --- but when i create the .netrc file the
    following permissions are on default: -rw- r--r--,
    how can i change this permissions? (In java code,i
    can't use chmod.....)Yes, you can: Runtime.exec("chmod ...");
    I need to use estrictly the .netrc with -rw- --- --- permissions
    Yes, i can use Runtime.exec ("chmod ..."); but i don't like very much this solution because is a slow solution, am i right?
    3- Are there any way to pass parameters to a.netrc
    file? If i get to do this i needn't change the
    permissions because i can't modify orcreate/destroy
    this file.I don't think so. Why do you need the .netrc file in
    Java at all? Writing a GUI frontend?I want to use automatic ftp in a java program and FTP server, the files and path are not always the same, so i can:
    - modify .netrc (for me is the complex option)
    - destroy and create a new .netrc (is easier but i have permissions problem)
    - use .netrc with parameters but i haven't found any help about it
    Thanks for your prompt reply!!!!
    Kike

Maybe you are looking for

  • Safari wont open bookmarked page, "invalid address"

    Problem with iPad2. Safari is my browser. Running latest ios. I have had my photobucket page saved as a bookmark for a couple of years. And until recently no problems accessing photobucket thru that bookmarked url. But recently, when i select that bo

  • Black Screen on Windows 7 startup

    Windows 7 desktop can not load after welcome screen appears just a black screen come and stuck a white mouse pointer works but nothing else. safe mode works and last known good configuration works whenever i start in above mentioned mode it works and

  • How to install my company's image of Windows 7 onto a Bootcamp partition?

    My company uses a reimaging DVD to install Windows 7, MS Office, and all other propietary company software and settings.  On a PC, you boot to the disk, it asks is you want to erase the entire and reimage the entire disk.  It does not recongize parti

  • Artwork gone on Ipod?

    For some reason, all of a sudden my ipod will not display nay artwork. It shows up on Itunes but not on the Ipod itself. I tried resetting but it doesn't help. Any ideas?

  • Multi security groups in Oracle apps hrms

    Hi All, Could you please let us know how to enable or disable multi security groups in Oracle Apps hrms? Thnaks, Anil