0

Hi I need to see eclipse's running configuration in a simple java project. for example print them as key value pairs at console would be enough

[EDIT]: the reason for this I added a parameter to eclipse.ini but I'm not sure about the value whether it is passed as I expect or not

and the parameter I'm looking for is

-Dorg.eclipse.swt.browser.XULRunnerPath=xulrunner

Ismail Sahin
  • 2,640
  • 5
  • 31
  • 58
  • 1
    please elaborate on your Question.>____>----> Do you mean to get java execution configuration. Or eclipse settings from preferences. >____>----> As jigar mentioned you have the option of printing the system properties. Except I am not sure if that is what you are looking for. – Acewin Nov 12 '13 at 19:15
  • I edited my question sorry for not elaborating on my question – Ismail Sahin Nov 12 '13 at 19:21
  • I have put my response in answer which maybe helpful – Acewin Nov 12 '13 at 19:26
  • thanks for the vote, unlocked a new priv :D – Acewin Nov 12 '13 at 19:29

3 Answers3

2

You have two ways for getting the details

http://www.mkyong.com/java/how-to-list-all-system-properties-key-and-value-in-java/

In case it is java parameters

Read Java JVM startup parameters (eg -Xmx)

From your updated response. I will suggest that you check your memory manager.

In windows that will be task manager mac that will be Activity Monitor on linux you can fire top command from command line

Still not satisfied, check over this StackOverflow thread

Monitoring own memory usage by Java application

Still not satisfied. I would suggest profiling of the application using yourkit profiler or any other java profiler.

When you start yourkit it shows the java applications running. Simply click on one of it and it will initate profiling for you.

Community
  • 1
  • 1
Acewin
  • 1,657
  • 4
  • 17
  • 36
1

Eclipse runs on a JVM, which is not the same JVM where your program will run.

It would be easier to find the configuration file (eclipse.ini I guess is what you are looking for), since they will not be environment settings for the JVM where your code will run.

Cristian Meneses
  • 4,013
  • 17
  • 32
  • actually I add a run time parameter to eclipse.ini but I'm not sure about its value whether it is passed as I expect or not – Ismail Sahin Nov 12 '13 at 19:18
  • Then, check at Help > About Eclipse > Installation details and select the "Configuration" tab. There you will see all the configuration options applied to the current Eclipse instance. (This is for Eclipse Kepler, maybe it's different for older releases) – Cristian Meneses Nov 12 '13 at 19:22
0

all runtime configuration endsup being a java argument or a system property passed

so you can print all the commandline argument passed in to java + all the System properties and its values (may be with filtered set of key value based on your interest)

jmj
  • 237,923
  • 42
  • 401
  • 438