Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How do I programmatically add an external class folder to build path?
How do I programmatically add an external class folder to build path? [message #116551] Wed, 12 November 2003 17:47 Go to next message
Eclipse UserFriend
Hi,
I tried JavaCore.newLibraryEntry(folder, null,null) , it didn't
work, I guess it only accepts folders that are inside the workspace.
Is there a way to add an external class folder to the classpath
programmatically. I can do it within the UI (By creating a new folder
and linking it to the folder in the file system), so I would think it
would be possible to do it programmatically. Anybody have an idea on how
to do this?
Thanks,
Gina
Re: How do I programmatically add an external class folder to build path? [message #116611 is a reply to message #116551] Thu, 13 November 2003 03:51 Go to previous messageGo to next message
Eclipse UserFriend
See IFolder.createLink(IPath, int, IProgressMonitor) then use
JavaCore.newLibraryEntry(folder, null,null) with the IFolder's path.

Jerome

"Gina Assaf" <assaf@parasoft.com> wrote in message
news:boud2m$fk4$1@eclipse.org...
> Hi,
> I tried JavaCore.newLibraryEntry(folder, null,null) , it didn't
> work, I guess it only accepts folders that are inside the workspace.
> Is there a way to add an external class folder to the classpath
> programmatically. I can do it within the UI (By creating a new folder
> and linking it to the folder in the file system), so I would think it
> would be possible to do it programmatically. Anybody have an idea on how
> to do this?
> Thanks,
> Gina
>
Re: How do I programmatically add an external class folder to build path? [message #116813 is a reply to message #116611] Thu, 13 November 2003 18:41 Go to previous message
Eclipse UserFriend
Thanks, that worked.
-Gina
Jerome Lanneluc wrote:
> See IFolder.createLink(IPath, int, IProgressMonitor) then use
> JavaCore.newLibraryEntry(folder, null,null) with the IFolder's path.
>
> Jerome
>
> "Gina Assaf" <assaf@parasoft.com> wrote in message
> news:boud2m$fk4$1@eclipse.org...
>
>>Hi,
>> I tried JavaCore.newLibraryEntry(folder, null,null) , it didn't
>>work, I guess it only accepts folders that are inside the workspace.
>>Is there a way to add an external class folder to the classpath
>>programmatically. I can do it within the UI (By creating a new folder
>>and linking it to the folder in the file system), so I would think it
>>would be possible to do it programmatically. Anybody have an idea on how
>>to do this?
>>Thanks,
>> Gina
>>
>
>
>
Previous Topic:Wrapping text in Java Editor?
Next Topic:Easier handling of bookmarks
Goto Forum:
  


Current Time: Sat May 24 14:37:14 EDT 2025

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

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

Back to the top