Permalink
Browse files

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

  • Loading branch information...
dschultzca committed Jan 8, 2013
1 parent 94eadb1 commit b41569083bffeef233e439aca4dcc7b9abc982b4
Showing with 1 addition and 1 deletion.
  1. +1 −1 .classpath
View
@@ -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

This comment has been minimized.

Show comment
Hide comment
@scotthew

scotthew Jan 16, 2013

Contributor

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

Contributor

scotthew replied Jan 16, 2013

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

@dschultzca

This comment has been minimized.

Show comment
Hide comment
@dschultzca

dschultzca Jan 16, 2013

Collaborator

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

Collaborator

dschultzca replied Jan 16, 2013

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

@scotthew

This comment has been minimized.

Show comment
Hide comment
@scotthew

scotthew Jan 16, 2013

Contributor

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.

Contributor

scotthew replied Jan 16, 2013

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

This comment has been minimized.

Show comment
Hide comment
@dschultzca

dschultzca Jan 16, 2013

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?

Collaborator

dschultzca replied Jan 16, 2013

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

This comment has been minimized.

Show comment
Hide comment
@scotthew

scotthew Jan 16, 2013

Contributor

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.

Contributor

scotthew replied Jan 16, 2013

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

This comment has been minimized.

Show comment
Hide comment
@dschultzca

dschultzca Jan 16, 2013

Collaborator

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

Collaborator

dschultzca replied Jan 16, 2013

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

@dschultzca

This comment has been minimized.

Show comment
Hide comment
@dschultzca

dschultzca Jan 16, 2013

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.

Collaborator

dschultzca replied Jan 16, 2013

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

This comment has been minimized.

Show comment
Hide comment
@scotthew

scotthew Jan 17, 2013

Contributor

That did the trick. Thanks for the help.

Contributor

scotthew replied Jan 17, 2013

That did the trick. Thanks for the help.

Please sign in to comment.