-D for System property in java

Hi,
What does -D means in a System Property? Is there any other notation that can be given as well apart from -D? Please clarify.
Thanks.

BIJ001 wrote:
A sidenote: the -D command line syntax resembles some (for example the GNU and the Borland command line) C compiler's define feature: Hm, system properties can hardly be compared to preprocessor directives, but it would be a reasonable answer to the (pointless) question "why'd they pick -D" :)

Similar Messages

  • Setting the system property in java application

    Hi,
    I want to make a connection to https://URL through my java application class
    which will be deployed in the weblogic server. Could any one help by
    telling how could I set the system properties in my java application. If I
    pass the value in the java class do I have to change any value in the
    weblogic.properties file.
    Thanks in advance and looking forward to hear your valuable suggestion.
    Sirisha

    System.getProperty(..)
    System.setProperty(..) is this what you are asking for?
    This gets and sets the system (your machine) environment properties
    Filip
    In article <396d0a93$[email protected]>, [email protected] says...
    >
    Hi,
    I want to make a connection to https://URL through my java application class
    which will be deployed in the weblogic server. Could any one help by
    telling how could I set the system properties in my java application. If I
    pass the value in the java class do I have to change any value in the
    weblogic.properties file.
    Thanks in advance and looking forward to hear your valuable suggestion.
    Sirisha
    Filip Hanik
    Software Architect
    XMarkstheSpot.com
    [email protected]

  • Having problem setting system property with java -D name = value

    I want some clarification. Consider the statement below
    java -Djava.rmi.server.codebase=file:/c:\public_html\classes/
    -Djava.rmi.server.hostname=xyz.com
    -Djava.security.policy=java.policy engine.ComputeEngine
    1. Is the syntax right for specifying a file directory as codebase?
    -Djava.rmi.server.codebase=file:/c:\public_html\classes/
    2. What does this hostname property imply? Does this mean that the program which is started can be accesed by xyz.com?
    -Djava.rmi.server.hostname=xyz.com

    Kurt,
    I modified some of my directory structure as shown below and tried to execute. But I have got the same error again. Could you tell how to correct this error?
    Under c:\home\ann\public_html\classes directory, I have the Following:
    Sub-directory compute [Contains Compute.class and Task.class File]
    Sub-directory engine [Contains ComputeEngine_Skel.class and ComputeEngine_Stub.class Files]
    Sub-directory Meta-inf [Contains Manifest.mf file]
    File compute.jar
    Under c:\home\ann\src directory, I have the following:
    Sub-directory engine [Contains ComputeEngine.java, ComputeEngine.class]
    File java.policy
    Under c:\home\jones\public_html\classes directory, I have the Following:
    Sub-directory client [Contains Pi.class File]
    Current working directory is c:\home\ann\src
    The output from echo %CLASSPATH% was c:\home\ann\src; c:\home\ann\public_html\classes\compute.jar
    When executing the command:
    java -Djava.rmi.server.codebase=file:/c:\home\ann\public_html\classes
    -Djava.rmi.server.hostname=bwing2
    -Djava.security.policy=java.policy engine.ComputeEngine
    I am getting the error,
    ComputeEngine Exception: Stub class not found: engine.ComputeEngine_Stub; nested exception
    is : java.lang.ClassNotFoundException: engine.ComputeEngine_Stub
    java.rmi.StubNotFoundException: Stub class not found:
    Sridhar

  • Java gets the system property  ????

    I' am want create Java-Applet for get data system property in computer, when another computers used open this applet , give show data system property ( what os ?,quantity ram ?, quantity harddisk, name cd-rom ? etc. ) what can i do ????

    Don't post this again. You already asked it here: http://forum.java.sun.com/thread.jsp?thread=401537&forum=31&message=1751719

  • Passing Java system property at runtime

    How to set system property at runtime?
    Imaging the situation - application is already run. One of the threads polls system properties periodically. In debug purposes I need to set system during program is working. How can I do that?

    Not possible.
    Far as I know not possible for any app (not just java) and true for most popular desktop OSes as well.
    The environment is copied into the application (all applications) when it starts. So external changes will not impact it.

  • System Property Reading in java Applet

    I am getting following error during reading of System.getProperties();
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at Simple.start(Simple.java:28)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPropertiesAccess(Unknown Source)
         at java.lang.System.getProperties(Unknown Source)
         at webl.util.FileLocator.LoadDirs(FileLocator.java:78)
         at webl.util.FileLocator.FindFile(FileLocator.java:13)
         at webl.util.FileLocator.Find(FileLocator.java:31)
         at webl.lang.Machine.<init>(Machine.java:27)
         ... 7 more

    My two cents: We have the same SecurityExceptions when JAXP is doing a System.getProperty on java.home property, which applet specification forbids. So we think JAXP is meant to be run in a servlet, rather an in an applet (unless Sun could correct us on that). Those property reads would need to be removed if they were to run in an applet.
    You might want to check out other SOAP clients, for example, SOAPRMI. A beta version is at:
    http://www.extreme.indiana.edu/soap/#download

  • Java.system.property

    I repost Craig Sandin's question, which was post on Feb 06th. I have the same problem
    as him.
    I have used java.system.property in my wls 5.1 weblogic.properties file, and it
    set a system property I could get at runtime. Is there an equivalent in wls 7.0?
    I haven't found anything in the documentation for config.xml. Obviously I can
    pass -D options to the jvm, but I was looking for a way from the config file.
    hongjie

    We don't offer this anymore.. Sorry.
    You could write your own very simple
    wrapper class to start WLS:
    Properties props = new Properties();
    props.load(new FileInputStream("weblogic.properties");
    System.setProperties(props);
    weblogic.Server.main();
    Cheers
    mbg
    "hongjie" <[email protected]> wrote in message
    news:[email protected]..
    >
    I repost Craig Sandin's question, which was post on Feb 06th. I have thesame problem
    as him.
    I have used java.system.property in my wls 5.1 weblogic.properties file,and it
    set a system property I could get at runtime. Is there an equivalent inwls 7.0?
    I haven't found anything in the documentation for config.xml. Obviously Ican
    pass -D options to the jvm, but I was looking for a way from the configfile.
    >
    hongjie

  • Error during install " specify system property "is.debug" for more information."

    I am trying to install Livecycle Reader Extensions onto a Unix box and the setup.sh is giving the following error when I try to invoke it.
    "An unhandled error occurred -- specify system property "is.debug" for more information."
    Anyone know how to set the is.debug property?
    Sorry i'm not to familiar with the unix env.

    Andrew,
    can you provide more information on the following?
    - variant of Unix
    - java version installed
    - reader extensions version
    - application server enviornment intended (WAS, Weblogic, JBOSS?)
    Thanks
    David
    www.ensemble.com

  • Steps for System Refresh for ABAP + JAVA stack

    Hi friends,
    I am newbie to SAP BASIS adminstration. There is a system refresh activity planned shortly.
    Can someome pls let me know the steps for system refresh of ABAP  + JAVA stack??
    regards,
    Ambarish.

    Please check [systemcopy@SDN|System Copy and Migration] and [guides|http://service.sap.com/instguidesnw] according to your release.

  • Java 1.4.2 shows language for system

    Hi
    Java 1.4.2_01 chooses the language for the system and not for the user.
    After installing Java 1.4.2 on my Japanese Windows 2000 professional system all the menus show up in Japanese.
    I have chosen English as my local user language and would expect the language to change to that.
    The compiler output is also in Japanese.
    Any ideas on how to change that back to English like in the version before 1.4.2??
    Regards,
    Lars

    I looks as if someone already enter a bug in the bug parade for this.
    http://developer.java.sun.com/developer/bugParade/bugs/4886939.html
    Does anyone have some status updated on when this will be fixed?
    Are there any other bugs like this one reported?
    Lars

  • Developing 3rd party UWL Connectors for People soft system or other Java sy

    Hi Everyone
    We have one requirement that is u201CDeveloping 3rd party UWL Connectors for People soft system or other Java systemu201D and get the workflows from those system and display in portal though UWL.
    We used u201CUWL Custom Connector APIu201D and written all the required methods.
    Could any one help us u201CWhere can we specify the 3rd party system details?u201D
    If possible please send some sample coding for it.
    Thanks in advance
    Sat

    Hi Satya!
    Like the default SAP backend UWL connectory your 3rd-party connector should make use of a PCD System Object. This system is a mere java component with nothing more than a portalapp.xml defining all the system properties.
    Create a system in the portal system landscape based on the System PAR you depoyed.
    For every UWL connector you create in portal you define a system alias. This alias has to match the one of your new system object.
    And now for the sad part: I didn't find any clue yet about how to access the system from a custom UWL connector. The system alias is available in the method getItems(), but no hint whatsoever how to get the system object to the alias.
    I'm still investigating this, since i'm exactly at this point.
    Regards,
      Juergen

  • Setting up java.system.property in WL 6.0

    Hi all,
    I just installed Web Logic 6.0. I would like to know if anyone knows how
    to set java.system.property in Web Logic 6.0
    In old Web Logic 5.1, I added this line in weblogic.properties file. Now
    since we don't have weblogic.properties file anymore, I am assuming this
    should go in config.xml. Documentation says I should use Admin Console
    to modify config.xml and to convert old weblogic.properties file, but I
    found Admin Console confusing.
    My Web Logic 6.0 is installed on d:\bea\. I clicked on Convert
    Weblogic.properties and I see directories on my system. I click on icon
    to get the directory that has weblogic.properties file. Then I get page
    that ask me to pick Clusters and Server and I have no idea what
    directory I need to click on
    If someone knows what to do next or how to edit Config.xml so that I can
    add my java.system.property, please e-mail me
    Thanks in advance
    Qaiser

    Did you see the directions on page 3-11 of the WLS 6.0 Administration Guide? I
    followed these steps, and was able to create a new domain. I found them to be
    clear.
    Laurel
    "Jesper de Jong" <[email protected]> wrote:
    >
    Hello all,
    Instead of working with "mydomain" and "myserver" I want to create my
    own domain.
    IMHO, the documentation on e-docs is not very clear on the steps that
    are necessary
    to do this.
    What are the steps, or where can I find better documentation on creating
    a domain?
    regards,
    Jesper

  • Registration of Business system for the Integration Engine Java in the SLD issue

    Hi,
    We have completed the installation of PI-AEX 7.4 SR1 then we ran the below wizards successfully.
    - Configuration Wizard: PI-AEX initial setup
    - Configuration Wizard: PI Self Test for AEX
    However when we were Checking the AEX Configuration as per help.sap.com
    Check the registration of a business system for the Integration Engine Java in the SLD:
        Enter https://<host>:<port>/sld .
        Choose Start of the navigation path Business System Next navigation step Integration Engine Java <SID> Next navigation step Integration End of the navigation path.
        The pipeline URL must be: http://<host_fully_qualified>:<port>/XISOAPAdapter/MessageServlet?ximessage=true .
    More information: SAP Note 1435392
    for us the Pipeline URL is as below
    http://<host_fully_qualified>:<port>/XISOAPAdapter/MessageServlet
    and the rest " ?ximessage=true "  is not there.
    Also we ran the below wizard
    Configuration Wizard: PI Self Test for AEX
    and it finished successfully without any issue.
    Any Suggestions what could be missing.
    Thanks,
    Regard
    Ahmed Mohammed

    Hi,
    I found the below SAPNOTE which confirms that the Pipeline URL should be
    http://<host_fully_qualified>:<port>/XISOAPAdapter/MessageServlet
    1564449 - PI CTC Wrong Pipeline Url after AEX Initial Setup
    However on help.sap.com it is different.
    Any one experienced the same ?
    Regards
    Ahmed Mohammed

  • How to set my System Property for frmall.jar like !

    I have a JAR file named SecAuth.jar in ORACLE_HOME\forms\java\ directory.
    I configured this JAR file in ORACLE_HOME\forms\server\formsweb.cfg file archive tag. Like,
    archive=frmall.jar,SecAuth.jar
    Its working very nice.
    Now I need to give a System Property to one of the Class file in the SecAuth.jar !
    Actually my System Property is,
    -Dproject.system.securityFile=C:\client\security.properties
    How can I do this sir ? Can someone help me ?

    Try looking in the $ORACLE_HOME/opmn/conf/opmn.xml file. You'll see a set of process definitions that correspond to the OC4J instances you have configured. There should be a "start-properties" or some similar element to that, in which you can place your required System property. There should be examples of properties in there already.
    When OPMN starts your OC4J process, it will pass it the System property you set (along with all the other ones that were already there).
    -steve-

  • ChaRM for Dual Stack ABAP & JAVA - No http port for system SPD

    Hi,
    I have configured the CHARM for Dual stack ( Java, ABAP). when I perform the action 'Logon to System' it gives me following option
    " The system is a dual stack system. You can log
    on to the ABAP stack or non-ABAP stack
    To which stack do you want to log on?
    ABAP or Non ABAP"
    If I click on Non ABAP, one more message comes
    "You can logon to system SPD or just display its
    transport requests
    What do you want to run?
    Requests  Or Logon"
    If I click on Logon I get the Information " No http port for system SPD "
    & If I click Continue It will take me to Ugent Correction & error appears as 'Action System Logon in system SPD 100 of type Source Systems has been cancelled'
    How to Solve this error.
    Regards
    PK
    Edited by: PK on Sep 1, 2010 5:59 AM

    Its possible to login to portals(non-ABAP systems).
    Please check.
    http://wiki.sdn.sap.com/wiki/display/SMSETUP/Initial+Configuration
    Pl. make sure SLD for the Java stacks are defined correctly.
    regards,
    Arun.

Maybe you are looking for