• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

referring to a file within src folder

 
Neil Tomlin
Greenhorn
Posts: 9
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Eclipse to write/test a program. My JAVA files are all located within the src folder within the Project.

In one of my classes I would like to access a file in my src folder using a relative URI; how can I do this?

I've tried:



None of which appear, to work. Can anyone help me with this?
Thanks
 
Martin Caminoa
Greenhorn
Posts: 5
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Have you tried
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you divided your classes into packages?
 
Neil Tomlin
Greenhorn
Posts: 9
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's got it thanks

Thought I had tried it but obviously not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic