Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » setClasspathContainer doesn't affect classpath
setClasspathContainer doesn't affect classpath [message #246897] Fri, 17 August 2007 09:36 Go to next message
Eclipse UserFriend
I can't understand why my classpath is not updated.
1. I get classpathContainer with JavaCore.getClasspathContainer
2. I modify its entries (classpathContainer.getClasspathEntries())
3. set it again JavaCore.setClasspathContainer
4. on my workspace I see updates as the element, what I was modifying, has
new properties attached but editors seem to be unaware of them because
they don't find source that I just attached.

Although when looking at jar properties there is a path to source
attachment. Also the path is set when looking libraries under user
libraries section in preferences.
And after restart the properties that were visible before are gone.

I have tried updating project classpath by resetting the container entry
but that did nothing.

What more do I have to do?
Re: setClasspathContainer doesn't affect classpath [message #246902 is a reply to message #246897] Fri, 17 August 2007 10:42 Go to previous message
Eclipse UserFriend
Ok I finally figured out what was wrong. I modified the same
classpathcontainer I obtained from JavaCore. During the setting new
container there was an equality check between old and new container. but
they were the same. So I created new instance and copied all information.
Now got it working :)
Previous Topic:Dot arguments expanded during launch
Next Topic:Package Explorer is empty after "Go Into" and delete of this project
Goto Forum:
  


Current Time: Tue Jul 08 19:49:22 EDT 2025

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

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

Back to the top