views:

273

answers:

2

Hi,

I am configuring sql2java the first time myself. I extracted the zip-archive and imported all files into an eclipse java project. I don't know if this is correct, because when I run the ant build file through the eclipse ant function ("Run as ant build...") there is no output on the console.

I don't know where the problem is located, sql2java, ant, eclipse? Its a fresh and clean install of eclipse galileo.

How can I get sql2java / ant to work? How do I get any information that can help me to locate the problem? Is there a way to use the eclipse's ant installation to run the build file from console?

Any help would be appreciated. Thanks in advance.

A: 

the problem may be related to anthome definitions, generally it should be the same with your eclipse plugin directory.

  1. goto windows/preferences menu
  2. on the left tree-menu choose ant/Runtime
  3. on right screen edit your anthome variable, set to your eclipse installition ant plugin directory forexample : ..\eclipse-jee-galileo win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145

hope it works

acteon
A: 

to get the output in console. you should change the JRE option in the Edit configuration and launch for Ant run as to Run in same JRE as the workspace.

with this change you can see the output in console.it doesnot matter where the ANT home is.it can be in eclipse plugin or separate ant dir.

2010user