Improved ImageJ Launcher/Launching ImageJ from external program

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Improved ImageJ Launcher/Launching ImageJ from external program

George H. Silva
Hello All,

 

I also looked at the code for JavaLauncher and decided to take a few minutes
to re-write/fix the application ;-)  Since I don't have a C compiler for
windows based apps, I used Pascal (Delphi) to code (source is included).
The resulting app is now 80% smaller and works exactly the same - well,
except that it now handles file associations correctly :-) I do not
experience the load-delay problem mentioned by Hugo Gratama van Andel, but
this could be an unrelated thing in his case.

 

A compiled version of the new ImageJ launcher app is available here:

 

http://www.brokensymmetry.com/files/imagejwinstub.zip

 

Inside the zip you will find the compiled exe, a readme file and the source.
I kept the program compatible with the ".CFG" format, although if people are
interested in having the program more "windows friendly", just let me know
("windows friendly" = using the registry for finding the JVM, etc).

 

Comments and suggestions welcome - give it a try and let me (and this
mailing list) know how things work!

 

Wayne - feel free to include this in the official ImageJ install.  As
mentioned, I can add features if needed.

 

Cheers,

George.---

 

***********************************************************
George H. Silva, PhD
Institut fuer Biochemie, FB08
Justus-Liebig-Universitaet
Heinrich-Buff-Ring 58
35392 Giessen
Germany
E-mail: [hidden email]
***********************************************************

 
Reply | Threaded
Open this post in threaded view
|

Re: Improved ImageJ Launcher/Launching ImageJ from external program

Hugo Gratama van Andel
Hello All, Hello George H. Silva,

I tried your version of "ImageJ.exe" and it works fine!
But I also experience a delay of 12 seconds before ImageJ is launched...
Just like with my own code. Maybe the delay  is caused by my rare setup.
I am running Windows XP 64-bit version and use the 64-bit version JRE to
run ImageJ. I am glad that the other users don't experience strange delays.

I can imagine to use the code of George H. Silva in stead of mine. If
you start working with an changed version of the JavaLauncher code,
working with totally new code is a comparable good option.

-Hugo Gratama van Andel

George H. Silva wrote:

> Hello All,
>
>  
>
> I also looked at the code for JavaLauncher and decided to take a few minutes
> to re-write/fix the application ;-)  Since I don't have a C compiler for
> windows based apps, I used Pascal (Delphi) to code (source is included).
> The resulting app is now 80% smaller and works exactly the same - well,
> except that it now handles file associations correctly :-) I do not
> experience the load-delay problem mentioned by Hugo Gratama van Andel, but
> this could be an unrelated thing in his case.
>
>  
>
> A compiled version of the new ImageJ launcher app is available here:
>
>  
>
> http://www.brokensymmetry.com/files/imagejwinstub.zip
>
>  
>
> Inside the zip you will find the compiled exe, a readme file and the source.
> I kept the program compatible with the ".CFG" format, although if people are
> interested in having the program more "windows friendly", just let me know
> ("windows friendly" = using the registry for finding the JVM, etc).
>
>  
>
> Comments and suggestions welcome - give it a try and let me (and this
> mailing list) know how things work!
>
>  
>
> Wayne - feel free to include this in the official ImageJ install.  As
> mentioned, I can add features if needed.
>
>  
>
> Cheers,
>
> George.---
>
>  
>
> ***********************************************************
> George H. Silva, PhD
> Institut fuer Biochemie, FB08
> Justus-Liebig-Universitaet
> Heinrich-Buff-Ring 58
> 35392 Giessen
> Germany
> E-mail: [hidden email]
> ***********************************************************
>
>  
>

--
Hugo Gratama van Andel - MSc
Academic Medical Centre - University of Amsterdam
Dept. Medical Physics      L0-152
Meibergdreef 9
1105 AZ Amsterdam
The Netherlands
Phone  :  +31 20 566 5206
FAX    :  +31 20 691 7233
e-mail :  [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Improved ImageJ Launcher/Launching ImageJ from external program

Hugo Gratama van Andel
Hello All,
I am replying to my own message (to complete the information on the list
and hopefully saving someone a headache) because I found the cause of
the delay when launching ImageJ via file-extension associations.
After debugging I found out that the problem is java related. Changing
the JRE back to 1.5.0_03 32-bit resolved the problem. The 64-bit JRE
version that I use (1.5.0_06) causes the delay.
I was using the 64-bit version to resolve one of my other (display)
problems... (see: Re: Windows behavior of version 1.35j - corrupt
display of 100% image)
So I think I will have to deal with the delay untill Sun will resolve
the problem in their 64-bit JRE.

-Hugo

Hugo Gratama van Andel wrote:

> Hello All, Hello George H. Silva,
>
> I tried your version of "ImageJ.exe" and it works fine!
> But I also experience a delay of 12 seconds before ImageJ is launched...
> Just like with my own code. Maybe the delay  is caused by my rare setup.
> I am running Windows XP 64-bit version and use the 64-bit version JRE to
> run ImageJ. I am glad that the other users don't experience strange delays.
>
> I can imagine to use the code of George H. Silva in stead of mine. If
> you start working with an changed version of the JavaLauncher code,
> working with totally new code is a comparable good option.
>
> -Hugo Gratama van Andel
>
> George H. Silva wrote:
>
>> Hello All,
>>
>>  
>>
>> I also looked at the code for JavaLauncher and decided to take a few
>> minutes
>> to re-write/fix the application ;-)  Since I don't have a C compiler for
>> windows based apps, I used Pascal (Delphi) to code (source is included).
>> The resulting app is now 80% smaller and works exactly the same - well,
>> except that it now handles file associations correctly :-) I do not
>> experience the load-delay problem mentioned by Hugo Gratama van Andel,
>> but
>> this could be an unrelated thing in his case.
>>
>>  
>>
>> A compiled version of the new ImageJ launcher app is available here:
>>
>>  
>>
>> http://www.brokensymmetry.com/files/imagejwinstub.zip
>>
>>  
>>
>> Inside the zip you will find the compiled exe, a readme file and the
>> source.
>> I kept the program compatible with the ".CFG" format, although if
>> people are
>> interested in having the program more "windows friendly", just let me
>> know
>> ("windows friendly" = using the registry for finding the JVM, etc).
>>
>>  
>>
>> Comments and suggestions welcome - give it a try and let me (and this
>> mailing list) know how things work!
>>
>>  
>>
>> Wayne - feel free to include this in the official ImageJ install.  As
>> mentioned, I can add features if needed.
>>
>>  
>>
>> Cheers,
>>
>> George.---
>>
>>  
>>
>> ***********************************************************
>> George H. Silva, PhD
>> Institut fuer Biochemie, FB08
>> Justus-Liebig-Universitaet Heinrich-Buff-Ring 58
>> 35392 Giessen
>> Germany
>> E-mail: [hidden email]
>> ***********************************************************
>>
>>  
>>
>

--
Hugo Gratama van Andel - MSc
Academic Medical Centre - University of Amsterdam
Dept. Medical Physics      L0-152
Meibergdreef 9
1105 AZ Amsterdam
The Netherlands
Phone  :  +31 20 566 5206
FAX    :  +31 20 691 7233
e-mail :  [hidden email]