Posts tagged: eclipse

Eclipse Scripting

Eclipse scripting with Ruby

Eclipse Remote Java Debugging

Remote Debugging with Eclipse – a good summary.

The VERY short version

For JVM invocation, add ‘-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044′

In Eclipse

  • Run > Debug Configurations > Remote Java Application
  • Host: localhost Port: 1044 (from command line above)
  • Save
  • Run – ignoring hot deploy errors (until I figure out the problem)

A little more

Remove Eclipse

To remove Eclipse from an external project, delete the following at the top of the project tree:

  • .classpath
  • .externalToolBuilders
  • .project

Eclipse and Solr

To prepare

solr-1.2 only – Make sure you have a copy of some version of  ‘junit’ in ./lib.

solr-1.3 junit seems to be found automatically

To create a project in Eclipse

File > New > Java Project

In ‘Create Java Project’ dialog:

Select ‘Create Project from existing source’. Select directory where the TOP of the code tree lives. Leave other defaults alone.

Select ‘Finish’

Setup build file as an Eclipse build file

Project > Properties > Builders > New > Ant Builder

On ‘Main’ tab:

  • Locate ‘build.xml’
  • Set base directory to top of build tree
  • For argument, add ‘compile’
  • Apply

On ‘Targets’ tab:

  • Manual build ‘compilel’
  • Automatic build ‘compile’

Problems

If you run into problems, particularly with the ‘junit’ library not being found.

Project > Properties > Builders > [pick builder] >

In ‘Classpath’ tab, ‘Add Jars’,  select ‘junit’ from list in ./lib and add it.

WordPress Themes