Unable to execute a command in MySQL in a jdbc prog..

I have a program that needs to execute an SQL insert sentence: stmt.executeUpdate(
"INSERT INTO myDates(date_val,time_val,string_val)"+
"VALUES(one,two,three)");
where myDates is a table i have created in my DB and one two three are string values that the user gives earlier in the program
but i take a msg that my syntax is incorrect
Do u know the right one??
Plz help i am confused!!

Your syntax error is that string literals have to be properly quoted withing your SQL statement, for example:
SQL = INSERT INTO myDates(date_val,time_val,string_val) VALUES('one','two','three')";However, when your data contains a quote character, the you have to properly escape it, which makes for messy and unreadable code.
In general, you should use PreparedStatement instead of Statement, for cleaner, more secure, and sometimes substantially more efficient code.

Similar Messages

  • Unable to execute QEMU command 'qom-list': The command qom-list has not been found

    I have been trying to get openstack working on the 2 Node Architecture -  Controller (OL6.6) and Compute(OL.6.6). I am following the Oracle Openstack Installation Document but I keep getting the following error -
    2015-03-26 20:32:13.662 8067 INFO nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Attempting to build 1 instance(s) uuids: [u'9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c']
    2015-03-26 20:32:13.676 8067 INFO nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Choosing host WeighedHost [host: kvm4A.com, weight: 1.0] for instance 9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c
    2015-03-26 20:32:33.586 8067 INFO nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Attempting to build 1 instance(s) uuids: [u'9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c']
    2015-03-26 20:32:33.588 8067 ERROR nova.scheduler.filter_scheduler [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] [instance: 9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c] Error from last host: kvm4A.com (node kvm4A.com): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1328, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n    return function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1740, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1737, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2297, in spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3704, in _create_domain_and_network\n    power_on=power_on)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3605, in _create_domain\n    domain.XMLDesc(0))\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3600, in _create_domain\n    domain.createWithFlags(launch_flags)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 179, in doit\n    result = proxy_call(self._autowrap, f, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 139, in proxy_call\n    rv = execute(f,*args,**kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 77, in tworker\n    rv = meth(*args,**kwargs)\n', u'  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 738, in createWithFlags\n    if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u"libvirtError: internal error: unable to execute QEMU command 'qom-list': The command qom-list has not been found\n"]
    2015-03-26 20:32:33.592 8067 INFO nova.filters [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] Filter RetryFilter returned 0 hosts
    2015-03-26 20:32:33.592 8067 WARNING nova.scheduler.driver [req-92279e25-f098-4a7a-b8d5-a75bc965a3d3 6e5fe2a1961a4b31921c37f0d2e74265 326a884b9db44e56a68e8a9761ffcf84] [instance: 9fb4d99c-a7f7-4cd2-bbbc-4056ac0e8f1c] Setting instance to ERROR state.
    Any suggestions?
    Thanks

    Hi Avi,
    The guide is for OL6 (see excerpt from page 5)
    "A compute node is a system running Oracle Linux using KVM, or Oracle VM Server Release 3.3. You can download
    installation ISOs of the latest version of Oracle Linux 6, or Oracle VM Server Release 3.3, from the Oracle Software
    Delivery Cloud at:"
    And although 1.0 release says OL6.5 and later I cannot find the OL7 pacakges on the public yum server. The only ones I can find are http://public-yum.oracle.com/public-yum-openstack-ol6.repo  which is clearly OL6. I tried them on OL7 and the install fails.
    [ol6_openstack10]
    name=OpenStack 1.0 packages for Oracle Linux 6 (x86_64)
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/openstack10/x86_64/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    [ol6_latest]
    name=Oracle Linux $releasever Latest ($basearch)
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    If you have an Oracle Openstack install running I'd love to hear how you did it and what you did to accomplish it.
    Right now I'm running OL6.6 with a RDO icehouse packstack install and I'm running into problems mounting volumes.
    Openstack will be awesome once I get it running
    Thank you for any assistance.
    Dave

  • Unable to execute update commands after improper shutdown

    Hi!
    It sounds a little strange.
    I am unable to execute update commands from my application. My machine was shutdown improperly. Then I loaded the datastores again. I was able to execute select commands but unable to execute update commands. It was working fine before shutdown.
    Regards
    /Ahmad

    Hi Chris!
    SQLExecute method of ODBC is returning -1.
    I have checked the syntax of the query its also correct. I am also very confused on it why is this happening. If I execute the update command from ttisql it works ok.
    The code is the same that we discussed in our previous conversation.
    The steps I did after improper shutdown:
    1. Started TimeTen daemon >ttdaemonadmin -start
    2. Loaded the Data store >ttAdmin -ramLoad spiderM
    3. Executed the code
    The output of ttstatus is as follows:
    TimesTen status report as of Fri Jun 29 21:45:41 2007
    Daemon pid 8273 port 17001 instance tt70
    TimesTen server pid 8284 started on port 17003
    TimesTen webserver pid 8280 started on port 17005
    Data store /tmp/spiderM
    There are 6 connections to the data store
    Data store is in shared mode
    Shared Memory KEY 0x08004f3c ID 557070
    Type PID Context Connection Name ConnID
    Subdaemon 8278 0x0000000000570520 Worker 2042
    Subdaemon 8278 0x00000000005dc4d0 Flusher 2043
    Subdaemon 8278 0x000000000060d5d0 Checkpoint 2044
    Subdaemon 8278 0x000000000063e5a0 Aging 2045
    Subdaemon 8278 0x000000000066f570 HistGC 2046
    Subdaemon 8278 0x00000000006a0430 Monitor 2047
    RAM residence policy: Manual
    Data store is manually loaded into RAM
    Replication policy : Manual
    Cache agent policy : Manual
    Data store /usr/users/spider/TimesTen/tt70/info/TT_tt70
    There are no connections to the data store
    Replication policy : Manual
    Cache agent policy : Manual
    Access control enabled.
    End of report
    Regards
    /Ahmad

  • Unable to execute Linux command from Java

    Hi,
    I am currently working on a code wherein i need to execute Linux command from Java. Below are some of the query i have.
    1) Is there any efficient method of running OS commands from Java, rather than using Runtime and Process method.
    2) Below is details of my code which fails in execution
    **-- Java Version**
    java version "1.6.0"
    OpenJDK Runtime Environment (build 1.6.0-b09)
    OpenJDK Server VM (build 1.6.0-b09, mixed mode)
    -- Program Code ----
    Where <path> = Path i put myself
    package test;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import java.io.*;
    public class GetInode{
         * @param args
         public static void main(String[] args) {
              GetInode test = new GetInode();
              test.getInode();
         public void getInode(){                    
              String command = "/usr/bin/stat -Lt <path>;
              System.out.println(command);
              Process process;
              Runtime rt;     
              try{
              rt = Runtime.getRuntime();               
              process = rt.exec(command);
              InputStreamReader isr = new InputStreamReader(process.getErrorStream());
              BufferedReader bre = new BufferedReader(isr);
              BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream());
              System.out.println(bre.readLine());
    System.out.println(br.readLine().split(" ")[7]);
              process.destroy();          
              }catch (Exception ex){
                   System.out.println("Error :- " + ex.getMessage());
    ------Output -------------
    /usr/bin/stat -Lt "<path>"
    /usr/bin/stat: cannot stat `"<path>"': No such file or directory
    Error :- null
    Can any one help me what is wrong and why i am unable to run the Linux command from Java.

    For clarity purpose............i m submitting actual code here
    --- Code ---
    package test;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import java.io.*;
    public class GetInode{
    * @param args
    public static void main(String[] args) {
    GetInode test = new GetInode();
    test.getInode();
    public void getInode(){               
    String command = "/usr/bin/stat -Lt \"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt\"";
    System.out.println(command);
    Process process;
    Runtime rt;
    try{
    rt = Runtime.getRuntime();
    process = rt.exec(command);
    InputStreamReader isr = new InputStreamReader(process.getErrorStream());
    BufferedReader bre = new BufferedReader(isr);
    BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
    System.out.println(bre.readLine());
    System.out.println(br.readLine().split(" ")[7]);
    process.destroy();
    }catch (Exception ex){
    System.out.println("Error :- " + ex.getMessage());
    --- Output ---
    [ratz]s0898671: java GetInode
    /usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
    /usr/bin/stat: cannot stat `"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"': No such file or directory
    Error :- null
    -- Linux Terminal --
    If i copy the first line from the output and execute on Linux terminal her is the output that i get
    [ratz]s0898671: /usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
    /afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt 12003 24 81a4 453166 10000 1c 360466554 2 0 1 1246638450 1246638450 1246638450 4096
    Can you just assist me where am i really making mistake.......i was wondering if the command that i pass from Java....can be executed on Linux terminal why is it faling to run from java.........and when i print the Error Stream for process output........it show cannot Stat.......

  • Unable to execute a command line command using Java

    I am trying to run a command to add a group name. It is executed in command prompt of Windows 2003/2000
    Say this is the command I want to execute:
    net localgroup LordSM /add
    Here LordSM is the group name.
    I wrote the following code but it does not seem to work. Please suggest.
    String ABC=Value1TextField.getText();
    Value2Label.setText("Value is now " + ABC);
    // Above is to get value from a JText Field
    // Below is the code to run command for adding a group name to a System.
    String ExecutedCmd = "net localgroup " + ABC + "/add";
    Process p = Runtime.getRuntime().exec(ExecutedCmd);
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null)
    { System.out.println(s); }
    // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null)
    { System.out.println(s); }
    I am trying to run a command to add a group name. It is executed in command prompt of Windows 2003/2000
    Say this is the command I want to execute:
    net localgroup LordSM /add
    Here LordSM is the group name.
    I wrote the following code but it does not seem to work. Please suggest.
    String ABC=Value1TextField.getText();
    Value2Label.setText("Value is now " + ABC);
    // Above is to get value from a JText Field
    // Below is the code to run command for adding a group name to a System.
    String ExecutedCmd = "net localgroup " + ABC + "/add";
    Process p = Runtime.getRuntime().exec(ExecutedCmd);
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null)
    { System.out.println(s); }
    // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null)
    { System.out.println(s); }
    It does not seem to work means, that no Standard Error is defined, when it executes and group name is not added as well. The following is JUnit Test Result: Hope it gives a better idea of the problem I am facing:
    compile:
    run:
    Here is the standard output of the command:
    Here is the standard error of the command (if any):
    The syntax of this command is:
    NET LOCALGROUP [groupname [/COMMENT:"text"]] [DOMAIN]
    groupname {ADD [/COMMENT:"text"] | /DELETE} [DOMAIN]
    groupname name [...] {ADD | /DELETE} [DOMAIN]
    Got it
    BUILD SUCCESSFUL (total time: 10 minutes 49 seconds)
    I had even tried this:
    Runtime rt =Runtime.getRuntime();
    String[] cmd = new String[3];
    cmd[0] = "cmd.exe";
    cmd[1]="net localgroup";
    cmd[2] =ABC + "/add";
    rt.exec(cmd);
    but again, it does not give any error as such, but it does not create the group name either. Please suggest. We can see the group names that are added on right clicking My Computer Icon and click Manage and then go to User & Group section. On executing either of the code nothing happens.
    Thanks

    Duplicate post:
    http://forum.java.sun.com/thread.jspa?threadID=5203526&messageID=9812067#9812067

  • Unable to execute find command

    I am trying to execute a command as below:
    find . -name '*' -mtime +20 -printf "%f %t\n\r" | sort;
    The error after this is as below:
    find: bad option -printf
    find: path-list predicate-list
    I am also trying to execute the same as above in the following way:
    find . -name '*' -mtime +20;
    This throws an error saying:
    find: cannot open .: Permission denied
    What could be the problem?
    The details of the server: SunOS LOMa 5.9 Generic_122300-50 sun4u sparc SUNW,Sun-Fire-V240 Solaris

    Please post your thread in the UNIX forum rather than wasting everyones time here...This forum is exclusively for Oracle ...Please close the thread..

  • Unable to execute HFMAudit Command line utility

    Hi All,
    We are going to use HEMAudit extract utility for extracting data &task audit tables.Hope All of you aware of that we can use this utility in two ways.One is through Wizard another one is thorugh commandline...We tried to execute the utility through Wizard,it was executing successfully and extract the both data&task audit tables.But when We tried to execute thro commandline got the following error..
    C:\Hyperion\products\FinancialManagement\Consultant Utilities>HFMAuditExtractCmdLine.exe  -d C:\Test
    -u C:\Hyperion\products\FinancialManagement\hfm.udl -a TEST -l ; -s 2011/07/15 -e 2011/07/22 -t Enabled
    -D Enabled -k Disabled -r Disabled
    Processing objects initialized.
    Completed parsing command line parameters.
    Extract starting using these parameters:
    UDL:  C:\Hyperion\products\FinancialManagement\hfm.udl
    Application:      TEST
    Destination folder:  Enabled
    Log File Name:
    Field Delimiter:     (;)
    Start Datetime:      07/15/11 00:00:00
    End Datetime:        07/22/11 00:00:00
    Extract Task Audit:  True
    Truncate Task Audit: True
    Extract Data Audit:  True
    Truncate Data Audit: True
    T E S T Connecting to data source...
    Getting schema version...
    Starting processing...
    Caching Metadata...
    Processing extracts...
    Extracting Task Audit...
    Determining number of records...
    Selecting records for extract...
    Processing results...
    Export failed. (-2147467259)
    Processing failed.
    It shows " Export Failed" .Anyone could you help me for this
    Thanks in Advance

    Duplicate post:
    http://forum.java.sun.com/thread.jspa?threadID=5203526&messageID=9812067#9812067

  • Satellite C50-B cursor unable to execute simple commands

    I bought a customized Sateliite C50-B laptop and have been using it since September. I partitioned the harddrive, half of it is dedicated to running Windows 9, the other half dedicated to running Ubuntu 14.04. The computer had been running great, but yesterday I ran Ubuntu to realize that the system did not respond to any command that I issued with my tracker pad, or mouse.
    For example, I could not open a file to edit in a word processor. In my web broswer, I couldn't use the search icon to find anything. I couldn't navigate throught folders in my home drive. My cursor moved freely around, and I could open up any program, yet once in the program every command I gave via my tracker pad or mouse would not execute.
    I turned off my computer, took off and battery pack, then put the battery pack back on, and turned my computer back on and the same issue occured. I decided to check out what happened when I used my windows OS. In windows, the same issue occures, but not has extreme. In Ubuntu, I could barley do anything. Conversely with Windows, I can open up a program, such as Chrome my internet browser, and can use the internet. But, I can't switched between tabs.
    I believe the issue has to do with hardware, rather than with the OS. Any advice or suggestions how to furter troubleshoot my issue? Has someone experienced similar behaviors with their Toshiba Laptop??
    Thanks,
    Kate

    Kate,
    Best way to tell if having hardware issue is to restore the computer to out-of-box state and then see if it operating normal.  If so, it was likely a software issue.  You could make an image of your computer before the restore just as a precaution in case you want to return the system to that state afterwards for additional troubleshooting. 
    L305-S5955, T9300 Intel Core 2 Duo, 4GB RAM, 60GB SSD, Win 7 Ultimate 64-bit

  • Unable to execute nqcmd command in RHLinux server

    Hi All,
    When we try to execute nqcmd on RH Linux server we are getting error below.
    Bin$ pwd
    /home/oracle/obiee/OracleBI/server/Bin
    Bin$ ./nqcmd
    ./nqcmd: error while loading shared libraries: libodbcinst.so: cannot open shared object file: No such file or directory
    Regards,
    Somu

    hi
    maxim
    i have install obiee 10.1.3.4 in my server Aix 6.1 (unix server). i i have one problem when we try excute nqcmd in unix (Aix 6.1 server )ts show error
    cd /u02/dwbi_apps/obiee/oraclebi/server/Bin
    $ ./nqcmd
    exec(): 0509-036 Cannot load program ./nqcmd because of the following errors:
    0509-022 Cannot load module /u02/dwbi_apps/obiee/oraclebi/server/Bin/libnqsgenericodbcinterface.so.
    0509-150 Dependent module libodbc.a(odbc.so) could not be loaded.
    0509-022 Cannot load module libodbc.a(odbc.so).
    0509-026 System error: A file or directory in the path name does not exist.
    0509-022 Cannot load module nqcmd.
    0509-150 Dependent module /u02/dwbi_apps/obiee/oraclebi/server/Bin/libnqsgenericodbcinterface.so could not be loaded.
    0509-022 Cannot load module
    2. Then i try to do this one
    $ cd /u02/dwbi_apps/obiee/oraclebi/setup
    $ ./common.sh
    $ ./sysenvinit.sh
    ./sysenvinit.sh[68]: =::/u02/dwbi_apps/obiee/oraclebi/odbc/lib:/usr/lib:/lib:$: not found.
    where i will struck i don't no could please tell me maxim
    Advance thanks

  • Getting Error Message "Access Denied" and "Unable to Execute!

    Using jmf-2_1_1e-windows-i586.exe on Windows XP. When I open the executable it prompts me if I want to overwrite the existing files. If I do yes, then I get "Access Denied". If I do no, then I get "Unable to Execute!
    "C:\DOCUME~1\HP_ADM~1\LOCALSS~1\Temp\pft1~tmp\SETUP.EXE" /SMS
    Unable to execute the command line"
    What am I doing wrong?

    Sounds like you don`t have write permissions for that directory. Not a java problem.
    regards

  • Unable to execute command adprmkey in upgrading 11i to 12.1.1

    Hello Team Leaders:
    I am in the process of upgrading EBS 11.5.10.2 to Release 12.1.1. I have imported the database, Layed down the apps and have started applying patches. While running adpatch I have encountered:
    java.lang.Exception: ERROR: Unable to execute command: adprmkey /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar.tmp
    at oracle.apps.ad.jri.util.JarSignerOptions.getOptions(JarSignerOptions.java:50)
    at oracle.apps.ad.jri.util.JarSignUtils.signJarWithJarsigner(JarSignUtils.java:132)
    at oracle.apps.ad.jri.adjmx.mergeAndExtract(adjmx.java:1313)
    at oracle.apps.ad.jri.adjmx.main(adjmx.java:970)
    Done Analyzing fndlist.jar : Fri Oct 26 2012 16:06:42
    ERROR: The following jars failed to get generated properly.
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndforms.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndewtpv.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaol.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/wfapi.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndaroraclnt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndmail.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndactiv.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndformsi18n.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/mapclient.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndxmlparserv2.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cs/jar/cs.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/az/jar/azwizard.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/jtf/jar/jtfgrid.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/cct/jar/cctbasic.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/msd/jar/msejar.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/wps/jar/wpsgantt.jar
    /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar/fndlist.jar
    I then tried relinking on jar manually:
    cd /u02/applfint/apps/apps_st/comn/java/classes/oracle/apps/fnd/jar
    ll fndaroraclnt.jar
    -rw-r--r-- 1 applfint dba 1135766 Apr 1 2009 fndaroraclnt.jar
    adrelink.sh force=y "fndaroraclnt.jar "
    Errors:
    adrelink: error: Product library for product "fndaroraclnt.jar" not found.
    "fndaroraclnt.jar" might not be listed correctly in your OFT1_ofintest.env file,
    you may be missing some files for product "fndaroraclnt.jar",
    or "fndaroraclnt.jar" could be an invalid product.
    adrelink will not try to link product "fndaroraclnt.jar".
    Continuing work on other products...
    adrelink is exiting with status 1
    What is my problem?
    Mathias

    Hi Hussein,
    Following command in (11864081 12.1.3 Java.lang.Exception: Unable To Find Or Read Parameter File /d01/oracle/R12DEV/apps/a [ID 1479911.1]), I have executed:
    adrelink.sh force=y "ad adprmkey"
    And the output errors are:
    /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
    Done with link of ad executable 'adprmkey' on Sun Oct 28 01:59:50 EDT 2012
    Relink of module "adprmkey" failed.
    See error messages above (also recorded in log file) for possible
    reasons for the failure. Also, please check that the Unix userid
    running adrelink has read, write, and execute permissions
    on the directory /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin,
    and that there is sufficient space remaining on the disk partition
    containing your Oracle Applications installation.
    I checked and do have permissions on /u02/applfint/apps/apps_st/appl/ad/12.0.0/bin:
    drwxr-xr-x 2 applfint dba 4096 Oct 28 02:10 bin
    Browsing around the system I noticed:
    1) three broken links in /usr/lib/gcc/x86_64-redhat-linux/4.4.4/32:
    libgfortran.so -> ../../../../libgfortran.so.3.0.0
    libmudflapth.a -> ../../../i686-redhat-linux/4.4.4/libmudflapth.a
    libmudflap.a -> ../../../i686-redhat-linux/4.4.4/libmudflap.a
    libgomp.so -> ../../../../libgomp.so.1.0.0
    2) Following MOS note 11864081 12.1.3 Java.lang.Exception. Check this out:
    adrelink.sh force=y "ad adprmkey"
    Failed with:
    usr/lib/gcc/x86_64-redhat-linux/4.4.4/32/libgcc_s.so: undefined reference to `__stack_chk_fail@GLIBC_2.4'
    collect2: ld returned 1 exit status
    make: *** [u02/applfint/apps/apps_st/appl/ad/12.0.0/bin/adprmkey] Error 1
    Done with link of ad executable 'adprmkey' on Fri Oct 26 18:14:16 EDT 2012
    Relink of module "adprmkey" failed.
    3) My OS :
    uname -a
    Linux ofintest.corp.phillips.com 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    4) rpm -q glibc
    glibc-2.12-1.80.el6_3.5.x86_64
    glibc-2.12-1.80.el6_3.5.i686
    5) gcc -v
    Using built-in specs.
    Target: x86_64-redhat-linux
    Configured with: ../configure prefix=/usr mandir=/usr/share/man infodir=/usr/share/info with-bugurl=http://bugzilla.redhat.com/bugzilla enable-bootstrap enable-shared enable-threads=posix enable-checking=release with-system-zlib enable-__cxa_atexit disable-libunwind-exceptions enable-gnu-unique-object enable-languages=c,c++,objc,obj-c++,java,fortran,ada enable-java-awt=gtk disable-dssi with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre enable-libgcj-multifile enable-java-maintainer-mode with-ecj-jar=/usr/share/java/eclipse-ecj.jar disable-libjava-multilib with-ppl with-cloog with-tune=generic with-arch_32=i686 --build=x86_64-redhat-linux
    Thread model: posix
    gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC)
    6) g++ --version
    g++ (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)
    Copyright (C) 2010 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    7) ls -al /usr/bin | grep gcc
    lrwxrwxrwx. 1 root root 3 Oct 17 12:28 cc -> gcc
    -rwxr-xr-x 2 root root 268088 Dec 1 2010 gcc
    -rwxr-xr-x 2 root root 268088 Dec 1 2010 x86_64-redhat-linux-gcc
    8) rpm -qf /usr/bin/x86_64-redhat-linux-gcc
    gcc-4.4.4-13.el6.x86_64
    I hope this information helps in troubleshooting this issue for us.
    Thanks
    Mathias
    Thanks,

  • Unable to execute command   $ADPERLPRG $FND_TOP/patch/115/bin/TXK

    Utility /Script To Check The Techstack Component Versions (Forms, Http Server, JDK, Framework, Database, etc) [ID 601736.1]
    unable to execute command
    $ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl \ -script=$FND_TOP/pa
    tch/115/bin/txkInventory.pl -txktop=$APPLTMP \ -contextfile=$CONTEXT_FILE \ -ap
    pspass=apps/apps \ -outfile=$APPLTMP/Report_App_Inventory.html
    APPLICATION environment already set .
    Location on which command executed
    <FND_TOP>/patch/115/bin
    command executed in single line
    error message
    ERROR processing <arg> script : Argument value cannot be an empty string
    *******FATAL ERROR*******
    PROGRAM : (/applprod/oracle/prdappl/fnd/11.5.0/patch/115/bin/TXKScript.pl)
    TIME : Tue Aug 24 01:05:04 2010
    FUNCTION: TXK::Common::doError [ Level 1 ]
    ERRORMSG: ERROR processing <arg> script : Argument value cannot be an empty stri
    ng
    FOR DATABASE TIER ALSO
    bash-3.00$ $ADPERLPRG $ORACLE_HOME/appsutil/bin/TXKScript.pl -script=$ORACLE_HO
    ME/appsutil/bin/txkInventory.pl -txktop=$ORACLE_HOME/appsutil/temp -contextfile
    =$CONTEXT_FILE -appspass=apps -outfile=$ORACLE_HOME/apsutil/temp/Report_DB_Inve
    ntory.html
    gives error
    *** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
    *** STDOUT = /applprod/oracle/prddb/9.2.0/appsutil/temp/TXK/txkInventory_Tue_A
    ug_24_01_21_57_2010_stdout.log
    bash-3.00$
    Thanks
    Rahul

    Hi,
    $ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl \ -script=$FND_TOP/pa
    tch/115/bin/txkInventory.pl -txktop=$APPLTMP \ -contextfile=$CONTEXT_FILE \ -ap
    pspass=apps/apps \ -outfile=$APPLTMP/Report_App_Inventory.htmlDo not use the back slash when running the command (as shown below) and you should be OK then.
    $ADPERLPRG $FND_TOP/patch/115/bin/TXKScript.pl -script=$FND_TOP/patch/115/bin/txkInventory.pl -txktop=$APPLTMP -contextfile=$CONTEXT_FILE-appspass=apps/apps outfile=$APPLTMP/Report_App_Inventory.html
    FOR DATABASE TIER ALSO
    bash-3.00$ $ADPERLPRG $ORACLE_HOME/appsutil/bin/TXKScript.pl -script=$ORACLE_HO
    ME/appsutil/bin/txkInventory.pl -txktop=$ORACLE_HOME/appsutil/temp -contextfile
    =$CONTEXT_FILE -appspass=apps -outfile=$ORACLE_HOME/apsutil/temp/Report_DB_Inve
    ntory.htmlSame for this command.
    Thanks,
    Hussein

  • Unable to execute command line command in java

    I am trying to run a command to add a group name. It is executed in command prompt of Windows 2003/2000
    Say this is the command I want to execute:
    net localgroup LordSM /add
    Here LordSM is the group name.
    I wrote the following code but it does not seem to work. Please suggest.
    String ABC=Value1TextField.getText();
    Value2Label.setText("Value is now " + ABC);
    // Above is to get value from a JText Field
    // Below is the code to run command for adding a group name to a System.
    String ExecutedCmd = "net localgroup " + ABC + "/add";
    Process p = Runtime.getRuntime().exec(ExecutedCmd);
    BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
    BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
    // read the output from the command
    System.out.println("Here is the standard output of the command:\n");
    while ((s = stdInput.readLine()) != null)
    {                System.out.println(s);             }
    // read any errors from the attempted command
    System.out.println("Here is the standard error of the command (if any):\n");
    while ((s = stdError.readLine()) != null)
    {       System.out.println(s);           }

    It does not seem to work means, that no Standard Error is defined, when it executes and group name is not added as well. The following is JUnit Test Result: Hope it gives a better:
    compile:
    run:
    Here is the standard output of the command:
    Here is the standard error of the command (if any):
    The syntax of this command is:
    NET LOCALGROUP [groupname [/COMMENT:"text"]] [DOMAIN]
    groupname {ADD [/COMMENT:"text"] | /DELETE} [DOMAIN]
    groupname name [...] {ADD | /DELETE} [DOMAIN]
    Got it
    BUILD SUCCESSFUL (total time: 10 minutes 49 seconds)
    I had even tried this:
    Runtime rt =Runtime.getRuntime();
    String[] cmd = new String[3];
    cmd[0] = "cmd.exe";
    cmd[1]="net localgroup";
    cmd[2] =ABC + "/add";
    rt.exec(cmd);
    but again, it does not give any error as such, but it does not create the group name either. Please suggest. We can see the group names that are added on right clicking My Computer Icon and click Manage and then go to User & Group section. On executing either of the code nothing happens.
    Thanks

  • Unable to execute external OS command in Sm49

    Hi All,
    I am trying to copy a file from another application server to BW application server.Below are the steps that I followed:
    1. Created a Batch file and placed it on the BW application server.Below is the contents of the flat file:
    xcopy
    MDHCLST01\mdhreports\lossreports\20080522_Comp.*
    WSAGLDWIVM76.aglcloud1.int\OUTPUT-SCS\
    2. I have created a command in sm49 to execute this batch file
    3. When i am trying to execute this command in sm49 it is giving me following error:
    E:\usr\sap\BSP\DVEBMGS30\work>xcopy
    MDHCLST01\mdhreports\lossreports\20080522_Comp.*
    WSAGLDWIVM76.aglcloud1.int\OUTPUT-SCS\                                                                                Invalid drive specification                                                                                0 File(s) opied                                                                                External program terminated with exit code 4
    When I executed this Batch file directly from application server it is copying the files but when I am executing the file in SM49
    it is giving me error.Please suggest me in this regard.
    Warm Regards,
    Nanduri Aditya

    Hello
    We will move this thread to the SAP NetWeaver BW forum. You will get a better response on that forum.
    Regards
    XI/PI Moderator

  • Executing UNIX command in Java

    I am having problems executing a command in Java. Here's the code I have for executing:
    Process p = Runtime.getRuntime().exec(cmd);
                                            BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
         while((display = input.readLine()) != null)
                             num_1 = Double.parseDouble(display);
                             percent = (num_1 * 100) / (50000000);
                        flip = 1;
                        catch(IOException e)
                        e.printStackTrace();     
                        System.exit(1);
    Now, when I run the script, I receive the following errors:
    Exception occurred during event dispatching:
    java.security.AccessControlException: access denied (java.io.FilePermission /Netadmin/UCDSNMP/bin/snmpdelta execute)
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(RuntimeException.java:47)
    at java.lang.SecurityException.<init>(SecurityException.java:39)
    at java.security.AccessControlException.<init>(AccessControlException.java:57)
    at java.security.AccessControlContext.checkPermission(Compiled Code)
    at java.security.AccessController.checkPermission(Compiled Code)
    at java.lang.SecurityManager.checkPermission(Compiled Code)
    at java.lang.SecurityManager.checkExec(SecurityManager.java:789)
    at java.lang.Runtime.exec(Compiled Code)
    at java.lang.Runtime.exec(Compiled Code)
    at java.lang.Runtime.exec(Runtime.java:152)
    at snmp.actionPerformed(Compiled Code)
    at java.awt.Button.processActionEvent(Button.java:308)
    at java.awt.Button.processEvent(Button.java:281)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    The user is entering the parameters for the UNIX command from a Java applet. Everything looks right, but I can't seem to run the file? Please help! All is appreciated.
    Jason Banks
    Northeastern University

    Sorry, this is a bug that I've reported -- see Sun's response and my original report (along with how to get around the problem) shown below:
    Hi Vira Van.,
    The bug you have reported is a duplicate of Bug ID: 4522533.
    Thank you for providing us with additional information
    that can be used in the resolution of this bug.
    This bug can be monitored via the the Java Developer
    Connection Bug Parade at:
    http://developer.java.sun.com/developer/bugParade/index.jshtml
    The Java Developer Connection is a free channel that is
    maintained by staff here at Sun.  Access this web page to join:
    http://developer.java.sun.com/servlet/RegistrationServlet
    The home page for the JDC is:
    http://java.sun.com/jdc
    Regards,
    Girish
    ----------------- Original Bug Report-------------------
    category : java
    release : 1.4
    subcategory : jar
    type : bug
    synopsis : signed applet: bad major version number on NN4.79 and ClassNotFound in IE5.5
    description : FULL PRODUCT VERSION :
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    FULL OPERATING SYSTEM VERSION : Windows 98 [Version
    4.10.2222]
    ADDITIONAL OPERATING SYSTEMS :
    BROWSERS: Netscape Navigator 4.79
            : Internet Explorer 5.5
    EXTRA RELEVANT SYSTEM CONFIGURATION :
    Applet failed to start in Netscape, the following error
    message appeared in the Java Console:
    Netscape Communications Corporation -- Java 1.1.5
    Type '?' for options.
    Symantec Java! ByteCode Compiler Version 210.065
    Copyright (C) 1996-97 Symantec Corporation
    # Applet exception: error: java.lang.ClassFormatError: Bad
    major version number
    java.lang.ClassFormatError: Bad major version number
      at java.lang.ClassLoader.defineClass(Compiled Code)
      at netscape.applet.AppletClassLoader.findClass(Compiled
    Code)
      at netscape.applet.AppletClassLoader.loadClass1(Compiled
    Code)
    * at netscape.applet.AppletClassLoader.loadClass(Compiled
    Code)
      at netscape.applet.AppletClassLoader.loadClass(Compiled
    Code)
      at
    netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(
    Compiled Code)
      at
    java.awt.EventDispatchThread$EventPump.dispatchEvents(Compil
    ed Code)
      at java.awt.EventDispatchThread.run(Compiled Code)
      at
    netscape.applet.DerivedAppletFrame$AppletEventDispatchThread
    .run(Compiled Code)
    The same applet
    A DESCRIPTION OF THE PROBLEM :
    Unable to run signed applet with Netscape 4.79 and IE5.5
    native JVM.
    REGRESSION.  Last worked in version 1.3.1
    STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
    1.compile program and copy class files to a temp directory
    2.sign the applet for Netscape as follows:
    signtool -k aok -d \progra~1\netscape\users\viravan -Z
    FIO.jar temp
    3.sign the applet for Internet Explorer as follows:
    cabarc -p n FileIO.cab FileIO*.class
    setreg 1 true
    makecert -sk aok -n "CN=aok" aok.cer
    cert2spc aok.cer aok.spc
    signcode -j javasign.dll -jp LOWX -spc aok.spc -k aok
    FileIO.cab
    Run the applet with the following HTML file:
    <html><head><Title>Self-Signed Applet</Title>
    <script>
    document.layers ? parm=1 : parm=0;
    </script>
    <body>
    This file I/O applet lets you read and write to the user's
    local disk.<br>
    <br>
    <script>
    document.writeln('<APPLET CODE = "FileIO" CODEBASE = "."
    ARCHIVE = "FIO.jar" WIDTH = 10 HEIGHT = 10 NAME = "JSF">');
    document.writeln('<param name="Netscape"
    value="'+parm+'">');
    document.writeln('<param name="cabbase"
    value="FileIO.cab">');
    document.writeln('</APPLET>');
    </script>
    </body>
    </html>
    EXPECTED VERSUS ACTUAL BEHAVIOR :
    A frame with a textarea and some buttons should popup in the
    center of the screen.
    ERROR MESSAGES/STACK TRACES THAT OCCUR :
    Applet signed with signtool failed to start in Netscape, the following error
    message appeared in the Java Console:
    Netscape Communications Corporation -- Java 1.1.5
    Type '?' for options.
    Symantec Java! ByteCode Compiler Version 210.065
    Copyright (C) 1996-97 Symantec Corporation
    # Applet exception: error: java.lang.ClassFormatError: Bad major version number
    java.lang.ClassFormatError: Bad major version number
      at java.lang.ClassLoader.defineClass(Compiled Code)
      at netscape.applet.AppletClassLoader.findClass(Compiled Code)
      at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
    * at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
      at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
      at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
      at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
      at java.awt.EventDispatchThread.run(Compiled Code)
      at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
    Code)
    The same applet signed with signcode failed to start in Internet explorer, the
    error message in the Java Console is:
    Error loading class: FileIO
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: FileIO
            at com/ms/vm/loader/URLClassLoader.loadClass
            at com/ms/vm/loader/URLClassLoader.loadClass
            at com/ms/applet/AppletPanel.securedClassLoad
            at com/ms/applet/AppletPanel.processSentEvent
            at com/ms/applet/AppletPanel.processSentEvent
            at com/ms/applet/AppletPanel.run
            at java/lang/Thread.run
    This bug can be reproduced always.
    ---------- BEGIN SOURCE ----------
    import java.io.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class FileIO extends Applet implements ActionListener {
       public static void main(String[] args) {
          new FileIO();
          F.addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent e) {
                System.exit(0);
       public void init() {
          String tmp=getParameter("Netscape");
          if (tmp!=null) {
             if (tmp.equals("1")) {
                try {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalFileAccess");
                   NS=true;
                } catch (Throwable exception) {}
          new FileIO();
          F.setResizable(false);
       public void stop() {
          F.dispose();
       public FileIO() {
          newline=System.getProperty("line.separator");
          F.setLayout(new BorderLayout(0,0));
          String line,inbuf="";
          String newline=System.getProperty("line.separator");
          text=new TextArea(inbuf,24,80,TextArea.SCROLLBARS_BOTH);
          text.setFont(new Font("Courier",Font.PLAIN,12));
          text.setBackground(Color.cyan);
          text.setForeground(Color.black);
          F.add("Center",text);
          Panel pan=new Panel();
          pan.setLayout(new FlowLayout(1,0,0));
          pan.setBackground(Color.yellow);
          TF=new TextField(40);
          TF.setFont(new Font("Courier",Font.PLAIN,12));
          pan.add(TF);
          OP=new Button("Open");
          OP.addActionListener(this);
          pan.add(OP);
          FS=new Button("Save");
          FS.addActionListener(this);
          pan.add(FS);
          SA=new Button("Save-As");
          SA.addActionListener(this);
          pan.add(SA);
          reset=new Button("Reset");
          reset.addActionListener(this);
          pan.add(reset);
          F.add("South",pan);
          F.pack();
          Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();
          Dimension size=F.getSize();
          int X=(screen.width-size.width)/2;
          int Y=(screen.height-size.height)/2;
          F.setLocation(X,Y);
          F.setVisible(true);
       public void actionPerformed(ActionEvent event) {
          String tmp="";
          String O=text.getText();
          StringTokenizer tkn=new StringTokenizer(O,newline);
          int ntkn=tkn.countTokens();
          Object ev=event.getSource();
          if (ev.equals(OP)) {
             FileDialog fd=new FileDialog(F,"File to open",FileDialog.LOAD);
             fd.setFile("*.java");
             fd.show();
             tmp=fd.getDirectory();
             if (fd.getFile()==null) {text.requestFocus(); return;}
             tmp+=fd.getFile();
             TF.setText(tmp);
             try {
                if (NS)
    {netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");}
                BufferedReader reader=new BufferedReader(new FileReader(tmp));
                String line;
                String crlf="";
                tmp="";
                while ((line=reader.readLine())!=null) {
                   tmp+=crlf+line;
                   crlf="\n";
                reader.close();
                text.setText(tmp);
             } catch (Throwable e) {
                e.printStackTrace();
          } else if (ev.equals(FS) || ev.equals(SA)) {
             try {
                if (ev.equals(SA)) {
                   FileDialog fd=new FileDialog(F,"File to save",FileDialog.SAVE);
                   fd.setFile("*.java");
                   fd.show();
                   tmp=fd.getDirectory();
                   tmp+=fd.getFile();
                } else {
                   tmp=TF.getText();
                if (tmp.length()==0) {text.requestFocus(); return;}
                if (tmp.indexOf(".java")<0) tmp+=".java";
                TF.setText(tmp);
                if (NS)
    {netscape.security.PrivilegeManager.enablePrivilege("UniversalFileWrite");}
                FileOutputStream fos=new FileOutputStream(tmp);
                BufferedWriter out=new BufferedWriter(new OutputStreamWriter(new
    DataOutputStream(fos)));
                for (int i=0;i<ntkn;i++) out.write(tkn.nextToken()+newline);
                out.flush();
                out.close();
                if (NS)
    {netscape.security.PrivilegeManager.revertPrivilege("UniversalFileWrite");}
                System.out.println(tmp+" saved");
             } catch (Throwable e) {
                e.printStackTrace();
          } else if (ev.equals(reset)) {
             text.setText("");
             TF.setText("");
          text.requestFocus();
       private String replace(String input, String srch, String repl) {
          int i=input.indexOf(srch);
          while (i>=0) {
             input=input.substring(0,i)+repl+input.substring(i+srch.length());
             i=input.indexOf(srch);
          return input;
       private Button OP,FS,SA,reset,TB;
       private boolean newLine,NS=false;
       private TextArea text;
       private TextField TF;
       private final char NL='\n';
       private String content,newline;
       private static Frame F=new Frame("FileIO");
    ---------- END SOURCE ----------
    CUSTOMER WORKAROUND :
    build the signed applet with SDK1.3.1 or make it a signed
    applet that uses Java Plugin 1.4.0 (i.e., sign it with jarsigner).
    workaround :
    suggested_val :
    cust_name : Vira Van.
    dateCreated : 2002-03-24 19:52:18.4
    dateEvaluated : 2002-04-01 18:48:10.858

Maybe you are looking for

  • Image incomplete

    Hi, Thanks in advance for any help. This is the first time I have any problems with iDVD burning discs. I have an 86 minute, 2.6 gb iDVD movie made in iMovie, all 06 versions. It ejects disc and says "current operation", "image incomplete", after nor

  • Hi, can i upgrade or use dual gpu-s in my elitebook 2570p ?

    I was wondering if i could use two gpu-s in my laptop 2570p elitebook ?

  • [HOWTO] Nautilus and mp3 metadata columns in list view (bitrate etc.)

    Hidden deeply in the wikipages, I just added a small howto on adding music metadata columns to nautilus's list view: http://wiki.archlinux.org/index.php/Gno - te_etc..29 It allows for Album, Artist, Track Title and Bitrate Columns in list view mode.

  • Autoconfig issue after upgrading 12.1.1 to 12.1.3

    Hi all, I am getting below mention autoconfig issue after upgrading 12.1.1 to 12.1.3. jtfictx.sh started at Mon Mar 28 08:28:50 EDT 2011 SQL*Plus: Release 10.1.0.5.0 - Production on Mon Mar 28 08:28:50 2011 Copyright (c) 1982, 2005, Oracle. All right

  • (Urgent - Please Help) E3500 Can not started up

    Dear Sun Experts: Please could you help me for the E3500; the system is at the moment can not bring up to service. My E3500 has a major problem and the system has automatically reboot itself. Afterwards; the below error messages has popped up. md 101