0 Replies Latest reply on Sep 19, 2011 9:23 AM by sprigg

    how to get ClassPool in EclipseApplication

    sprigg

      Hi,

      I have a problem with getting the ClassPool in my EclipseApplication.

       

      Here's the Use Case: I have an EclipseApplication where I can "run" my Interpreter for diagrams. To evaluate the guards i wanted to change an evaluation method, so i can use the whole java spectrum of conditions without writing my own Parser.

       

      Now my problem: testing in an small java project worked perfectly, but integrating the "evaluation-classes" into my application won't work. Debugging says that the ClassPool.getDefault(); throws an Exception (unfortunately a non catchable).

       

      And the question: what am i doing wron? is there any other way to get the ClassPool? Or is there any other way to manipulate classes without that pool?

       

       

      Here is the (uninteresting) part causing the problem:

       

       

      try{
                  ClassPool pool = ClassPool.getDefault();
                  [...]
      
      }catch(Exception e)
              {e.printStackTrace();}
      
      

       

      Thanks in advance.

       

      Sprigg