Sunday 15 September 2013

Eclipse type / import error with built java file -



Eclipse type / import error with built java file -

i have project utilize ant buildfile create .java files. built files need reference existing other java files. problem built file can have code line example

arg = (expr) new ast.binaryop(lhs, bop.b_minus, rhs);

where show error "ast.binaryop cannot resolved type". can type ast.binaryop 1 time again , utilize autocomplete pick binaryop part , error disappear. same bop.b_minus. did import (probably way many times) necessary other files far can tell. i.e.

import cd.ir.ast; import cd.ir.ast.*; import cd.ir.ast.expr; import cd.ir.ast.binaryop; import cd.ir.ast.binaryop.bop;

so far tried

restarting eclipse 'clean' project to run project anyway (doesn't work) remove "ast." part work 1 time 1 time again if in eclipse not if generated way google problem, respectively search on stackoverflow turned out hard there many related issues. there no keywords far can tell. deleted project eclipse , imported newly

i need repeatedly run ant build file test code .java file generated, changing errors manually not option.

thanks advice/help in advance. gladly provide more info if tell me help.

hit f5 on project, open file, , seek hitting ctrl+shift+o automatically organize imports.

java eclipse ant types build

No comments:

Post a Comment