• Post Reply Bookmark Topic Watch Topic
  • New Topic

boring task for anyone that his lots of spare time in there hands  RSS feed

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the active code should do the exact same thing as the commented code. But at runtime the one with the file.separator methode does not work. Can any one see any errors?


thanks
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getResource uses a URL not a system dependent path, so file.seperator
will not work (unless that seperator happens to be "/").
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh, I see,
thanks very much
 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there was another thing, when I used the getResource method i couldn't debug or run the programe in eclipse, it only run as a seperate jar file. Is there any way round this?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!