Custom system attributes of eclipse-JVM Parameters

Source: Internet
Author: User
Tags cassandra
JVM parameter input during eclipse debugging, for example:-d

I 've been watching Cassandra'sSource codeCassandra is started through org. Apache. Cassandra. Service. cassandradaemon. In the-D parameter (storage-config), the path to the Cassandra configuration file storage-conf.xml is specified. The system obtains the value through the following code:

Java Code
    1. Configfilename _ = system. getproperty ("Storage-config") + File. Separator +Storage-conf.xml";
 
Configfilename _ = system. getproperty ("Storage-config") + file. Separator + "storage-conf.xml ";

 

How can I set the storage-config parameter when I directly run cassandradaemon in eclipse? See:

In VM arguments: Enter-dstorage-Config = bin \ conf directly. For the following code

Java code
    1. System. getenv ("Storage-config")
 
System. getenv ("Storage-config ")

You need to set it in the Environment tab.

 

Public static final string exif_tool_path = system. getproperty ("exiftool. Path", "exiftool ");

Reprinted from: http://swingboat.iteye.com/blog/518303

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.