Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Classpath problem
Classpath problem [message #449401] Thu, 11 May 2006 23:57 Go to next message
Eclipse UserFriend
Hi all,

How can we give more priority to one jar over the other in the classpath.

for example:- if we have two jar A and B in class path. and both have a file of same name X. so what i want is that when i use that file X, the file X should be related to jar B.

Thanks in advance
Re: Classpath problem [message #449415 is a reply to message #449401] Fri, 12 May 2006 08:17 Go to previous message
Eclipse UserFriend
classpaths without eclispe are really simple. it will take the first
class X it finds.

So -classpath A.jar:B.jar will pick it up from A.jar, and -classpath
B.jar:A.jar will pick it up from B.jar. That's one of the convenient
ways to patch a java app, just put the patch jar earlier in the classpath.

In eclipse ... I'm not sure sure. If I had to guess, it's using the
dependency chain. if C depends on B depends on A, if C wants X and it
can be found in A, it'll be loaded from A.

Within one plugin, it's more like the normal way. If you have a
Bundle-ClassPath: A.jar, B.jar it'll take X from A.jar first.

Later,
PW
Previous Topic:How change the tab color
Next Topic:IFileEditorInput problem
Goto Forum:
  


Current Time: Sun Aug 31 14:54:46 EDT 2025

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

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

Back to the top