Eclipse Working Directory Error
-
- Posts: 4
- Joined: Mon Sep 27, 2004 11:40 pm
Eclipse Working Directory Error
I have successfully installed and setup to profile applications in eclipse. I am unable to get the startup of the application via the profile menu to use the proper working directory. This is of course causing errors in finding the property files required to run the application. I checked the path and it is pointing to my OS home directory instead of the path I have set in the run dialog under 'working directory'. Is there a fix for this? I am running Eclipse 3.0 build 200406251208 on win2k with yourkit 3.0 build 431.
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Hi,
I've tried the following example with the same Eclipse and YourKit versions as yours, and it worked fine.
-------------------
import java.io.File;
public class MainClass {
public static void main(String[] args) throws Exception {
System.out.println(new File(".").getCanonicalPath());
}
}
---------------------
This code prints working directory. All changes in "Profile" -> "Arguments" -> "Working directory" are properly reflected for me.
Could you please provide more details regarding the case when you experience the problem?
I've tried the following example with the same Eclipse and YourKit versions as yours, and it worked fine.
-------------------
import java.io.File;
public class MainClass {
public static void main(String[] args) throws Exception {
System.out.println(new File(".").getCanonicalPath());
}
}
---------------------
This code prints working directory. All changes in "Profile" -> "Arguments" -> "Working directory" are properly reflected for me.
Could you please provide more details regarding the case when you experience the problem?
-
- Posts: 1626
- Joined: Tue Aug 10, 2004 7:52 pm
-
- Posts: 4
- Joined: Mon Sep 27, 2004 11:40 pm
Sorry... I miss spelled that. The Hyades (not a word I spell often) project is one of the eclipse tools projects and can be found at http://www.eclipse.org/tools/index.html