Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Fail to get a resource in URL format  RSS feed

 
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?

 
Sheriff
Posts: 4745
131
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.
 
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 ?
 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!