• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fail to get a resource in URL format  RSS feed

 
Bill Thompson
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Forum!

I have inherited some code that is supposed to work just fine.

The trouble is that when everything is rebuilt on my desktop, the projects crash.

They all seem to crash at one particular part of code.

I pass it a string and the "getResource" or "getContentClassLoader" is failing.

Any ideas?

 
Knute Snortum
Sheriff
Posts: 4270
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're saying crash, but it's just reporting an error, right? It's just saying it can't find testEnvironmentFilePath in the classpath.
 
Mike Degteariov
Ranch Hand
Posts: 145
8
Java Mac MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Bill,

Please can you let me know how does it fail exactly ? Does it throw an exception, and if so, how does the stack trace look like ?
 
Paul Ngom
Ranch Hand
Posts: 355
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please can you let me know how does it fail exactly ? Does it throw an exception, and if so, how does the stack trace look like ?

I reiterate the questions.
In addition, do some debugging on your part. Start by making sure you get testEnvironmentFilePath variable correct.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!