Re: compile ImageJ plugin source code

Posted by Thomas Boudier-2 on
URL: http://imagej.273.s1.nabble.com/grayscale-displays-and-human-vision-tp3702214p3702221.html

Commandeur a écrit :
> Hi Michael,
>
> You could try making an environment variable CLASSPATH and
> include the directory where the 'tools.jar' file resides.
> For my pc that would be:
>
> CLASSPATH = C:\Program Files\Java\jdk1.5.0_06\lib
>  
Hi,

The tools.jar file should be directly in the classpath  :

CLASSPATH = C:\Program Files\Java\jdk1.5.0_06\lib\tools.jar

and then :

java .... -cp CLASSPATH ij.ImageJ

Thomas

 

> Also check the 'ImageJ.cfg' file in the ImageJ directory and
> see what JVM it's calling. I don't know if the settings in
> the 'ImageJ.cfg' file will override the settings for the
> JAVA_HOME evironment variable (I could test this, but I am
> to lazy).
>
> Greetings,
> Edwin
>
>  
>> hi there,
>>
>> I tried to compile ImageJ source code in my server.
>>
>> I tried two ways:
>>
>> 1. download source code of ImageJ, run "ant", it
>> compile source code to ij.jar file successfully (with
>> my new plugin class) and it launch ImageJ
>> automatically;
>>
>> but I can't see my new plugin in menu bar and when I
>> click "plugins/Compile and run", give me error
>> messages of "This JVM does not include the javac
>> compiler.Javac is included..."
>>
>> 2. download a package for windows (without Java
>> (1.6MB). ), Install the package,
>>
>> launch ImageJ successfully, but when I click
>> "plugins/Compile and run", it gave me the same error
>> message of "This JVM does not include the javac
>> compiler.Javac is included..."
>>
>> I wonder which way is the best for compiling source
>> code and what is wrong for my system settings.
>>
>> I have Java1.5 installed in server with ant, cgywin.
>> The windows environment setting is "path--java\jdk
>> bin" and "JAVA_HOME---java\jdk", "JVM---java\jdk", etc
>>
>> thanks,
>>
>> Michael,
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection
>>    
> around
>  
>> http://mail.yahoo.com 
>>
>>    
>
> .
>
>  


--
/*****************************************************/
 Thomas Boudier, MCU Université Pierre et Marie Curie
 Imagerie Intégrative,Institut Curie - INSERM U759.
 Tél : 01 69 86 31 72  Fax : 01 69 07 53 27
/*****************************************************/