java local variable unavailable -
i'm getting following error eclipse debugger: local variable unavailable. tried trim code as possible. problem pretty simple, have use divisiveui updatelog() method, divise class, using variables cluster class. divise has list containing of clusters. divisive , divisiveui has reference each other. how can access variables: sumdistance, avgdistance divisive class? tried writing method in divisive class, still couldn't access needed variables :| thank you!
error crops @ log.append(text+"\n"); source not found.
divisive:
package clusters; import java.util.linkedlist; public class divisive implements runnable { linkedlist<record> maintable; linkedlist<cluster> clusterlist; int meassuretype; divisiveui parent; int clustercount; divisive(linkedlist<record> maintable, divisiveui parent) { this.parent=parent; this.maintable=new linkedlist<record>(maintable); setmeassuretype(0); } } divisiveui:
package clusters; @suppresswarnings("serial") public class divisiveui extends jpanel implements runnable{ clusteringselection parent; divisive divisive; jtextfield clustercount; jtextarea log; public void updatelog(string text) { log.append(text+"\n"); log.setcaretposition(log.getdocument().getlength()); } } cluster:
package clusters; public class cluster { linkedlist<record> table; linkedlist<matrixrow> matrix; linkedlist<double> center; double sumdistance; double avgdistance; int meassuretype; }
if debugger can't acces local variable, means code hasn't been compiled option adding local variable debugging information bytecode.
check how you're compiling classes, , make sure information in compiled classes. if javac used, add -g option ad debugging information.
Comments
Post a Comment