Can't run ij.bat

when I run ij.bat, I receive this error "java is not recorgnised as an internal or external command, operable program or batch file." Not too sure what is the problem.

"java" isn't been recognized as an executabele.
Open a command console and enter "foo" or some other unexisting command or executabele in it and execute it. You'll see that you get the same error message.
Install at least the Java JRE at your machine. Or if you want to develop with Java, install the JDK then.
This whole problem has nothing to do with JDBC at all. But just with a complete lack of knowledge of the underlying operating system (Windows, in this case).

Similar Messages

  • Failed configuring Portal Server. can't run cacaoadm.bat

    Hi,
    I am trying to install Sun Java ES5 (2006Q4) on window XP. The configuration for portal server was failed. When I checked the logs, it complains cacao default instance was disabled and couldn't started. I went to the the directory and tried to manually run cacaoadm command. It returns:
    C:\Sun\JavaES5\share\cacao_2\bin>cacaoadm.bat enable
    This action cannot be performed by a non privileged user.
    I logged on to the windows as a user who is in the administrators group. Any other components installations were fine. I really have no idea how to solve this problem as there is no user account as administrator. Can someone please help?
    The portal config error from the log are as following:
    [#|2007-06-26T15:22:14.821+1000|INFO|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configureHost; |PSFB_CSPFC0021:Waiting for Cacao Server to Startup|#]
    [#|2007-06-26T15:22:15.696+1000|FINEST|SJS Portal Server|debug.com.sun.portal.fabric.util|ThreadID=37; ClassName=com.sun.portal.fabric.util.StreamLogger; MethodName=run; |PSFB_CSPFU0004: C:/Sun/JavaES5/share/cacao_2/bin/cacaoadm(Output)=default instance is DISABLED at system startup.|#]
    [#|2007-06-26T15:22:15.712+1000|FINEST|SJS Portal Server|debug.com.sun.portal.fabric.util|ThreadID=37; ClassName=com.sun.portal.fabric.util.StreamLogger; MethodName=run; |PSFB_CSPFU0004: C:/Sun/JavaES5/share/cacao_2/bin/cacaoadm(Output)=default instance is not running.|#]
    [#|2007-06-26T15:22:15.790+1000|INFO|SJS Portal Server|debug.com.sun.portal.fabric.tasks|ThreadID=10; ClassName=com.sun.portal.fabric.tasks.Cacao; MethodName=execCommand; |PSFB_CSPFT0342:<C:/Sun/JavaES5/share/cacao_2/bin/cacaoadm status> Returned <default instance is DISABLED at system startup.
    default instance is not running.
    |#][#|2007-06-26T15:23:45.790+1000|SEVERE|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configureHost; |PSFB_CSPFC0020:Cacao Server startup failed|#]
    [#|2007-06-26T15:23:45.790+1000|SEVERE|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.PortalConfigurator; MethodName=configureHost; |PSFB_CSPFC0024:Failed to configure the Host
    com.sun.portal.fabric.tasks.ConfigurationException
         at com.sun.portal.fabric.config.PortalConfigurator.configureHost(PortalConfigurator.java:635)
         at com.sun.portal.fabric.config.ConfigurePortal.main(ConfigurePortal.java:166)
    |#]
    [#|2007-06-26T15:23:45.790+1000|SEVERE|SJS Portal Server|debug.com.sun.portal.fabric.config|ThreadID=10; ClassName=com.sun.portal.fabric.config.ConfigurePortal; MethodName=main; |PSFB_CSPFC0014:Failed configuring Portal Server!!
    com.sun.portal.fabric.tasks.ConfigurationException: com.sun.portal.fabric.tasks.ConfigurationException
         at com.sun.portal.fabric.config.PortalConfigurator.configureHost(PortalConfigurator.java:749)
         at com.sun.portal.fabric.config.ConfigurePortal.main(ConfigurePortal.java:166)
    Thank you very much
    Regards,
    Tara

    Hi Deepak,
    Thanks for the post.
    Use cacaoadm restar gives me the same error.
    I found out that is a limitation for the windows version I am using. Basically, the account for installation and configuration has to be an local administrator not in network.
    Cheers,
    Tara

  • How can I run a .bat file from an html/javascript adobe air installation package?

    I write an html/javascript code which works completely true
    but when I made the installation package by air-sdk
    it dosent work properly
    my code is:
    <html>
    <head>
        <title>Hello World</title>
              <script type="text/javascript">
            function appLoad() {
                air.trace("Hello World");
        </script>
    </head>
    <body onLoad="appLoad()">
        <h1>Hello World</h1>
              <br />
    <button onclick="window.open('file:///C:/Windows/notepad.exe')"> Launch notepad </button>
    <button onclick="window.open('file:///D:/opennotepad.bat')"> Launch batnote </button>
    </body>
    </html>
    Chapter 5: Creating your first HTML-based AIR application with the AIR SDK

    Seems to be security violation. You can't execute bat or cmd

  • Can I run a .bat, .cmd, or .ps1 on SBS 2011 server startup, without login.... like a service.

    Hi all,
    I'm running Windows SBS 2011.  I need to run a script at server startup, prior to login to any user account (like a service does...).  This short script will check the status of another service.  Because this
    service depends on Exchange & SQL, it sometimes fails to start at reboot if Exchange and or SQL Server haven't finished initializing.
    I was also thinking of using sc.exe to change the config of the service in question (adding dependencies), but this is a third-party software from Reuters, and I am somewhat reluctant to edit the configuration of someone else's code (and possibly break something). 
    This is a production server at a law firm.
    here's the script:
    start of listing
    =============================================
    @echo off
    rem Look for ProLaw Groupware Agent in running Services.
    rem check to see if ProLaw Groupware Agent is running. If it IS
    rem running, jump to exit-program label, else run the Agent after
    rem waiting for Microsoft Exchange & Microsoft SQL Server to start.
    rem =======================================
    :start
    C:\Windows\system32\sc query "ProLawGroupwareAgent" | find "RUNNING" >> c:\temp\plgwagentstatus.txt
    if errorlevel 0 goto :end
    rem wait 10 min after server startup,
    rem to (Allow Exchange & SQL to start)
    rem THEN, start ProLawGroupwareAgent
    rem ========================
    echo "Service not started.... Let's wait 10 minutes, and retry." >> c:\temp\plgwagentstatus.txt
    c:\
    timeout /t 600 > nul
    cd "\Program Files (x86)\ThomsonElite\ProLaw GroupwareAgent"
    net start AgentHostService.exe
    timeout /t 20 > nul
    goto :start
    :end
    =============================================
    end of listing

    What I do in this case (I don't have access to exact script I use) is a similar script scheduled via windows task scheduler every five minutes to check if service running, if not start it but you can have the IF-THEN-ELSE do whatever is required.
    http://gallery.technet.microsoft.com/scriptcenter/01fcf945-ad73-44e0-8cb5-152432bc6bcf
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to run a .bat file with string arguments?

    Hi,
    I have a problem in running a .bat file with string arguments
    - the file is XPathOverlap.bat with 2 stringarguments like: "/a" and "//a"
    - the cmd: c:\Downloads>XPathOverlap "//a" "/a" works fine.
    - here is my code:
    public static void test(){
         try{
              String loc1 = "//a";
              String loc2 = "/a";
              String[] cmdarray = {"c:\Downloads\XPathOverlap", loc1, loc2};
              Process p = Runtime.getRuntime().exec(cmdarray);
              p.waitFor();
              System.out.println("Exit Value: "+p.exitValue());
              //code to print command line replies
              InputStream cmdReply = p.getInputStream();
              InputStreamReader isr = new InputStreamReader(cmdReply);
              BufferedReader br = new BufferedReader(isr);
              String line = null;
              while((line=br.readLine())!=null){
                   System.out.println(line);
         }catch(Throwable t){
              t.printStackTrace();
    How can i run this bat file with 2 string arguments?

    Hi,
    thanks thats good and helpfully
    so this code works:
    String loc1 = "\"/a\"";
    String loc2 = "\"//a\"";
    String path = System.getenv("MuSatSolver");
    String[] cmdarray = {"cmd.exe","/C",path+"XPathOverlap.bat", loc1, loc2};
    Process p = Runtime.getRuntime().exec(cmdarray);
    p.waitFor();
    System.out.println("Exit Value: "+p.exitValue());
    InputStream cmdErr = p.getErrorStream();
    InputStreamReader isrErr = new InputStreamReader(cmdErr);
    BufferedReader brErr = new BufferedReader(isrErr);
    String line2 = null;
    while((line2=brErr.readLine())!=null){
         System.out.println("Error: "+line2);
    but now i have another problem, this is the output:
    Exit Value: 0
    Error: java.lang.NoClassDefFoundError: fr/inrialpes/wam/treelogic/_xml/XPathOverlap
    Error: Exception in thread "main" The Exit value is 0, so the process terminates normally.
    I have tested this bat file in cmd and there it works correctly.
    Why do i get this error message?

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000?
    For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
    How can I do that?

    Hi, you have to put it in a Windows service.
    To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
    For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
    Regards,
    Ivan.

  • Error when running a bat file

    Can someone tell me what this error means; "ORA-12560: TNS:protocol adapter error"
    I had Oracle XE on my Windows XP Pro SP3, but I also install the EE of Oracle which I haven't setup yet. Originally when I run this .bat file by double clicking on it, "setup_distran_database.bat", everything worked fine. But now, I am getting tghe above error. Not sure if it was because I installed Oracle EE.
    This is the .bat file:
    *@ECHO off*
    *:: Ayo Ojikutu*
    *:: Using Murach's Oracle SQL and PL/SQL*
    *:: and Mike Murach & Associates, Inc. example*
    *:: Nov 11, 2011*
    *:: Uses SQL*Plus utility to run the SQL scripts that create*
    *:: and populate the tables in the AP, OM, and EX schemas.*
    *:: If necessary, edit the username/password*
    sqlplus system/passwordhere @setup_distran_database*
    *:: Display a message about the log file*
    ECHO.
    ECHO For details, check the setup_distran_database.log file in the current directory.
    ECHO.
    *:: Display 'press any key to continue' message*
    PAUSE

    "ORA-12560: TNS:protocol adapter error"
    Not sure if it was because I installed Oracle EE.Most probably yes, Windows has the last installed product environment. Try setting XE environment before running sqlplus, something likeset ORACLE_SID=XE
    set ORACLE_HOME=<XE Oracle Home>
    set PATH=<XE Oracle Home\bin>;%PATH%
    sqlplus .....

  • How to run a .bat code?

    how to run a .bat code?
    I have a code ,batch (.bat) in richtextbox1, and want , to text(code .bat) in richtextbox1 it was launched in the console cmd
    without the use of saving a file with this code and run it

    In your code, right-click on the word "Desktop". In the context menu, select "go to definition". The object browser opens. You will see other members of the SpecialFolder enum. You can examine these values and read the description below.
    One of them is "ProgramFiles". If you pass this value to GetFolderPath, it returns the path of the program files.
    Another way: In your code, move the caret to the word "desktop" and press Ctr+J. It will open the same list of enum values. Whenever you select an item in the list, the tooltip should also show a description of the enum value.
    Then look at
    System.IO.Path.Combine to combine the program files path with the sub folder path. The result will be the full path of the directory. You can call Path.Combine for every path name or file name that you want to add.
    Armin

  • I changed the Computer Name and i can not run EM.

    I had to change the computer name in order to connect to the intranet.
    I updated the listener.ora and tnsnames.ora with the new computer name.
    I can run SqlPlus but i can not run EM on http://tahirpc.isu.intranet:1158/em *
    I checked Services and I saw that OracleDBConsoleorcl service do not work. I get error code:2 when i try to run it manually.
    What should i do?
    New computer name: tahirpc.isu.intranet
    Old computer name: mtkeskin.isu.intranet
    OS: Win 7
    Oracle: 10.2.3
    ------------------------

    Thank you Jean-Valentin . I tried those but unfortunately this did not work.
    Here is what i did on CMD:
    RECREATE
    C:\Users\mtkeskin>EMCA -CONFIG DBCONTROL DB -REPOS RECREATE
    STARTED EMCA at 28.Oca.2010 11:28:43
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user: l
    Password for SYSMAN user:
    Password for SYSMAN user: Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
    Database hostname ................ tahirpc.isu.intranet
    Listener port number ................ 1521
    Database SID ................ ORCL
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:29:07 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-28-42-AM.log.
    28.Oca.2010 11:29:24 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    28.Oca.2010 11:32:09 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    28.Oca.2010 11:32:10 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    28.Oca.2010 11:37:14 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    28.Oca.2010 11:37:34 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\oracle\product\10.2.0\db_1\bin\emctl.bat depl
    oy dbconsole D:\oracle\product\10.2.0\db_1\tahirpc.isu.intranet_ORCL tahirpc.isu
    .intranet:3938 tahirpc.isu.intranet ORCL
    28.Oca.2010 11:37:34 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-01-28_11-28-42-AM.log for more details.
    Could not complete the configuration. Refer to the log file at D:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-01-28_11-28-42-AM.log for more deta
    ils.
    DROP
    C:\Users\mtkeskin>EMCA -DECONFIG DBCONTROL DB -REPOS DROP
    STARTED EMCA at 28.Oca.2010 11:47:57
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:48:13 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-47-56-AM.log.
    28.Oca.2010 11:48:17 oracle.sysman.emcp.util.DBControlUtil stopOMS
    INFO: Stopping Database Control (this may take a while) ...
    28.Oca.2010 11:48:18 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    28.Oca.2010 11:50:35 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at 28.Oca.2010 11:50:35
    CREATE
    C:\Users\mtkeskin>EMCA -CONFIG DBCONTROL DB -REPOS CREATE
    STARTED EMCA at 28.Oca.2010 11:54:55
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
    Database hostname ................ tahirpc.isu.intranet
    Listener port number ................ 1521
    Database SID ................ ORCL
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:55:19 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-54-55-AM.log.
    28.Oca.2010 11:55:32 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    28.Oca.2010 12:00:13 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    28.Oca.2010 12:00:27 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\oracle\product\10.2.0\db_1\bin\emctl.bat depl
    oy dbconsole D:\oracle\product\10.2.0\db_1\tahirpc.isu.intranet_ORCL tahirpc.isu
    .intranet:3938 tahirpc.isu.intranet ORCL
    28.Oca.2010 12:00:27 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-01-28_11-54-55-AM.log for more details.
    Could not complete the configuration. Refer to the log file at D:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-01-28_11-54-55-AM.log for more deta
    ils.
    I checked log files but i did not understand anything of 'em :(
    Edited by: NaKKaSh.TR on 28.Oca.2010 12:12
    Edited by: NaKKaSh.TR on 28.Oca.2010 12:14

  • Error running ocsinstall.bat

    When I run 'ocsinstall.bat', in step 2 I recive error:
    === Step2: Importing Portal objects if not exist ===
    === Portal Objects Imported ===
    Error while trying to get Region IDs
    Do anybody knows how to resolve it??
    Thank you

    Please can some help on how get the window 2000 server script to create subscriber on collaboration suites.
    called create_subscriber.bat

  • Can not run jcwde (Somebody help me please !)

    Hi all, I'm a newbie in java card development.
    Let's get to the point. I have some problem with jcwde and I've been searching for the similar problems in this forum such as : here here and here here
    Other sources that I've referred to is : here and here
    I'm trying to set environment variable for java card development.
    Before running jcwde, i also run samples_build.bat but I don't know whether it OK or not.
    When I try to run jcwde for testing demo file (I type : jcwde -jcwde.app in command prompt) the only message that i got is :
    C:\java_card_kit-2_1_2\samples\src\demo>jcwde jcwde.app
    'C:\Program' is not recognized as an internal or external command, operable program or batch files
    Is there any problem with my enviromnent variables setting ? since I'm not sure how to fix it
    here is mine :
    JAVA_HOME : C:\Program Files\Java\jdk1.5.0_04
    JC21_HOME : C:\java_card_kit-2_1_2
    CLASSPATH : .;C:\java_card_kit-2_1_2\lib\api21.jar
    PATH : C:\Program Files\Java\jdk1.5.0_04\bin;C:\java_card_kit-2_1_2\bin
    Oh yeah, I almost forgotten that I'm using Windows XP Professional Edition SP 1, and Java Card Development Kit 2.1.2
    Can somebody help me please or maybe give me advice about what I'm doing is right or wrong ?
    Thanks in advance,
    Best Regards,
    iCH1
    Edited by: ichiwan on Mar 12, 2008 10:00 PM

    dear kicklee,
    Thank you for your response to the topic. By the way, do you mean that all CLASSPATH variable must not be more than 8 characters ?
    I just did it, but still the same error occur.
    Is there any solution for this ?
    I need you to copy-paste all your succesfull CLASSPATH configuration here for better explanation.
    thx in advance.
    Best Regards,
    iCH1
    Edited by: ichiwan on Mar 18, 2008 8:09 AM
    Edited by: ichiwan on Mar 18, 2008 8:13 AM
    Edited by: ichiwan on Mar 18, 2008 8:15 AM

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

  • Can I run a Unix shell when insert some record on a specific table?

    Can I run a Unix shell when insert some record on a specific table?
    I need to run a Unix shell when a record be insert on a table. Is there a way in order to do that?
    THanks,
    Carlos.

    1. Make a backup of the extproc.c file in the c:\orant\rdbms80\extproc
    directory.
    2. Create a file called extern.c in the c:\orant\rdbms80\extproc directory.
    The "extern.c" file :
    #include <oci.h>
    #define NullValue -1
    #include<stdio.h>
    #include<string.h>
    long __declspec(dllexport) OutputString(context ,
                             path , path_ind ,
                             message , message_ind,
                             filemode , filemode_ind ,
                             len , len_ind )
    char *path;
    char *message; 
    char *filemode;
    int len;
    OCIExtProcContext *context;
    short path_ind;
    short message_ind;
    short filemode_ind;
    short len_ind;
    FILE *file_handle;
    int i ;
    char str[3];
    int value;
    /* Check whether any parameter passing is null */
    if (path_ind == OCI_IND_NULL || message_ind == OCI_IND_NULL ||
    filemode_ind == OCI_IND_NULL || len_ind == OCI_IND_NULL ) {
    text initial_msg = (text )"One of the Parameters Has a Null Value!!! ";
    text *error_msg;
    /* Allocate space for the error message text, and set it up.
    We do not have to free this memory - PL/SQL will do that automatically. */
    error_msg = OCIExtProcAllocCallMemory(context,
    strlen(path) + strlen(initial_msg) + 1);
    strcpy((char *)error_msg, (char *)initial_msg);
    /*strcat((char *)error_msg, path); */
    OCIExtProcRaiseExcpWithMsg(context, 20001, error_msg, 0);
    /* OCIExtProcRaiseExcp(context, 6502); */
    return 0;
    /* Open the file for writing. */
    file_handle = fopen(path, filemode);
    /* Check for success. If not, raise an error. */
    if (!file_handle) {
    text initial_msg = (text )"Cannot Create file ";
    text *error_msg ;
    /* Allocate space for the error message text, and set it up.
    We do not have to free this memory - PL/SQL will do that automatically. */
    error_msg = OCIExtProcAllocCallMemory(context,
    strlen(path) + strlen(initial_msg) + 1);
    strcpy((char *)error_msg, (char *)initial_msg);
    strcat((char *)error_msg, path);
    OCIExtProcRaiseExcpWithMsg(context, 20001, error_msg, 0);
    return 0;
    i = 0;
    while (i < len)
    /* Read the hexadecimal value(1). */
    str[0] = message;
         i++;
    /* Read the hexadecimal value(2). */
    str[1] = message[i];
    /* Convert the first byte to the binary value. */
    if (str[0] > 64 && str[0] < 71)
    str[0] = str[0] - 55;
    else
    str[0] = str[0] - 48;
    /* Convert the second byte to the binary value. */
    if (str[1] > 64 && str[1] < 71)
    str[1] = str[1] - 55;
    else
    str[1] = str[1] - 48;
    /* Convert the hex value to binary (first & second byte). */
    value = str[0] * 16 + str[1];
    /* Write the binary data to the binary file. */
    fprintf(file_handle,"%c",value);
              i++;
    /* Output the string followed by a newline. */
    /* fwrite(message,len,1,file_handle); */
    /* Close the file. */
    fclose(file_handle);
    3. Use the make.bat available in the c:\orant\rdbms80\extproc directory. You
    need to run vcvars32.bat file before running this batch file. This will
    create a dll file.
    4. Configure the tnsnames.ora and the listener.ora files.
    The tnsnames.ora should contain the following entries.
    extproc_connection_data.world =
    (DESCRIPTION =
    (ADDRESS =
    (PROTOCOL = IPC)
    (KEY = ORCL)
    (CONNECT_DATA = (SID = extproc)
    The listener.ora should contain the following entries.
    # P:\ORANT\NET80\ADMIN\LISTENER.ORA Configuration File:p:\orant\net80\admin\listener.ora
    # Generated by Oracle Net8 Assistant
    LISTENER8 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = winnt_nsc)(PORT = 1521))
    SID_LIST_LISTENER8=
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = winnt_nsc)
    (SID_NAME = ORCL)
    (SID_DESC =
    (SID_NAME = extproc)
    (PROGRAM = extproc)
    5. Login from sqlplus and issue the following statements.
    create library externProcedures as 'C:\orant\RDBMS80\EXTPROC\extern.dll';
    Create or replace PROCEDURE OutputString(
    p_Path IN VARCHAR2,
    p_Message IN VARCHAR2,
    p_mode in VARCHAR2,
    p_NumLines IN BINARY_INTEGER) AS EXTERNAL
    LIBRARY externProcedures
    NAME "OutputString"
    With context
    PARAMETERS (CONTEXT,
    p_Path STRING,
    p_path INDICATOR,
    p_Message STRING,
    p_message INDICATOR,
    p_mode STRING,
    p_mode INDICATOR,
    p_NumLines INT,
    p_numlines INDICATOR);
    This is the pl/sql block used to write the contents of the BLOB into a file.
    Set serveroutput on before running it.
    SQL> desc lob_tab;
    Name Null? Type
    C1 NUMBER
    C2 BLOB
    lob_tab is the table which contains the blob data.
    declare
    i1 blob;
    len number;
    my_vr raw(10000);
    i2 number;
    i3 number := 10000;
    begin
    -- get the blob locator
    SELECT c2 INTO i1 FROM lob_tab WHERE c1 = 2;
    -- find the length of the blob column
    len := DBMS_LOB.GETLENGTH(i1);
    dbms_output.put_line('Length of the Column : ' || to_char(len));
    -- Read 10000 bytes at a time
    i2 := 1;
    if len < 10000 then
    -- If the col length is < 10000
    DBMS_LOB.READ(i1,len,i2,my_vr);
    outputstring('p:\bfiles\ravi.bmp',rawtohex(my_vr),'wb',2*len);
    -- You have to convert the data to rawtohex format. Directly sending the buffer
    -- data will not work
    -- That is the reason why we are sending the length as the double the size of the data read
    dbms_output.put_line('Read ' || to_char(len) || 'Bytes');
    else
    -- If the col length is > 10000
    DBMS_LOB.READ(i1,i3,i2,my_vr);
    outputstring('p:\bfiles\ravi.bmp',rawtohex(my_vr),'wb',2*i3);
    dbms_output.put_line('Read ' || to_char(i3) || ' Bytes ');
    end if;
    i2 := i2 + 10000;
    while (i2 < len ) loop
    -- loop till entire data is fetched
    DBMS_LOB.READ(i1,i3,i2,my_vr);
    dbms_output.put_line('Read ' || to_char(i3+i2-1) || ' Bytes ');
    outputstring('p:\bfiles\ravi.bmp',rawtohex(my_vr),'ab',2*i3);
    i2 := i2 + 10000 ;
    end loop;
    end;

  • Using FDM can we execute the .bat file

    Hi,
    I am trying to automate the load process, ie I want to load data through FDM into essbase and once the data is loaded I want to run a bat file through which in the essbase the agg scripts will run.
    So Can I write it in the Aftload a script to call the .bat file which has the agg scripts in it.
    Is it possible to do?
    Can anyone help me giving idea to me on this?
    Thanks,

    If i may, i would like some help on this subject.
    i tried both methods and they both work from the WB. but as soon as i tried to use them on the web, nothing happens. i tried to write that in an event or as a stand alone task in task flow but no results
    API.DataWindow.Utilities.mShellAndWait CStr("C:\Hyperion\products\FinancialDataQuality\SharedComponents\export.bat"), 0
    this bat file works as a cmd, a bat in win explorer or in the WB, but i can not seem to find a way to include it in a script that i can use from the web. i tried batch, Importaction,...any suggestion?

  • Can't run non-UNICODE-DbSl against UNICODE database

    Hi everyone. I get this error during the update of Solution Manager 7.1 SPS4 (dual stack) to SPS10. It is a green install. This happens during the
    phase PREP_EXTRACT/PREIMP! Of the ABAP stack. Step 5.2. I do not see a lot of people with this problem, so I assume it is something I am doing wrong, as it is my first time using the tool SUM.
    Details of the system:
    Solution Manager 7.1 SPS4
    Windows 2008 R2 64 bit
    Microsoft SQL 2008 R2 64 bit SP1
    Central installation type with all components on
    the same host
    Kernel level 600
    Here is what I have done so far:
    Downloaded the media as described in the installation
    guide.
    Worked my way through the install using the
    Software Provision Manager 1.0
    Updated the Kernel from level 401 to 600, by
    copying the files from the download folder to the F:\usr\sap\SM1\SYS\exe\uc\NTAMD64
    folder. This is the folder that is assigned to the DIR_CT_RUN parameter.
    I start the STARTUP.BAT file in the SUM folder.
    I then start the SUM GUI and run through the
    steps and in step 3 I map the Stack configuration file (XML) to one listed in
    the folder “51047130\DATA” called “SPS10_stack.xml”
    Then I
    get to 5.2 where the system stops with this error:
    Severe error(s) occurred in phase PREP_EXTRACT/PREIMP!
    Last error code set: Single errors (code &lt;= 8) found in logfile 'PREIMP.ELG'
    ERROR: Detected the following errors:
    # F:\usr\SUM\abap\log\R710VPE.<DB>:
          4 ETW000 TRACE-INFO: 19:  [    dev trc,00000]  Driver: sqlncli10.dll Driver release: 10.50.2769                                3938  0.039733
          4 ETW000 TRACE-INFO: 20:  [    dev trc,00000]  GetDbRelease: 10.50.2769.00                                                      1603  0.041336
          4 ETW000 TRACE-INFO: 21:  [    dev trc,00000]  GetDbRelease: Got DB release numbers (10,50,2769,0)                                21  0.041357
          4 ETW000 TRACE-INFO: 22:  [    dev trc,00000]  Can't run non-UNICODE-DbSl against UNICODE database                              2647  0.044004
          4 ETW000 TRACE-INFO: 23:  [    dev trc,00000]  CheckCodepageType failed. Connect terminated.                                      13  0.044017
          2EETW169 no connect possible: "DBMS = MSSQL                            ---  SERVER = '<SERVER>' DBNAME = '<DB>'"
    Can
    anyone please help?
    PS:
    The admin user that I use do have access to the database. It is listed with
    sysadmin role and the default DB is the Solution Manager db.

    ERROR: Detected the following errors:
    # F:\usr\SUM\abap\log\R710VPE.<DB>:
          4 ETW000 TRACE-INFO: 19:  [    dev trc,00000]  Driver: sqlncli10.dll Driver release: 10.50.2769                                3938  0.039733
          4 ETW000 TRACE-INFO: 20:  [    dev trc,00000]  GetDbRelease: 10.50.2769.00                                                      1603  0.041336
          4 ETW000 TRACE-INFO: 21:  [    dev trc,00000]  GetDbRelease: Got DB release numbers (10,50,2769,0)                                21  0.041357
          4 ETW000 TRACE-INFO: 22:  [    dev trc,00000]  Can't run non-UNICODE-DbSl against UNICODE database                              2647  0.044004
          4 ETW000 TRACE-INFO: 23:  [    dev trc,00000]  CheckCodepageType failed.
    As per error, you have used wrong kernel. Please make sure that you use unicode kernel as your system is also unicode.
    Thanks,
    Sunny

Maybe you are looking for

  • Symbian belle / nokia 701

    hello symbian belle fp2 was updated in my nokia 701 yet there are many defects 1) front camera not supported 2) no dedicated exit option in camera app 3) arrow keys in keyboard missing ( strongly required ) 4) der should be normal prediction option i

  • Adding new coloumns at run time in report

    hi friends, i wan to knw, how to add coloumns at runtime in the report. the requirement is like,,the user wll enter the cost center group in selection screen n i have to show all the cost elements in tht cost elements group as different coluomn, with

  • Unable to configure Smarttalk in My BT

    How do I configure the settings for a SmartTalk phone account when MY BT won't let me because it is still "processing a previous request" and won't show the mobile phone? It has been like this for a week now ..... I need to check the settings because

  • Templates in Foreign Language

    I am trying to use Pages to create a Resume' but whenever I select a template it opens up in a foreign language? I usually use Word, but I cannot find Resume' templates in Word. Can someone help me fix the language issue? Or inform me of where to fin

  • Album artwork not copying over to ipod touch

    Hi there, run into a bit of a problem, I upgraded to 1.1.3 (not 1.1.4 just yet), when I came to re-load my entire library back onto my ipod, it copies the tracks over but fails to transfer the album artwork for abou 98% of the albums. On my PC EVERY