Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » classpath for resources
classpath for resources [message #18370] Fri, 09 May 2003 14:11 Go to next message
john is currently offline johnFriend
Messages: 27
Registered: July 2009
Junior Member
I need to add folders other than /bin (which contains *.class) to the
class path.
The full paths of what i have are:
/development/Java/MyProject/bin/*.class
/development/Java/MyProject/resources/*.properties
/development/Java/MyProject/images/*.gif

When running my application, it can't find the properties and gif
files,I assume because they are not on the classpath.
So I need to add these folder to the classpath.

So I add a classpath variable:
Window -> Preferences ->New...
Name: RESOURCE_PATH
Path: /development/Java/MyProject/resources/
OK

Then add the variable to the project
MyProject -> Properties -> Java Build Path -> Libraries -> Add Variable

When I do this, however, I get an error saying:
The path '/development/Java/MyProject/resources/' does not point to an
existing archive.


What am I doing wrong?
Re: classpath for resources [message #18406 is a reply to message #18370] Fri, 09 May 2003 14:19 Go to previous messageGo to next message
Eclipse UserFriend
If it is in your project, which it looks like it is, then you don't need
a variable. Just go to the libraries page and click on "Add Class Folder
" button. From there, select the two folders, images and resources. This
is Eclipse 2.1, I think class folders were available for 2.0 also.

Rich
Re: classpath for resources [message #19070 is a reply to message #18406] Fri, 09 May 2003 16:07 Go to previous message
john is currently offline johnFriend
Messages: 27
Registered: July 2009
Junior Member
thanks!

Richard L. Kulp wrote:
> If it is in your project, which it looks like it is, then you don't need
> a variable. Just go to the libraries page and click on "Add Class Folder
> " button. From there, select the two folders, images and resources. This
> is Eclipse 2.1, I think class folders were available for 2.0 also.
>
> Rich
>
Previous Topic:I have tried but JavaEditor example doesn't work:
Next Topic:Updating CLASSPATH libraries by folder
Goto Forum:
  


Current Time: Thu Dec 26 18:12:38 GMT 2024

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

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

Back to the top