classpath for resources [message #18370] |
Fri, 09 May 2003 10:11  |
Eclipse User |
|
|
|
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 #19070 is a reply to message #18406] |
Fri, 09 May 2003 12:07  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04099 seconds