On Sun, 12 Jul 2009, Vincent Bela?che wrote:

Date: Sun, 12 Jul 2009 17:41:24 +0200
From: "[iso-8859-1] Vincent Bela?che" <[email protected]>
To: jdee-users jdee-users <[email protected]>
Subject: [jdee-users] Use of / or of \ under MSWindows


Hello,
I am using JDEE under MSWindow2000, and I am wondering whether there is a good 
reason why the classpath passed to the java.exe with -classpass uses / and not 
\ during the debugging sessions.
I seems that JDEE uses  *nix like shell for the debugging session. Is that a 
correct understanding ?
My question is motivated by this that jPicEdt (which I am a developper of) calls 
System.getProperty("java.class.path") to get the class pass.When jPicEdt is run 
normally with launching using \, things go well because \ is the system file separator. 
Buf when I am in debugging session, some stuff goes wrong because of using / instead of \ 
under MSWindows.
Best regards,
  Vincent.

3 reasons:

- In Windows, / works just as well as \ as a path separator.

- In java, / needs no escaping, but \ needs to be escaped as \\.

- If you use /, your code will work on all platforms without
  modification.

Carlos
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
jdee-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-users

Reply via email to