Run from CMD

I had written JFreeChart code that enables me to draw barchart for the given file input...
but now I had a problem..I am able to execute it using eclipse becoz..it requires additional packages like
jfreechart-1.0.12.jar
jcommon-1.0.15.jar
and my program returns an image of barchart....
is it possible for me to execute the my java jfreechart from command prompt...as I do for normal java programs...

Just include those jars in the classpath by using the -cp argument when you run it from the command line.

Similar Messages

  • *Please*, how do i run from cmd line??

    I've written a program using swing, on JBuilder6 Personal, and when i run it under JBuilder it runs perfectly. But, how do i run the program from command line? I've tried adding those PATHs and CLASSPATHs but still i can't run the program. I've tried copying the java.exe program to the directory where my classes are, and tried running it from there, but still i had problems. It always says something like "Exception in thread "main", and a lot of other msgs.
    Also, i can't find any swing.jar file in my disk. Shouldn't i have it? On some sites people tells you to put the swing directory on your autoexec, but i don't seem find this directory. (Well, having it or not, the program runs *perfectly* under JBuilder, like i said before).
    Please, this is driving me crazy, i'm tired of searching on the internet for help with this problem!
    Just some extra notes:
    - I got Windows 98 SE on my computer
    - Here's how i'm trying to run the program: java PainelPrincipal (where "PainelPrincipal" is a .class file and it's got a main method)
    I'd appreciate *any* help,
    Victor.

    Here are the error msgs i get:
    Exception in thread "main" java.lang.NoClassDefFoundError: PainelPrincipal (wrong name: chat/PainelPrincipal)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    ... (more +- 6 lines like these...)
    These are the msgs i get when i execute:
    java PainelPrincipal
    and "java.exe" is on the same directory as PainelPrincipal.class and all my other classes.
    When i tri to run java.exe not from the same directory where my classes are i get this one line msg error:
    Exception in thread "main" java.lang.NoClassDefFoundError: PainelPrincipal
    Well, that's it, hope it'll help you to help me.
    Victor.

  • How to run a CMD command directly from run ?

    How to run a CMD command directly from run ?
    Like "cmd md D:\abcd". I did this before. But now I totally forgot how to do that ?
    Please help..........

    Hi,
    To add, here is the command CMD reference:
    Cmd
    Best regards
    Michael Shao
    TechNet Community Support

  • Running a CMD.exe from PowerShell with arguments

    Hello guys, I am working with a driver backup program that I need to automate. I am using Power shell to run a few other tasks, like check the OS version and create a folder based on the system type for drivers. We deploy many different devices and needed
    a way to automate. That is neither here nor there. Here is what I am trying to run, but the CMD, will not seem to pick up the arguments. If I run from the CMD prompt, it will run as expected, but when I lick it off with Power shell, I get a few errors. 
    Here is what I have:
    $command = @'
    cmd.exe /C C:\DriverBU\DrvBK.exe MODE="BACKUP" BKPATH="C:\TempDrivers" BKDESC="Drivers" BKFILE="Backup %NOW%  %COMPUTERNAME%.bki" BKPATHFTM="%COMPUTERNAME%" BKDEVFMT="%DEVNAME%" BKDATEFMT=""
    OPT="HW"
    Invoke-Expression -Command:$command
    This will open the program, however, will not run the arguments.
    Thoughts?
    Thank you!
    Paul
    Duramaxster

    Hello guys, I am working with a driver backup program that I need to automate. I am using Power shell to run a few other tasks, like check the OS version and create a folder based on the system type for drivers. We deploy many different devices and needed
    a way to automate. That is neither here nor there. Here is what I am trying to run, but the CMD, will not seem to pick up the arguments. If I run from the CMD prompt, it will run as expected, but when I lick it off with Power shell, I get a few errors. 
    Here is what I have:
    $command = @'
    cmd.exe /C C:\DriverBU\DrvBK.exe MODE="BACKUP" BKPATH="C:\TempDrivers" BKDESC="Drivers" BKFILE="Backup %NOW%  %COMPUTERNAME%.bki" BKPATHFTM="%COMPUTERNAME%" BKDEVFMT="%DEVNAME%" BKDATEFMT="" OPT="HW"
    Invoke-Expression -Command:$command
    This will open the program, however, will not run the arguments.
    Thoughts?
    Thank you!
    Paul
    Duramaxster
    Part of your problem is that you cannot use @''@  (a here string) to specify a command because it retains the line breaks.
    ¯\_(ツ)_/¯

  • Running ant build scripts from cmd fails on Windows Server

    Hi all!
    I'm trying to build and package ME on a Windows Server calling the ant build script targets from cmd. This works fine on a Windows XP machine. On a Windows Server machine however the ant internal calls to nwcetool.bat are failing because -files are not found in DEPLOYARCHIVES. And these files are really not there although they should have been created by nwcetool.
    Does anyone have a clue why calling ant build script in cmd on a Windows XP machine will work but fails on Window Server?
    Thanks a lot!

    And this is part 2 :
    package.sca.impl:
       delete Deleting directory C:\SAP\SAPME\SDK\build\results\server\package.sca
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca\ear
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\BUILDARCHIVES
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\DEPLOYARCHIVES
       delete Deleting directory C:\SAP\SAPME\SDK\build\results\server\create.application.xml
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\create.application.xml
         echo 2011-04-07 09:33:45 Creating application descriptor.
         xslt Processing C:\SAP\SAPME\SDK\extension\META-INF\application.xml to C:\SAP\SAPME\SDK\build\results\server\create.application.xml\application.xml
         xslt Loading stylesheet C:\SAP\SAPME\SDK\build\xslt\create-application-xml.xslt
         xslt ejbModule=
         xslt webModule=salt-webservice
         copy Copying 1 file to C:\SAP\SAPME\SDK\extension\META-INF
       delete Deleting directory C:\SAP\SAPME\SDK\build\results\server\merge.application.xml
        mkdir Created dir: C:\SAP\SAPME\SDK\build\results\server\merge.application.xml
         echo 2011-04-07 09:33:45 Merging application descriptor "C:\SAP\SAPME\SDK\extension\META-INF/application.xml" with "C:\SAP\SAPME\SDK\build\results\server\master\resources\xml/application.xml".
         xslt Processing C:\SAP\SAPME\SDK\build\results\server\master\resources\xml\application.xml to C:\SAP\SAPME\SDK\build\results\server\merge.application.xml\merged.xml
         xslt Loading stylesheet C:\SAP\SAPME\SDK\build\xslt\jee-application-merge.xslt
         xslt jee-application-merge: file to merge is C:\SAP\SAPME\SDK\extension\META-INF/application.xml
         xslt jee-application-merge: checking for module conflicts...
         xslt jee-application-merge: Base EJBs=me.activity.ejb-5.2.5.3-Base.jar m
    e.alarm.ejb-5.2.5.3-Base.jar me.appconfig.ejb-5.2.5.3-Base.jar me.backgroundproc
    ess.ejb-5.2.5.3-Base.jar me.browse.ejb-5.2.5.3-Base.jar me.common.frame.ejb-5.2.
    5.3-Base.jar me.container.ejb-5.2.5.3-Base.jar me.correctiveaction.ejb-5.2.5.3-B
    ase.jar me.customdata.ejb-5.2.5.3-Base.jar me.datacollection.ejb-5.2.5.3-Base.ja
    r me.dbsequence.ejb-5.2.5.3-Base.jar me.defaultvalue.ejb-5.2.5.3-Base.jar me.dem
    and.ejb-5.2.5.3-Base.jar me.integration.xml.ejb-5.2.5.3-Base.jar me.inventory.ej
    b-5.2.5.3-Base.jar me.nonconformance.ejb-5.2.5.3-Base.jar me.productdefinition.e
    jb-5.2.5.3-Base.jar me.production.ejb-5.2.5.3-Base.jar me.status.ejb-5.2.5.3-Bas
    e.jar me.numbering.ejb-5.2.5.3-Base.jar me.diagnostics.ejb-5.2.5.3-Base.jar me.d
    ocument.ejb-5.2.5.3-Base.jar me.httpserver.ejb-5.2.5.3-Base.jar me.integration.c
    nc.ejb-5.2.5.3-Base.jar me.integration.collaboration.ejb-5.2.5.3-Base.jar me.int
    egration.sap.ejb-5.2.5.3-Base.jar me.labor.ejb-5.2.5.3-Base.jar me.user.ejb-5.2.
    5.3-Base.jar me.ods.ejb-5.2.5.3-Base.jar me.plant.ejb-5.2.5.3-Base.jar me.produc
    tiondate.ejb-5.2.5.3-Base.jar me.reasoncode.ejb-5.2.5.3-Base.jar me.reporting.ej
    b-5.2.5.3-Base.jar me.rtw.ejb-5.2.5.3-Base.jar me.script.ejb-5.2.5.3-Base.jar me
    .security.ejb-5.2.5.3-Base.jar me.solutionverification.ejb-5.2.5.3-Base.jar me.t
    imegranularity.ejb-5.2.5.3-Base.jar me.tooling.ejb-5.2.5.3-Base.jar
         xslt jee-application-merge: SSP EJBs=
         copy Copying 1 file to C:\SAP\SAPME\SDK\build\results\server\sda\META-INF
         copy Copying 163 files to C:\SAP\SAPME\SDK\build\results\server\package.sca\ear
          jar Building jar: C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\BUILDARCHIVES\me.ear
         echo 2011-04-07 09:33:45 nwce.tool=C:\SAP\SAPME\SDK\build\tools\ceclt\nwcetool\nwcetool.bat, nwce.tool.lib=C:\SAP\SAPME\SDK\build\tools\ceclt\lib, CECLT JDK=C:Program Files (x86)Javajdk1.5.0_22
         echo 2011-04-07 09:33:45 Executing CECLT with the following arguments:
    -c "createsda -n me/ear -v sap.com -l local -type J2EE -counter 5.2.5.3.330 -scn
    ME -scv sap.com -deps sap.com:me/security/loginmodule BUILDARCHIVES\me.ear DEPLOYARCHIVES\me.web-ext.sda-5.2.5.3-Base" -e
         exec The filename, directory name, or volume label syntax is incorrect.
         exec Result: 1
    BUILD FAILED
    C:\SAP\SAPME\SDK\build\script\build.dev.sobsap2.xml:1665: The following error occurred while executing this line:
    C:\SAP\SAPME\SDK\build\script\build.dev.sobsap2.xml:1723: Warning: Could not find file C:\SAP\SAPME\SDK\build\results\server\package.sca\sca\DEPLOYARCHIVES\me.web-ext.sda-5.2.5.3-Base.ear to copy.

  • What command can be run from the cmd to inquire about the language layout that is used right now?

    I have windows 7 32bit platform. Is there any command that can be run from the command line just to inquire about the language bar that is currently in use? Suppose I have English keyboard on my machine but I am switching between 3 languages when I write
    my documents (e.g. English, German, Spanish). I want to know if there is any way to tell what language layout that is in current use as seen in the language bar. This question is not about how to change language layout from the command line -- just to know
    what layout. For example, the command can return some sort of string to indicate which layout is currently in use: "english", "german", "spanish", and so on.
    My ultimate goal from this question is to pass this output into an external editor that will hopefully change font based on the input language? Any help to achieve this goal will be much appreciated.
    Or put differently, what is the best way to tell an external editor like Emacs about the current language layout that is in current use?

    For the current input language you can try using
    reg query "HKCU\Keyboard Layout\Preload" /v 1
    The return value includes an eight digit hex value. The first four digits indicate either default layout for the language (all zeros) or a variation (non-zero). The last four digits are the locale id - see:
    http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx
    From this table, you can see in the example above my input language is English - Australia. 
    For the keyboard layout you could try
    WMIC Path Win32_Keyboard Get Layout
    0409 is an English - US keyboard.
    For a few other ideas/methods try reading
    http://p0w3rsh3ll.wordpress.com/2013/06/07/about-keyboard-layouts/

  • Compile and Run From Windows Cmd Line?

    Hey,
    I have a Java project that I've created and run successfully from within Eclipse IDE. Now, I'm trying to compile and run from the command line so I don't have to depend on Eclipse. I can't seem to get it to work. I get tons of classpath looking errors.
    Is there a way to use Eclipse such that it will show you the correct synatx to run the project from the command line?
    Can anyone help me with this?
    My project structure is:
    MyProject
    ------src
    ---------------File1.java
    ---------------File2.java (main class)
    ------lib
    ---------------someFile1.jar
    ---------------someFile2.jar

    MyProject
    ------src
    ---------------File1.java
    ---------------File2.java (main class)
    ------lib
    ---------------someFile1.jar
    ---------------someFile2.jar
    try:
    c:\basedir> javac -classpath .;lib\someFile1.jar;lib\someFile2.jar src\*.java
    c:\basedir> java -cp .;lib\someFile1.jar;lib\someFile2.jar src.File2

  • An error The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered after launching a ps1 script from cmd file.

    I'm trying to load sharepoint script from *.cmd file. 
    I have Sharepoint 2010 installed on Windows 7 x64 and SQL server 2008r2.
    My cmd file is: 
    Powershell -v 2 -NonInteractive -NoLogo -File 1.ps1
    My sharepoint file 1.ps1 is:
    $snapin="Microsoft.SharePoint.PowerShell"
    if ($action -eq $null -or $action -eq '')
    {<br />
    # Action by default is complete uninstallation.
    $action='uninstall'
    $uninstall = $true
    else
    $action = $action.ToLower()
    switch($action)
    { $_ -eq "uninstall" } { $uninstall = $true; break }
    { $_ -eq "removesolution" } { $removeSolution = $true; break }
    { $_ -eq "deactivatecorpus" } { $deactivateCorpus = $true; break }
    { $_ -eq "deactivatesupport" } { $deactivateSupport = $true; break }
    default { Write-Host -f Red "Error: Invalid action: $action "; Exit -1 }
    Check the Sharepoint snapin availability.
    if (Get-PSSnapin $snapin -ea "silentlycontinue")
    Write-Host "PS snapin $snapin is loaded."
    elseif (Get-PSSnapin $snapin -registered -ea "silentlycontinue")
    Write-Host "PS snapin $snapin is registered."
    Add-PSSnapin $snapin
    Write-Host "PS snapin $snapin is loaded."
    else
    Write-Host -f Red "Error: PS snapin $snapin is not found."
    Exit -1
    $url = "http://pc1/sites/GroupWork/"
    $site= new-Object Microsoft.SharePoint.SPSite($url )
    $loc= [System.Int32]::Parse(1033)
    $templates= $site.GetWebTemplates($loc)
    foreach ($child in $templates){ write-host $child.Name " " $child.Title}<br />
    $site.Dispose()
    The script works fine from the Sharepoint 2010 management shell after launching the shell from the start menu (or from windows cmd by entering powershell -v 2):
    PS C:\2> .\1.ps1 
    PS snapin Microsoft.SharePoint.PowerShell is loaded.
    GLOBAL#0 Global template
    STS#0 Team Site
    STS#1 Blank Site
    STS#2 Document Workspace
    MPS#0 Basic Meeting Workspace
    MPS#1 Blank Meeting Workspace
    MPS#2 Decision Meeting Workspace
    MPS#3 Social Meeting Workspace
    MPS#4 Multipage Meeting Workspace
    CENTRALADMIN#0 Central Admin Site
    WIKI#0 Wiki Site
    BLOG#0 Blog
    SGS#0 Group Work Site
    TENANTADMIN#0 Tenant Admin Site
    {248A640A-AE86-42B7-90EC-45EC8618D6B4}#MySite2 MySite2
    {95629DC2-03B1-4C92-AD70-BC1FEAA49E7D}#MySite1 MySite1
    {7F01CFE4-F5E2-408B-AC87-E186D21F624C}#NewSiteTemplate NewSiteTemplate
    PS C:\2>
    I have an access to the database Sharepoint_Config from current domain user and from other 2 users. All users have db_owner rights to the Sharepoint_Config database. But
    i've loaded in windows from the user which is dbo in the database (dbo with windows authentication with domain\username for the current user). The dbo user has do_owner rights in the Sharepoint_Config database. I've tried to login under other users and launch
    the cmd file but without success.
    My PowerShell has version 2.0: 
    PS C:\2> $psversiontable
    Name Value
    CLRVersion 2.0.50727.5477
    BuildVersion 6.1.7601.17514
    PSVersion 2.0
    WSManStackVersion 2.0
    PSCompatibleVersions {1.0, 2.0}
    SerializationVersion 1.1.0.1
    PSRemotingProtocolVersion 2.1
    After launching the script from 1.cmd file i get an errors:
    C:\2>Powershell -v 2 -NonInteractive -NoLogo -File 1.ps1
    PS snapin Microsoft.SharePoint.PowerShell is registered.
    The local farm is not accessible. Cmdlets with FeatureDependencyId are not regis
    tered.
    Could not read the XML Configuration file in the folder CONFIG\PowerShell\Regist
    ration.
    Could not find a part of the path 'C:\2\CONFIG\PowerShell\Registration'.
    No xml configuration files loaded.
    Unable to register core product cmdlets.
    Could not read the Types files in the folder CONFIG\PowerShell\types.
    Could not find a part of the path 'C:\2\CONFIG\PowerShell\types'.
    "No Types files Found."
    Could not read the Format file in the folder CONFIG\PowerShell\format.
    Could not find a part of the path 'C:\2\CONFIG\PowerShell\format'.
    No Format files Found.
    PS snapin Microsoft.SharePoint.PowerShell is loaded.
    New-Object : Exception calling ".ctor" with "1" argument(s): "The Web applicati
    on at http://Pc1/sites/GroupWork/ could not be found. Verify t
    hat you have typed the URL correctly. If the URL should be serving existing con
    tent, the system administrator may need to add a new request URL mapping to the
    intended application."
    At C:\2\1.ps1:48 char:18
    + $site= new-Object <<<< Microsoft.SharePoint.SPSite($url )
    + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvoca
    tionException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
    Shell.Commands.NewObjectCommand
    Please help me. I don't understand why the script is launched from the sharepoint management shell but doesn't work from the cmd file.

    I have an answer for my problem:  for solving a problem I've made several steps:
    1. Run farm installation under AD admin credentials - runas /user:Domain1\DomainAdmin1 "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\psconfigui.exe".
    This user has been added as farm administrator in the wizard.
    This user has been added as DBO in the SQL Server. (This is the main difference with my previous attempts)
    2. Execute a command Add-SPShellAdmin Domain1\UserAccount1 in
    the Management Shell of Sharepoint.
    3. Run SQL server and add Sharepoint_Shell_Access to the Domain1\UserAccount1
    (my main account) in the Config database
    4. Run CMD file only from Start->Run menu. 
    runas /user:Domain1\UserAccount1 "C:\1.cmd".
    Do not use Total Commander command prompt or file list for executing *.cmd of *.bat files without root administrator account.
    Thanks all for help.

  • Java from cmd and Java called from Forms Services

    I apologize in advance if this is not place where i did must question.
    Anyway this is:
    From cmd on win xp If I run java -version I get:
    C:\Documents and Settings\Administrator>java -version
    java version "1.4.2_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
    While i installed JVM 1.6 and this is called from my forms services(OC4J)
    What I missing?
    Thanks in advance and sorry for my question

    *%JAVA_HOME\bin%* isn't the correct way to add the reference to the JAVA_HOME variable. You want *%JAVA_HOME%\bin*, notice the closing % sign comes after the name of the variable you created earlier (*JAVA_HOME*) and that causes its value to be prepended to \bin.
    Edited by: nogoodatcoding on May 18, 2009 7:33 PM

  • Running config.cmd produces - The system cannot find the path specified

    I had successfuly installed Weblgic/OSB and cofigured a domain on 64 bit windows 2008
    I then uninstalled all components and re-installed everything |( including deleting all directires ) .
    When I come to run config.cmd to create the OSB Weblogic domain I get :-
    The system cannot find the path specified
    I have set echo on and can see that the cmd file is attempting to acces directories that do not exist - so the command file is getting wrong info from somewhere but I just cannot figure out from where. I donlt think its a script issue, its more like an issue with some setting somewhere in windows regirsty or some cache that its pulinng it in from - the wrong directoties displayed seem to look like my existing dir's with ~1 and ~2 on the end.
    Any ideas suggestions greatly received.

    I have not edited any of the scipts at all - they are as they have been laid down byt the install.
    Contents of E:\Oracle\Middleware\Oracle_OSB1\common\bin\config.cmd below
    @ECHO ON
    SETLOCAL
    @REM Determine the location of this script...
    SET SCRIPTPATH=%~dp0
    FOR %%i IN ("%SCRIPTPATH%") DO SET SCRIPTPATH=%%~fsi
    @REM Set the ORACLE_HOME relative to this script...
    FOR %%i IN ("%SCRIPTPATH%\..\..") DO SET ORACLE_HOME=%%~fsi
    @REM Set the MW_HOME relative to the ORACLE_HOME...
    FOR %%i IN ("%ORACLE_HOME%\..") DO SET MW_HOME=%%~fsi
    @REM Set the home directories...
    CALL "%SCRIPTPATH%\setHomeDirs.cmd"
    @REM Set the config jvm args...
    SET CONFIG_JVM_ARGS=%CONFIG_JVM_ARGS% -DCOMMON_COMPONENTS_HOME=%COMMON_COMPONENTS_HOME%
    @REM Delegate to the main script...
    CALL "%WL_HOME%\common\bin\config.cmd" %*
    ENDLOCALContents of E:\Oracle\Middleware\Oracle_OSB1\common\bin\setHomeDirs.cmd
    @ECHO OFF
    @REM Temporary workaround:  normally use a hardcoded wls version (until the
    @REM installer can substitute it for us); but for now, need to work with multiple
    @REM versions.  Choose the highest avail.
    IF EXIST "%MW_HOME%\utils\config\10.3.3.0\setHomeDirs.cmd" (
      SET WLS_VER=10.3.3.0
    ) ELSE IF EXIST "%MW_HOME%\utils\config\10.3.2.0\setHomeDirs.cmd" (
      SET WLS_VER=10.3.2.0
    ) ELSE IF EXIST "%MW_HOME%\utils\config\10.3.1.0\setHomeDirs.cmd" (
      SET WLS_VER=10.3.1.0
    ) ELSE (
      SET WLS_VER=10.3
    IF EXIST "%MW_HOME%\utils\config\%WLS_VER%\setHomeDirs.cmd" (
      CALL "%MW_HOME%\utils\config\%WLS_VER%\setHomeDirs.cmd"
    @REM Set common components home...
    SET COMMON_COMPONENTS_HOME=%MW_HOME%\oracle_common
    IF EXIST %COMMON_COMPONENTS_HOME% FOR %%i IN ("%MW_HOME%\oracle_common") DO SET COMMON_COMPONENTS_HOME=%%~fsiContents of following :-
    dir /x E:\Oracle
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle
    22/06/2012 13:57 <DIR> .
    22/06/2012 13:57 <DIR> ..
    22/06/2012 14:00 <DIR> MIDDLE~1 Middleware
    0 File(s) 0 bytes
    3 Dir(s) 758,748,934,144 bytes free
    >
    dir /x E:\Oracle\Middleware
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle\middleware
    22/06/2012 14:00 <DIR> .
    22/06/2012 14:00 <DIR> ..
    22/06/2012 13:57 <DIR> COHERE~1.7 coherence_3.7
    22/06/2012 13:57 136 DOMAIN~1.XML domain-registry.xml
    22/06/2012 13:57 <DIR> logs
    22/06/2012 13:57 <DIR> modules
    22/06/2012 13:57 862 ocm.rsp
    22/06/2012 14:02 <DIR> ORACLE~1 oracle_common
    22/06/2012 14:02 <DIR> ORACLE~2 Oracle_OSB1
    22/06/2012 13:57 110,518 registry.dat
    22/06/2012 13:57 1,623 registry.xml
    22/06/2012 13:57 <DIR> utils
    22/06/2012 14:01 <DIR> WLSERV~1.3 wlserver_10.3
    4 File(s) 113,139 bytes
    9 Dir(s) 758,748,934,144 bytes free
    >
    dir /x E:\Oracle\MIDDLE~1\ORACLE~2\common\bin
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle\middle~1\oracle~2\common\bin
    22/06/2012 14:03 <DIR> .
    22/06/2012 14:03 <DIR> ..
    20/01/2010 15:11 640 CONFIG~1.CMD config - Copy.cmd
    22/06/2012 14:03 639 config.cmd
    20/01/2010 15:11 777 config.sh
    20/01/2010 15:11 638 pack.cmd
    20/01/2010 15:11 773 pack.sh
    20/01/2010 15:11 828 SETHOM~1.CMD setHomeDirs.cmd
    27/04/2010 06:04 839 SETHOM~1.SH setHomeDirs.sh
    20/01/2010 15:11 640 unpack.cmd
    20/01/2010 15:11 777 unpack.sh
    20/01/2010 15:11 538 WAS_CO~1.CMD was_config.cmd
    20/01/2010 15:11 638 WAS_CO~1.SH was_config.sh
    20/01/2010 15:11 1,344 wlst.cmd
    20/01/2010 15:11 1,579 wlst.sh
    20/01/2010 15:11 632 wsadmin.cmd
    27/04/2010 06:04 739 wsadmin.sh
    15 File(s) 12,021 bytes
    2 Dir(s) 758,748,934,144 bytes free
    >
    And also I am able to do the following :
    dir /x E:\oracle\MIDDLE~1\ORACLE~2\common\bin\setHomeDirs.cmd - ouptu below..
    >
    Volume in drive E is Apps
    Volume Serial Number is 6CF4-6338
    Directory of e:\oracle\MIDDLE~1\ORACLE~2\common\bin
    20/01/2010 15:11 828 SETHOM~1.CMD setHomeDirs.cmd
    1 File(s) 828 bytes
    0 Dir(s) 758,748,606,464 bytes free
    >
    So everythings look ok to me.
    So, it still begs the question why does my config.cmd script fall over doing the following :
    CALL "E:\oracle\MIDDLE~1\ORACLE~2\common\bin\\setHomeDirs.cmd"
    The system cannot find the path specified

  • How to run the cmd or bat files in the con current program R12 Windows

    Hi,
    I would like to run one cmd or batch file, usually it is looking exe file only.
    How do we register the cmd or bat files?
    We encountered lot of problems to call the exe files, now we want to know to use the cmd file or batch or prog file (abc.cmd or abc.bat or abc.prog)
    Application: R12.0.4
    OS: Windows 2003
    Awaiting for your sincere response,
    Thanks,
    M.K.Thamaraiselvan

    Hi Hussien,
    Please help me that
    1. Create a file under the %FND_TOP%\bin directory called testhost.cmd
    In the file put the following two lines:
    ls >> testhost.txt
    exit
    2. From the %FND_TOP%\bin directory, do the following:
    copy fndcpesr.exe testhost.exe
    I understood the above 2 steps, the below one, is making confusion. Can you explain that what application i have to choose. 3. Register testhost (use 'testhost' for the Execution File Name) as a concurrent executable in Oracle Applications.
    4. Register a testhost host program as a concurrent program in Oracle Applications.
    5. Add the program to your report group.
    Awaiting for your explanation clearly to go ahead.
    Please explain me that which application i can choose while define the executable and program.
    awaiting.
    Thanks
    M.K.Thamaraiselvan

  • Cannot find symbol error when compiling from cmd

    When compile and running program from Eclipse 3.3 everything works fine, but when trying to compile from cmd I get this error:
    C:\TEMP\1>javac A.java
    A.java:38: cannot find symbol
    symbol : class SwingWorker
    location: package javax.swing
    import javax.swing.SwingWorker;
    ^
    A.java:48: cannot find symbol
    symbol : class SwingWorker
    location: class A
    class Task extends SwingWorker {
    ^
    A.java:109: cannot find symbol
    symbol : method addPropertyChangeListener(A)
    location: class A.Task
    task.addPropertyChangeListener(this);
    ^
    A.java:110: cannot find symbol
    symbol : method execute()
    location: class A.Task
    task.execute();
    ^
    java -version get back: java version "1.6.0_14"....
    now, if i copy .class file that Eclipse made and just execute thet .class file from cmd everything works fine.
    here is the code, but i think that problems is somwhere else. i tried to serach on google, but... :(
    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.Insets;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.SwingWorker;
    public class A extends JPanel implements ActionListener, PropertyChangeListener {
        private JProgressBar progressBar;
        private JButton startButton;
        private JTextArea taskOutput;
        private Task task;
        class Task extends SwingWorker {
             * Main task. Executed in background thread.
    //        @Override
            public Void doInBackground() {
                 System.out.println("test");
                return null;
             * Executed in event dispatching thread
    //        @Override
            public void done() {
                Toolkit.getDefaultToolkit().beep();
                startButton.setEnabled(true);
                setCursor(null); //turn off the wait cursor
                taskOutput.append("Done!\n");
        public A() {
            super(new BorderLayout());
            //Create the demo's UI.
            startButton = new JButton("Start");
            startButton.setActionCommand("start");
            startButton.addActionListener(this);
            progressBar = new JProgressBar(0, 100);
            progressBar.setValue(0);
            progressBar.setStringPainted(true);
            taskOutput = new JTextArea(25, 50);
            taskOutput.setMargin(new Insets(5,5,5,5));
            taskOutput.setEditable(false);
            JPanel panel = new JPanel();
            panel.add(startButton);
            panel.add(progressBar);
            add(panel, BorderLayout.PAGE_START);
            add(new JScrollPane(taskOutput), BorderLayout.CENTER);
            setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
         * Invoked when the user presses the start button.
        public void actionPerformed(ActionEvent evt) {
            startButton.setEnabled(false);
            setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            //Instances of javax.swing.SwingWorker are not reusuable, so
            //we create new instances as needed.
            task = new Task();
            task.addPropertyChangeListener(this);
            task.execute();
         * Invoked when task's progress property changes.
        public void propertyChange(PropertyChangeEvent evt) {
            if ("progress" == evt.getPropertyName()) {
                int progress = (Integer) evt.getNewValue();
                progressBar.setValue(progress);
    //            taskOutput.append(String.format("Completed %d%% of task.\n", task.getProgress()));
         * Create the GUI and show it. As with all GUI code, this must run
         * on the event-dispatching thread.
        private static void createAndShowGUI() {
            //Create and set up the window.
            JFrame frame = new JFrame("Veritas Backup");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            JComponent newContentPane = new A();
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
             javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }thank you very much!!!!

    Perhaps you are running an older version of javac. What do you get with "javac -version" or try compiling with the full path to jdk 1.6.0_14/bin/javac.

  • Error while executing a scenario from CMD

    I am trying to execute a scenario from CMD using the starctscen command.
    when I use the below command
    E:\OraHome_ODI\oracledi\bin\startscen EXT_DATA 002 GLOBAL
    it is executing correctly
    but I tried to create a sceduler for the execution where i used the below command
    C:\Documents and Settings\Desktop>"E:\OraHome_ODI\oracledi\bin\startscen.bat" EXT_DATA 002 GLOBAL
    and it is giving me the following error
    The system cannot find the path specified.
    OracleDI: Starting scenario EXT_DATA 002 in context GLOBAL ...
    'oracle.odi.Agent' is not recognized as an internal or external command,
    operable program or batch file.
    can someone help me on this.
    Thanks,
    Sri

    In the batch File write this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen EXT_DATA 002 GLOBAL In case you are providing the values (EXT_DATA 002 GLOBAL) as parameter
    then call the startscen this way
    cd E:\OraHome_ODI\oracledi\bin
    E:
    startscen %1 %2 %3

  • Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw

    Hi,
    I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
    data that is pulled from a SQL Server at regular intervals), it fails with the following error:
    Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
    The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
    When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
    I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
    are missing.
    Thanks in advance for any advice you may have.

    This is truly killing me ... trying to get it working on Windows Server 2012 without success.
    I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
    I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems  in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc.,  -BUT-
    The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively- 
    I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
    Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
    ( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
    folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
    [VBScript error msg]
    Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
    access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open work
    [Powershell error msg]
    Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
    ere is not enough available memory or disk space.
     To make more memory available, close workbooks or programs you no longer need.
     To free disk space, delete files you no longer need from the disk you are saving to."
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ComMethodTargetInvocation
    You cannot call a method on a null-valued expression.
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull

  • How do i connect to sql server 2012 from cmd .

    Hi ,
    I Installed sql server 2008 R2 and 2012 Express and sql server2014 . I can conect to sql server 2008 R2 using
    SQLCMD -L command .
    How do i connect to sql server 2012 express edition from cmd .
    Any Hep appreciated
    Thanks in advance,
    Shravan

    I HAVE ANOTHER INSTANCE NAMED TEST  WHEN I USE THE COMMAND IT GIVES ME THIS ERROR 
    HOW TO RECTIFY 
    C:\Users\HP>SQLCMD -S HP-HP/TEST
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Named Pipes Provider: C
    ould not open a connection to SQL Server [67]. .
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired.
    Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or in
    stance-specific error has occurred while establishing a connection to SQL Server
    . Server is not found or not accessible. Check if instance name is correct and i
    f SQL Server is configured to allow remote connections. For more information see
     SQL Server Books Online..
    PLZ HELP 

Maybe you are looking for

  • Reset DB user with a script

    Hi All, I'm trying to make a script to change the password of a DB user. I have this now: cd /oracle/VIS/db/tech_st/11.1.0/ . ./VIS_linux4.env sqlplus / as sysdba alter user xxtestuser identified by xxtestuser; exitWhen I run the script the alter use

  • Gigabyte GTX590 to Apple 27 inch thunderbolt port

    Hi there I have tried to find answer to this question, but so far I have not found none. A friend of mine wants to buy an Apple 27 inch diplay to any cost because he reckons they are the best display available currently, He is a civil engineer and us

  • Date range parameter in heading

    Post Author: hstevens CA Forum: Formula Given that I've successfully set up a parameter to prompt for a date range, can I now somehow use that in a heading?  Is there someway to extract the dates from that? Or do I have have to set up two parameters

  • Exceptions inside threads

    hi, it seems to me like checked exceptions can't be thrown inside threads. is there any way to throw them? another question, even more important, is: where both runtime and checked exceptions end up in the case they occur inside a thread (within the

  • Canon G12 RAW files not recognized

    The DNG converter V6.3 I just downloaded and installed does not recognize RAW files from my Canon G12.  Any idea why?