Cant  run j2ee command

Hi,
     I installed j2ee on linux. But when I run j2ee it says ./j2ee:/java/re/jdk1.3.1_02/latest/binaries/linux-i386/bin/java:No
such file or directory. Why is this.
                    Thanks,
                    Chamal.

I think you may need to install the SDK as well.

Similar Messages

  • Cant run J2EE tutorial DukesBank ...

    Hello,
    I am new in Java and J2EE and want just run the J2EE tutorial DukesBank which i have downloaded from java.sun.com.
    Therefore are following steps done:
    1. starting the J2EE server (j2ee -start)
    2. starting the cloudscape database (cloudscape -start)
    3. starting deploytool
    4. compile the sources (ant compile-ejb)
    5. package the ejbs (ant package-ejb)
    Now when i use the verifier in the deploytool then i got the error message:
    FAILED: method [makePayment] does not throw valid application exception in Remote/Local interface [com.sun.ebank.ejb.tx.TxController]
    I think this causes also the error message which i got when i goto localhost/bank in the webbrowser:
    Server Error
    Your request cannot be completed. The server got the following error
    null
    So now i have modified the interface TxController.java with deleting the method 'makePayment', also in TxControllerBean.java.
    Then i compiled they again (ant compile-ejb and ant package-ejb) but I have the same problem again, so has the tutorial an error or do i need to modify something else ?!?
    Many thanks for every help
    Regards
    Plato23

    DukesBank - RemoteException in AppClient package
    The two ant invocations "ant compile-ejb" and "ant package-ejb" take care of of the EJBs. The simplest to way to bring Bank up is "ant all" and there is no need of Deploytool though you will need J2EE Server up.
    The context root of the Bank is simply "bank" and the BankAdmin can be run using "runclient.bat" (with a few vanity changes).
    This is as far as I go for running the Bank. But when I tried to activate the various functions in the BankAdmin, I kept getting "RemoteException" and could neither create accounts nor customers.
    Can anybody out there help? Thanks
    p (which does packages (Customer, c

  • Homogeneous System Copy failing on Phase Running J2EE Migration

    Hi All,
    I am running a Homogeneous System Copy according to the System Copy manual. (SAPinst not SV/RST) It is failing on Phase Running J2EE Migration which tells me to look at my RUNJMT.log (below), but it doesn't seem to give me much direction. As anyone run into this before?:
    An error occurred while processing service SAP NetWeaver 7.0 Support Release 3 > Software Life-Cycle Options > System Copy > IBM DB2 for i5/OS > Target System Installation > Central System > Based on AS ABAP and AS Java > Central System( Last error reported by the step :Error when running the Java Migration Toolkit. SOLUTION: See output of logfile Y:\usr\sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS//runJmt.log: ' com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: cluster_data/server, at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:108) at com.sap.engine.core.configuration.impl.cache.CachedConfiguration. (CachedConfiguration.java:62) at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848) at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882) at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748) at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734) at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693) at com.sap.sdt.serviceframework630.impl.ClusterDataImpl._getSourceIds0(ClusterDataImpl.java:54) at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.getServerIds(ClusterDataImpl.java:108) at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.createIdMapping(ClusterDataImpl.java:174) at com.sap.sdt.jmt.migrationtool.MigrationToolImport.prepareSwitch(MigrationToolImport.java:1129) at com.sap.sdt.jmt.migrationtool.MigrationToolImport.startTool(MigrationToolImport.java:403) at com.sap.sdt.jmt.migrationtool.MigrationToolImport.main(MigrationToolImport.java:1561) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)'.). You may now
    choose Retry to repeat the current step.
    choose View Log to get more information about the error.
    stop the task and continue with it later.
    Log files are written to Y:\usr\sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/.
    runjmt.log:
    com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: cluster_data/server,
         at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:108)
         at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl._getSourceIds0(ClusterDataImpl.java:54)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.getServerIds(ClusterDataImpl.java:108)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.createIdMapping(ClusterDataImpl.java:174)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.prepareSwitch(MigrationToolImport.java:1129)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.startTool(MigrationToolImport.java:403)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.main(MigrationToolImport.java:1561)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)

    Here is version '9' fo the SAPinst.log
    INFO 2010-06-15 09:20:24.952
    Creating file Y:\usr\sap\SAPinst\NW04S\LM\COPY\DB4\SYSTEM\CENTRAL\AS\x.
    INFO 2010-06-15 09:20:24.952
    Removing file Y:\usr\sap\SAPinst\NW04S\LM\COPY\DB4\SYSTEM\CENTRAL\AS\x.
    INFO 2010-06-15 09:21:12.656
    Creating file C:\Program Files (x86)\SAPinst\x.
    INFO 2010-06-15 09:21:12.656
    Removing file C:\Program Files (x86)\SAPinst\x.
    INFO 2010-06-15 09:21:28.313
    Copied file 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/statistic.xml' to 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/statistic.24.xml'.
    INFO 2010-06-15 09:21:39.798
    Copied file 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/statistic.xml' to 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/statistic.25.xml'.
    WARNING 2010-06-15 09:22:11.095
    Unable to get information about path
    LABEL.ASC\ using GetVolumeInformation. Operating system error message: The filename, directory name, or volume label syntax is incorrect.
    INFO 2010-06-15 09:22:18.595
    Copied file 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/inifile.xml' to 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/inifile.9.xml'.
    INFO 2010-06-15 09:22:23.798
    Copied file 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/keydb.xml' to 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/keydb.9.xml'.
    INFO 2010-06-15 09:22:38.814
    Copied file 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/statistic.xml' to 'Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/statistic.26.xml'.
    INFO 2010-06-15 09:22:45.908
    Execute step RunMigrationController of component |NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|4|0|NW_RUN_MIGRATION_CONTROLLER|ind|ind|ind|ind|2|0
    INFO 2010-06-15 09:23:25.675
    Creating file Y:\usr\sap\SAPinst\NW04S\LM\COPY\DB4\SYSTEM\CENTRAL\AS\runJmt.log.
    INFO 2010-06-15 09:23:32.175
    Working directory changed to Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/jmt.
    INFO 2010-06-15 09:23:39.800
    Working directory changed to Y:\usr\sap\SAPinst\NW04S\LM\COPY\DB4\SYSTEM\CENTRAL\AS.
    INFO 2010-06-15 09:23:39.956
    Removed environment variable JANITOR_400 from current process environment.
    INFO 2010-06-15 09:23:44.878
    Output of \qopensys\QIBM\ProdData\JavaVM\jdk14\64bit\bin\java -classpath /usr/sap/BID/SYS/global/sltools/sharedlib/launcher.jar;. com.sap.engine.offline.OfflineToolStart com.sap.sdt.jmt.migrationtool.MigrationToolImport /usr/sap/BID/SYS/global/sltools/jmt:/usr/sap/BID/SYS/global/sltools/sharedlib import.switch resume downtime mti.properties is written to the logfile Y:/usr/sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS/runJmt.log.
    WARNING 2010-06-15 09:23:45.456
    Execution of the command "\qopensys\QIBM\ProdData\JavaVM\jdk14\64bit\bin\java -classpath /usr/sap/BID/SYS/global/sltools/sharedlib/launcher.jar;. com.sap.engine.offline.OfflineToolStart com.sap.sdt.jmt.migrationtool.MigrationToolImport /usr/sap/BID/SYS/global/sltools/jmt:/usr/sap/BID/SYS/global/sltools/sharedlib import.switch resume downtime mti.properties" finished with return code 2. Output:
    com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: cluster_data/server,
         at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:108)
         at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl._getSourceIds0(ClusterDataImpl.java:54)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.getServerIds(ClusterDataImpl.java:108)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.createIdMapping(ClusterDataImpl.java:174)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.prepareSwitch(MigrationToolImport.java:1129)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.startTool(MigrationToolImport.java:403)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.main(MigrationToolImport.java:1561)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    ERROR 2010-06-15 09:23:45.534
    CJS-20068  Error when running the Java Migration Toolkit. SOLUTION: See output of logfile Y:\usr\sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS//runJmt.log: '
    com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: cluster_data/server,
         at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:108)
         at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl._getSourceIds0(ClusterDataImpl.java:54)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.getServerIds(ClusterDataImpl.java:108)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.createIdMapping(ClusterDataImpl.java:174)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.prepareSwitch(MigrationToolImport.java:1129)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.startTool(MigrationToolImport.java:403)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.main(MigrationToolImport.java:1561)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)'.
    ERROR 2010-06-15 09:23:45.534
    CJS-20068  Error when running the Java Migration Toolkit. SOLUTION: See output of logfile Y:\usr\sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS//runJmt.log: '
    com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: cluster_data/server,
         at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:108)
         at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl._getSourceIds0(ClusterDataImpl.java:54)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.getServerIds(ClusterDataImpl.java:108)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.createIdMapping(ClusterDataImpl.java:174)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.prepareSwitch(MigrationToolImport.java:1129)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.startTool(MigrationToolImport.java:403)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.main(MigrationToolImport.java:1561)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)'.
    ERROR 2010-06-15 09:23:46.644
    FCO-00011  The step RunMigrationController with step key |NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|4|0|NW_RUN_MIGRATION_CONTROLLER|ind|ind|ind|ind|2|0|RunMigrationController was executed with status ERROR ( Last error reported by the step :Error when running the Java Migration Toolkit. SOLUTION: See output of logfile Y:\usr\sap/SAPinst/NW04S/LM/COPY/DB4/SYSTEM/CENTRAL/AS//runJmt.log: '
    com.sap.engine.frame.core.configuration.ConfigurationException: Error occurred during DB access: cluster_data/server,
         at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceHandler.readConfig(PersistenceHandler.java:108)
         at com.sap.engine.core.configuration.impl.cache.CachedConfiguration.<init>(CachedConfiguration.java:62)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:848)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.getCachedConfiguration(ConfigurationCache.java:882)
         at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.openConfiguration(ConfigurationCache.java:748)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:734)
         at com.sap.engine.core.configuration.impl.ConfigurationHandlerImpl.openConfiguration(ConfigurationHandlerImpl.java:693)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl._getSourceIds0(ClusterDataImpl.java:54)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.getServerIds(ClusterDataImpl.java:108)
         at com.sap.sdt.serviceframework630.impl.ClusterDataImpl.createIdMapping(ClusterDataImpl.java:174)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.prepareSwitch(MigrationToolImport.java:1129)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.startTool(MigrationToolImport.java:403)
         at com.sap.sdt.jmt.migrationtool.MigrationToolImport.main(MigrationToolImport.java:1561)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)'.).
    INFO 2010-06-15 09:26:38.491
    An error occured and the user decide to stop.\n Current step "|NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|4|0|NW_RUN_MIGRATION_CONTROLLER|ind|ind|ind|ind|2|0|RunMigrationController".
    INFO 2010-06-15 09:29:23.322
    Creating file C:\Program Files (x86)\SAPinst\.lastInstallationLocation.
    INFO 2010-06-15 09:29:29.510
    Creating file Y:\usr\sap\SAPinst\NW04S\LM\COPY\DB4\SYSTEM\CENTRAL\AS\__instana_tmp.xml.

  • Running a command in a remote Powershell session

    Hi,
    I have used the Enter-PSSession to get a remote session on a domain controller... all is ok with that.
    when i run the following command it fails, however if i run this locally on the domain controller it succeeds. this command is correct, it just fails with the remote powershell session
    dsacls.exe "OU=MYTestOU,OU=Servers,DC=MyDomain,DC=Local" /G "mydomain\MyComputer$":GRGWCC
    I have tried placing c:\windows\system32 before the exe, and i have also tried cmd /c dsacls.exe .........
    i cant figure out why this doesnt work, can anyone help?
    thanks
    Steve

    strange, if i run the command for a user account instead of a computer account and remove the "" around it, it works.
    dsacls.exe "OU=MYTestOU,OU=Servers,DC=MyDomain,DC=Local" /G mydomain\steve:GRGWCC
    it must be that $ sign that is causing the problems....?

  • How to run system command

    Hi
    Is that possible to run system command in indesign javascript?
    Becase i need to run a command in run prompt while script running in .indd file.
    Any idea please let me know

    Hi Maciej,
    For time being i m already using the execute() only for generating pdf from ps.
    In this case i cant able set job option in distiller.
    The problem y i m trying to run system command is i need pass some parameters (ie., job option, mypsFile) through my script.
    Is there any other sollutions?
    Thank and Regards
    Christy

  • Running following command gives,0403-006 Execute permission denied

    Dear
    According to metalink doc id: 422419.1 for enabling & collect debugging files for HTTP, OC4J and OPMN. But when i run this command using applmgr (apps owner) in AIX gives '0403-006 Execute permission denied'. Though applmgr have full permissions on this mount point where instance is hosted, giving this error.What is going wrong does not know?
    Any help, highly appreciated.

    The command is
    zip -r /tmp/`uname -n`_`date +%m%d%y.%H%M`_iAS_CONFIG.zip \
    $ORA_CONFIG_HOME/10.1.3/Apache/Apache/conf \
    $ORA_CONFIG_HOME/10.1.3/config \
    $INST_TOP/pids/10.1.3/Apache \
    $ORA_CONFIG_HOME/10.1.3/j2ee/ \
    $ORA_CONFIG_HOME/10.1.3/javacache/admin \
    $ORA_CONFIG_HOME/10.1.3/network/admin \
    $ORA_CONFIG_HOME/10.1.3/opmn
    When i copy & paste in telnet it was adding some spaces. Removing spaces resloved the issue. Thanking you.

  • Problems running J2ee

    Hi all
    After installing everything and making all PATH lines needed, i run j2ee :
    C:\j2ee -verbose
    and get error messages :
    "Insufficient environmental space" (16 times)
    "Syntax error" (3 times)
    "Insufficient environmental space" (1 time)
    "invalid command or filename"
    I would like to know if this might be because :
    1) My pc hardware is too limited to run j2ee (Ibm laptop with some P3 processor and 128 RAM)
    2) Some Internet or network service should be run before running j2ee
    3) There are many other things to configure before running j2ee
    If none of those, do u have an idea to solve the pb ?
    Thx a lot for helping :)

    U can increase the Environment memory of ur dos thro its properties and set to above 4000.
    Syntax error is due to the setenv.bat for that
    comment r change the path
    set JAAS_OPTIONS
    set SSL_OPTIONS
    set LISTEN_OPTIONS
    After this run ur j2ee verbose .

  • JavaWSTutorial  cant run simpleclient.

    Hello,
    i am going through the JavaWSTutorial.
    Now i have my first service working, but i cant run the client.
    I get these errors in the console, when i try to start it.
    (javawstutorial2.0 page 23)
    Perhaps it is something with the classpath, but i am to new to java, to find it on my own.
    thx
    peter
    C:\Java\jwstutorial20\jwstutorial20\examples\jaxws\simpleclient>asant run
    Buildfile: build.xml
    run:
    [echo] To set the name, modify the client.arg property
    [echo] in build.properties. If client.arg is unset,
    [echo] the default name sent to the service is No Name.
    appclient-command-common:
    [exec] 06.06.2007 21:11:37 com.sun.enterprise.appclient.MainWithModuleSuppo
    rt <init>
    [exec] WARNUNG: ACC003: Application threw an exception.
    [exec] java.io.FileNotFoundException: C:\Java\jwstutorial20\jwstutorial20\e
    xamples\jaxws\simpleclient\simpleclient.jar
    [exec] at com.sun.enterprise.deployment.archivist.PluggableArchivistsHe
    lper.getArchivistForArchive(PluggableArchivistsHelper.java:73)
    [exec] at com.sun.enterprise.deployment.archivist.PluggableArchivistsHe
    lper.getArchivistForArchive(PluggableArchivistsHelper.java:97)
    [exec] at com.sun.enterprise.deployment.archivist.ArchivistFactory.getA
    rchivistForArchive(ArchivistFactory.java:84)
    [exec] at com.sun.enterprise.appclient.AppClientInfoFactory.prepareArch
    ivist(AppClientInfoFactory.java:153)
    [exec] at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppCli
    entInfo(AppClientInfoFactory.java:94)
    [exec] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
    nWithModuleSupport.java:287)
    [exec] at com.sun.enterprise.appclient.Main.main(Main.java:180)
    [exec] Exception in thread "main" java.lang.RuntimeException: java.io.FileN
    otFoundException: C:\Java\jwstutorial20\jwstutorial20\examples\jaxws\simpleclien
    t\simpleclient.jar
    [exec] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
    nWithModuleSupport.java:364)
    [exec] at com.sun.enterprise.appclient.Main.main(Main.java:180)
    [exec] Caused by: java.io.FileNotFoundException: C:\Java\jwstutorial20\jwst
    utorial20\examples\jaxws\simpleclient\simpleclient.jar
    [exec] at com.sun.enterprise.deployment.archivist.PluggableArchivistsHe
    lper.getArchivistForArchive(PluggableArchivistsHelper.java:73)
    [exec] at com.sun.enterprise.deployment.archivist.PluggableArchivistsHe
    lper.getArchivistForArchive(PluggableArchivistsHelper.java:97)
    [exec] at com.sun.enterprise.deployment.archivist.ArchivistFactory.getA
    rchivistForArchive(ArchivistFactory.java:84)
    [exec] at com.sun.enterprise.appclient.AppClientInfoFactory.prepareArch
    ivist(AppClientInfoFactory.java:153)
    [exec] at com.sun.enterprise.appclient.AppClientInfoFactory.buildAppCli
    entInfo(AppClientInfoFactory.java:94)
    [exec] at com.sun.enterprise.appclient.MainWithModuleSupport.<init>(Mai
    nWithModuleSupport.java:287)
    [exec] ... 1 more
    BUILD SUCCESSFUL
    Total time: 3 seconds
    C:\Java\jwstutorial20\jwstutorial20\examples\jaxws\simpleclient>

    Sometimes is this tutorial a littlebit weird.
    The asant skript creates the simpleclient.jar in the wrong directory.
    it should be in /simpleclient but it is in /simpleclient/dist.
    I copied it, and it works fine.

  • Running linux commands from pl/sql

    Hi, I'm using a java class to run os commands but it doesn't work, i think it's permissions but i cant understand why.
    the java class is the following:
    import java.io.*;
    import java.lang.*;
    public class RunCmd extends Object{
    public static int RunThis(String args){
    Runtime rt = Runtime.getRuntime();
    int rc = -1;
    try{
    Process p = rt.exec(args);
    int bufSize = 4096;
    BufferedInputStream bis =
    new BufferedInputStream(p.getInputStream(), bufSize);
    int len;
    byte buffer[] = new byte[bufSize];
    while ((len = bis.read(buffer, 0, bufSize)) != -1)
    System.out.write(buffer, 0, len);
    rc = p.waitFor();
    catch (Exception e)
    e.printStackTrace();
    rc = -1;
    finally
    return rc;
    the pl/sql function i created:
    function run_cmd(p_cmd in varchar2) return number as language java name 'RunCmd.RunThis(java.lang.String) return oracle.sql.NUMBER';
    i gave the following permissions:
    begin
    dbms_java.grant_permission(user, 'SYS:java.io.FilePermission', '/home/mails/*', 'execute');
    dbms_java.grant_permission(user, 'SYS:java.io.FilePermission', '/home/mails/*', 'write');
    dbms_java.grant_permission(user, 'SYS:java.io.FilePermission', '/home/mails/*', 'read');
    dbms_java.grant_permission(user, 'SYS:java.io.FilePermission', '/home/mails/*', 'delete');
    dbms_java.grant_permission(user, 'SYS:java.lang.RuntimePermission', '*', 'readFileDescriptor');
    dbms_java.grant_permission(user, 'SYS:java.lang.RuntimePermission', '*', 'writeFileDescriptor');
    Dbms_Java.grant_Permission(user, 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    Dbms_Java.grant_Permission(user, 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    dbms_java.grant_permission(user, 'java.io.FilePermission', '/home/mails/*', 'execute');
    dbms_java.grant_permission(user, 'java.io.FilePermission', '/home/mails/*', 'write');
    dbms_java.grant_permission(user, 'java.io.FilePermission', '/home/mails/*', 'read');
    dbms_java.grant_permission(user, 'java.io.FilePermission', '/home/mails/*', 'delete');
    dbms_java.grant_permission(user, 'java.lang.RuntimePermission', '*', 'readFileDescriptor');
    dbms_java.grant_permission(user, 'java.lang.RuntimePermission', '*', 'writeFileDescriptor' );
    Dbms_Java.grant_Permission(user, 'java.lang.RuntimePermission', 'readFileDescriptor', '');
    Dbms_Java.grant_Permission(user, 'java.lang.RuntimePermission', 'writeFileDescriptor', '');
    commit;
    end;
    The command i'm trying to execute is:
    select run_cmd('/bin/sh -c "ls -ltr /home/mails> /home/mails/teste.txt"') from dual;
    i gave chmod 777 /home/mails and i already run this command directly in console mode and works just fine, so i dont think it's permissions related to the user oracle.
    when i run
    select run_cmd('/bin/sh -c "ls -ltr /home/mails> /home/mails/teste.txt"') from dual;
    it returns 2
    if i run
    select run_cmd('/bin/sh -c ls -ltr /home/mails> /home/mails/teste.txt') from dual;
    it returns 127
    if i run just
    select run_cmd('ls -ltr /home/mails> /home/mails/teste.txt') from dual;
    it returns -1
    if anyone as any clue please, i'm trying to solve this problem for 2 days and i don't have any clue for the solution...

    when i remove the /bin/sh -c it returns -1
    i think that it runs the command because there is a diference in the return value from a valid command a an invalid, for example:
    if i run a valid command
    select k_cs_controlo.run_cmd('/bin/sh -c "ls -ltr /home/mails > /home/mails/teste.txt"') from dual;
    it retuns 2
    if i run an invalid command(removed the " between the ls command)
    select k_cs_controlo.run_cmd('/bin/sh -c ls -ltr /home/mails > /home/mails/teste.txt') from dual
    it returns 127
    thanks for the replies Sven

  • Cant run Import-Module ADDSDeployment, on Server 2012 RC?

    Hi,
    Cant run Import-Module ADDSDeployment, on Server 2012 RC? I did the same on Server 8 with no problem.
    So what misstake do I?
    PS C:\Users\Administrator> Import-Module ADDSDeployment
    Import-Module : The specified module 'ADDSDeployment' was not loaded because no valid module file was found in any modu
    le directory.
    At line:1 char:1
    + Import-Module ADDSDeployment
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ResourceUnavailable: (ADDSDeployment:String) [Import-Module], FileNotFoundException
        + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    PS C:\Users\Administrator>
    /SaiTech

    Hi,
    I found the solvution:
    Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools
    /SaiTech

  • Urgent!! running system command in java

    i am trying to run system command(windows) in java. I am getting
    exception as java.io.IOException: CreateProcess: c:\dir
    Please Help.
    Here is the code
    import java.io.*;
    public class RunCommand {
    public static void main(String[] args) {
    try
    //run dir command
    Process p = Runtime.getRuntime().exec("c:\\dir");
    BufferedReader stdInput=new BufferedReader(new
    InputStreamReader(p.getInputStream()));
    BufferedReader stdError =new BufferedReader(new
    InputStreamReader(p.getErrorStream()));
    //read the output
    System.out.println("here is the output:\n");
    while((s=stdInput.readLine())!=null){
    System.out.println(s);
    System.out.println("here is the error if any");
    while((s=stdError.readLine())!=null){
    System.out.println(s);
    System.exit(0);
    }//end try
    catch (IOException e)
    System.out.println("exception Happened" );
    e.printStackTrace();
    System.exit(-1);

    It works fine if you replaceProcess p = Runtime.getRuntime().exec("c:\\dir");withProcess p = Runtime.getRuntime().exec("cmd /c dir");And don't forget to define your s variable.

  • Run shell commands using java program

    Hi guys,
    I am trying to run shell commands like cd /something and ./command with arguments as follows, but getting an exception that ./command not found.Instead of changing directory using "cd" command I am passing directory as an argument in rt,exec().
    String []cmd={"./command","arg1", "arg2", "arg3"};
    File file= new File("/path");
    try{
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec(cmd,null,file);
    proc.waitFor();
    System.out.println(proc.exitValue())
    BufferedReader buf = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    catch(Exception e)
    {e.printStackTrace();
    So can anyone please tell me what is wrong with this approach? or is there any better way to do this?
    Thanks,
    Hardik

    warnerja wrote:
    What gives you the idea that the process to execute is called "./command"? If this is in Windows, it is "cmd.exe" for example.It does not have to be cmd.exe in Windows. Any executable or .bat file can be executed as long as one either specifies the full path or the executable is in a directory that is in the PATH.
    On *nix the file has to have the executable bit set and one either specifies the full path or the executable must be in a directory that is in the PATH . If the executable is a script then if there is a hash-bang (#!) at the start of the first line then the rest of the line is taken as the interpreter  to use. For example #!/bin/bash or #!/usr/bin/perl .
    One both window and *nix one can exec() an interpreter directly and then pass the commands into the process stdin. The advantage of doing this is that one can change the environment in one line and it  remains in effect for subsequent line. A simple example of this for bash on Linux is
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    public class ExecInputThroughStdin
        public static void main(String args[]) throws Exception
            final Process process = Runtime.getRuntime().exec("bash");
            new Thread(new PipeInputStreamToOutputStreamRunnable(process.getErrorStream(), System.err)).start();
            new Thread(new PipeInputStreamToOutputStreamRunnable(process.getInputStream(), System.out)).start();
            final Writer stdin = new OutputStreamWriter(process.getOutputStream());
            stdin.write("xemacs&\n");
            stdin.write("cd ~/work\n");
            stdin.write("dir\n");
            stdin.write("ls\n");
            stdin.write("gobbldygook\n"); // Forces output to stderr
            stdin.write("echo $PATH\n");
            stdin.write("pwd\n");
            stdin.write("df -k\n");
            stdin.write("ifconfig\n");
            stdin.write("echo $CWD\n");
            stdin.write("dir\n");
            stdin.write("cd ~/work/jlib\n");
            stdin.write("dir\n");
            stdin.write("cat /etc/bash.bashrc\n");
            stdin.close();
            final int exitVal = process.waitFor();
            System.out.println("Exit value: " + exitVal);
    }One can use the same approach with Windows using cmd.exe but then one must be aware of the syntactic differences between commands running in .bat file and command run from the command line. Reading 'help cmd' s essential here.
    The class PipeInputStreamToOutputStreamRunnable in the above example just copies an InputStream to an OutputStream and I use
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class PipeInputStreamToOutputStreamRunnable implements Runnable
        public PipeInputStreamToOutputStreamRunnable(InputStream is, OutputStream os)
            is_ = is;
            os_ = os;
        public void run()
            try
                final byte[] buffer = new byte[1024];
                for (int count = 0; (count = is_.read(buffer)) >= 0;)
                    os_.write(buffer, 0, count);
            } catch (IOException e)
                e.printStackTrace();
        private final InputStream is_;
        private final OutputStream os_;
    }

  • Running Shell Commands (not Executable) in Unix from Java

    What are my options to run shell commands from Java?
    My goal is to change my existing shell environment variables to some new ones provided by .anotherProfile.
    Using an executable from Java is not an option because it does not work i.e. ( exec(". /home/.profile") ) brings up errors.
    Someone has suggested that I start a child shell with that profile and work from there, but I'm unfamiliar with that sort of syntax and programming in general.
    Any good help equals duke dollars :)

    Well there are some possibilities. In the original thread you mentioned that you wanted the shell script to be executed to change some enviroment parameters of the shell the JVM is executing in.
    If so, and you are able to rewrite the profile so you can parse it manually. Then you can change some environment setting by writing the JNI wrappers for the getenv and setenv system calls. (Check your man pages)
    That will change the environment. I am just wondering what good it will do for you? What's use of sourcing the profile in a JVM?

  • Applescript for running sudo commands in terminal

    I'm a newbie when it comes to Applescript and was wondering if someone could help with a basic request. I need to write a small script to do the following:
    1. Launch terminal
    2. Run the 'Sudo -s' command
    3. Enter the administrator password (in plain text)
    and then
    4. run some sudo commands like "sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add administrator"
    I actually WANT the administrator password to be in the script in plain text even though I understand the security risks (I will literally be the only person to ever see the script). I've trawled forums all over but can't seem to find what I am looking for and cannot get it working by patching together the various commands I have found. Thanks in advance for any help you can give!
    Sean

    I've included two examples.  The preferred way & the hacker way.
    with administrator
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    This version has an inline password.
    Notice the echo 'password' |
    The single quotes are no accident.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "echo 'password' | sudo ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • I cant run the latest version of firefox on my mac OS, need to uninstall it

    I downloaded the latest firefox so I could use the firefox app for my new Iphone. I only have Mac OS X 10.4.11 and the new firefox wont run on it. Now whenever I open firefox I just get told that I cant run it on my OS. I want my firefox back! All my bookmarks, my addblocker. Safari stinks! I don't know how to uninstall it if I can't even open it! help!

    Think I just found it. You need to click on the right hand side where it says Firefox 3.6.16 (under the search.
    It's confusing because on the left the are some Firefox 3.6.16 for other languages.

Maybe you are looking for

  • Why is the Edit and + feature missing in Contacts?

    Since updating my iPhone 4 to iOS 5 the "Edit" and "+" feature is missing from Contacts.

  • How to remove the stand of iMac 27 with retina

    I buy a 27' iMac in US and am going to bring it back to China next week. I'm going to remove the stand, and put the iMac to my 30' luggage. I've tested, it can be hold in the luggage, but the question is how to remove the stand "elegantly" because it

  • Disk Images Won't Mount: Broken Pipe

    iBook G4 933 MHz, 640 MB RAM, OS X 10.4.8. I have two Macs: the offender above, and an eMac G4 800 MHz, both running OS X 10.4.8. Lately, my iBook has refused to mount Disk Images (.dmg format), instead giving a "broken pipe" error. Below is the syst

  • How to find an table for storing the employee salary

    hi,        how to find an table for storing employee salary .. In which table those details are stored .. Please reply me. regards, kumar

  • Can't backup after erasing Data on Time Capsule

    Good Day! Just recently purchased and installed my Time Capsule. I then took some time to figure out how to configure everything and had to change some password settings. I decided to erase Data from the Disk to see how it functionned. I imagined tha