> It is all jre. Why this one can have not problem for compile
> and run plugins.
tools.jar contains the javac compiler.
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> Johannes Schindelin
> Sent: Tuesday, February 06, 2007 5:27 PM
> To:
[hidden email]
> Subject: Re: ImageJ Plugin
>
> Hi,
>
> On Tue, 6 Feb 2007, Hao An wrote:
>
>> I do not have the line of "package plugins".
>
> That is strange. Your mail said:
>
> java.lang.NoClassDefFoundError: My_Plugin(wrong
> name:plugins/My_Plugin
>
> This suggests that somehow this plugin is compiled as if it were in
> the
> package "plugins". With current ImageJ, it is not sufficient to put
> the
> resulting class file in the directory "plugins". You _have_ to build a
> jar
> if your class is in some package.
>
> Maybe your compile script does strange things?
>
>> I wrote the macro(write(call("java.lang.System.getProperty",
>> "java.home")), and I got this
>>
>> C:\Program Files\java\jdk1.5.0_04\jre
>>
>> That looks fine to me.
>
> Not to me. The final "jre" says that it is a Java Runtime Environment
> (JRE), as opposed to Java Development Kit (JDK).
>
> Hth,
> Dscho