problem with "/" vs "\" in filename argument profiling Java app [message #72009] |
Fri, 26 May 2006 20:29  |
Eclipse User |
|
|
|
Originally posted by: jreck000.hotmail.com
Forgive me if this is a known/simple problem/question...
I just completed downloading the latest eclipse/callisto release
(May 26). Downloaded Eclipse 3.2.0, used "Software Updates",
installed everything from the default "callisto discovery site".
I create a new workspace, and a new project with one class:
public class Test {
public static void main(String[] args) {
if (args.length <= 0)
System.out.println("barf!");
else
System.out.println("arg: " + args[0]);
}
}
I run this with one argument: c:/temp/temp.java.
Everything is the default, using java jre1.5.0_06.
Program prints: arg: c:/temp/temp.java
WooHoo! :)
(I get the same result debugging the program).
I now profile this (E.g Run->Profile..., select Test").
I select "java profiling", selecting everything but "probe insertion"
Program prints: arg: c:\temp\temp.java
Booo! :(
(Note different slashes - ie "\" vs "/").
Can anyone tell me why I get different results?
advathanksnce
jr
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04348 seconds