Skip to content
Browse files

Fix classpath to allow Run and Debug to work from within Eclipse

  • Loading branch information...
1 parent 94eadb1 commit b41569083bffeef233e439aca4dcc7b9abc982b4 @dschultzca dschultzca committed Jan 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 .classpath
View
2 .classpath
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
- <classpathentry kind="src" path="src/main/resources" excluding="**" output="target/classes"/>
+ <classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/common/com4j.jar"/>
<classpathentry kind="lib" path="lib/windows/j3dcore.jar"/>

8 comments on commit b415690

@scotthew

FYI. I still had to add the resources folder to the EXUExec Classpath when running and debugging from eclipse.

@dschultzca
Collaborator

Yes the resource folder is still required:
4 + <classpathentry kind="src" path="src/main/resources"/>

@scotthew

What i am saying is that it will not debug and throws a null pointer exception unless i manually go in and add the folder to the build path. Even with the referenced line.

@dschultzca
Collaborator

Do you have this in the Run configuration that you are launching the Editor with?
-Djava.library.path=lib/windows -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Dsun.java2d.d3d=false -Xms64M -Xmx512M

My classpath is exactly as stated in the file here on the repo, no other tweaks in Eclipse at all.
Do yo use Eclipse IDE for Java EE or the regular version?

@scotthew

Yes I have this run configuration. But it still will not work unless I manually add the folder to the editor classpath. I am running Eclipse IDE for Java EE.

@dschultzca
Collaborator

Where exactly do you add that so I can check mine?

@dschultzca
Collaborator

OK, I see what you mean.
Try this:
1) run build.xml target all to completeion.
2) on the romriader root in the package explorer select Refresh (F5)
3) from the Eclipse build menu select Clean...
4) after the workspace rebuilds it should work.

I think Eclipse doesn't copy the resources to the build path until your "clean" the project.

@scotthew

That did the trick. Thanks for the help.

Please sign in to comment.
Something went wrong with that request. Please try again.