Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » win7: .classpath does not support dir walk up?
win7: .classpath does not support dir walk up? [message #1729816] Tue, 19 April 2016 09:53 Go to next message
Frank Bergemann is currently offline Frank BergemannFriend
Messages: 6
Registered: June 2010
Junior Member
i can't make it work to walk up the current directory for external jar files like this:
<classpathentry kind="lib" path="../../Component/third-party/oracle-jdbc/lib/ojdbc6.jar"/>


In linux it works.
Is there a different syntax for Windows?
Re: win7: .classpath does not support dir walk up? [message #1729834 is a reply to message #1729816] Tue, 19 April 2016 12:20 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
That's a relative path; what do you expect it to be relative to? The workspace? The project root? I'm not sure that's a good idea unless it is documented (API) what relative classpath entries are relative to.
Re: win7: .classpath does not support dir walk up? [message #1729843 is a reply to message #1729834] Tue, 19 April 2016 13:00 Go to previous messageGo to next message
Frank Bergemann is currently offline Frank BergemannFriend
Messages: 6
Registered: June 2010
Junior Member
well, it accepts paths like this also in windows:
<classpathentry kind="lib" path="./ext-resources/som-lib.jar"/>

So ./ is accepted as "current directory where .classpath is hosted".
I.e. ../ would be "one level up".
Re: win7: .classpath does not support dir walk up? [message #1729845 is a reply to message #1729843] Tue, 19 April 2016 13:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
Frank,

The point is that a relative path being relative to the project itself
makes sense and is obviously supported, but it's not clear where ..
should navigate to. Logically up to the root of the workspace?
Logically up to the physical file system folder of the project? There's
no guarantee that project X and project Y in the workspace can be
physically navigated by using ../Y from project X in the file system.
So if it's going to relative to the workspace, it would make more sense
to have some type of absolute way of refering to another project than
trying to accomplish that with a relative path that navigates up...

On 19.04.2016 15:00, Frank Bergemann wrote:
> well, it accepts paths like this also in windows:
> <classpathentry kind="lib" path="./ext-resources/som-lib.jar"/>
> So ./ is accepted as "current directory where .classpath is hosted".
> I.e. ../ would be "one level up".


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: win7: .classpath does not support dir walk up? [message #1730452 is a reply to message #1729816] Mon, 25 April 2016 22:48 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

That it works under Linux is basically a fluke. Don't rely on it.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Button class and EventHandler
Next Topic:How to make my IDE tabs and windows looks squared?
Goto Forum:
  


Current Time: Tue Apr 23 07:29:34 GMT 2024

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

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

Back to the top