Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Setting up workspace directory?(how to change the Memory Analyzer workspace directory)
Setting up workspace directory? [message #685998] Tue, 21 June 2011 10:50 Go to next message
duuni.mailiosoite is currently offline duuni.mailiosoite
Messages: 3
Registered: June 2011
Junior Member
Hi,

I have the following problem. I try to lauch Eclipse Memory Analyzer from Citrix, and it gives me the following error:

An error has occurred. See the log file C:\Users\%username%\org.eclipse.mat.ui.rcp.MemoryAnalyzer_1.0.1.20...\Configuration\13086... .log

There it says the following:

!SESSION 2011-06-21 13:29:59.880 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2011-06-21 13:30:00.767
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: The platform metadata area could not be written: C:\Windows\System32\workspace\.metadata. By default the platform writes its content
under the current working directory when the platform is launched.  Use the -data parameter to specify a different content area for the platform.

...


I assume the problem is that Memory Analyzer tries to use C:\Windows\System32\workspace\.metadata. as a workspace and can't write there. I'd like to change the workspace directory - how can I do that? I have absolutely no experience on Eclipse.
Re: Setting up workspace directory? [message #686004 is a reply to message #685998] Tue, 21 June 2011 11:08 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum Tsvetkov
Messages: 149
Registered: July 2009
Senior Member
Try using the -data parameter like this:
MemoryAnalyzer -data <workspace_folder>
I haven't tried out myseld, but it was mentioned as working in this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=339647#c5
Re: Setting up workspace directory? [message #686011 is a reply to message #686004] Tue, 21 June 2011 11:27 Go to previous messageGo to next message
duuni.mailiosoite is currently offline duuni.mailiosoite
Messages: 3
Registered: June 2011
Junior Member
Thank you for your quick response Krum! Should I run the command from Command Prompt on the server where the Memory Analyzer is installed, or is there a file I could modify?
Re: Setting up workspace directory? [message #686013 is a reply to message #686011] Tue, 21 June 2011 11:36 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum Tsvetkov
Messages: 149
Registered: July 2009
Senior Member
You can edit the MemoryAnalyzer.ini file.
Then put (on two separate lines) the -data parameter and the path, e.g.
-data
./work

Add this before the vm parameters, if any. Worked for me, let me know if this also helps you.
Re: Setting up workspace directory? [message #686019 is a reply to message #686013] Tue, 21 June 2011 11:45 Go to previous message
duuni.mailiosoite is currently offline duuni.mailiosoite
Messages: 3
Registered: June 2011
Junior Member
It works, thank you so much!
Previous Topic:Accessing an element in an Array and ArrayList
Next Topic:Memory Analyzer 1.1.0 is released
Goto Forum:
  


Current Time: Wed Oct 22 22:00:45 GMT 2014

Powered by FUDForum. Page generated in 0.12164 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software