• Post Reply Bookmark Topic Watch Topic
  • New Topic

JBehave JVM can't find 'story'  RSS feed

 
Billy Sclater
Ranch Hand
Posts: 145
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a JBehave project that I am trying to run in Eclipse. You can see the main method below. The JVM can't seem to find the story file. I know that I am not showing my 'steps' class and 'JbehaveEmbedder' class here. However, I am pretty sure that those classes have no issues and the solution is to simply change one of the paths mentioned in the code, or to move my story file elsewhere.



This is the exception I get:

Exception in thread "main" org.jbehave.core.io.StoryResourceNotFound: Story path 'j_behave_runner.story' not found by class loader sun.misc.Launcher$AppClassLoader@26fc5b01

Any ideas how to fix??
 
Billy Sclater
Ranch Hand
Posts: 145
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NP resolved.

I used:



then ...



to find the 'story' file.

so....



solves it!!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!