[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: Problem using Eclipse-Plugin



Marco Bakera wrote:
> 
>  I encountered some problems using the soot-plugin with a selfwritten
> main-class.
> So i wrote this small Testclass MeineMain.java and tried to get the plugin
> use it:
> 
> public class MeineMain {
> 
>    public static void main(String[] args) {
>      System.out.println("its working...");
>      soot.Main.main(args);
>    }
> }
> 
>  I'm using the following plugin.xml
> 
>  <runtime>
>        <library name="soot-plugin.jar"/>
>        <library name="sootclasses-2.1.0.jar"/>
>        <library name="myclasses/"/>
>        <library name="soot/classes/"/>
>        <library name="jasminclasses-sable-1.2.jar"/>
>        <library name="polyglot-1.1.0.jar"/>
> </runtime>
> 
>  So i added 'myclasses/' to the folder for mainclasses to be searched for
> an
> tried it. After that i got this strange errormessage:
> 
>  Starting ...MeineMain --h --d C:\[...] --keep-line-number
> LiveVariablesAnalysis.foo
> java.lang.IllegalAccessException: Class
>  ca.mcgill.sable.soot.launching.SootThread can not access a member of class
>  MeineMain with modifiers "public static"
>  at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
>  at java.lang.reflect.Method.invoke(Unknown Source)
>  at ca.mcgill.sable.soot.launching.SootThread.run(SootThread.java:94)

Are you sure your class is public? This sounds kindof like this "bug":

  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4396435

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com