Thread: [tcljava-user] Creating an Eclipse plug-in for TclBlend
Brought to you by:
mdejong
From: Gregory P. <gp...@ls...> - 2005-08-22 16:49:33
|
Hi, Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared libraries so that I could send this plug-in to anyone and they could use it without having to build and install Tcl on their system first. Thanks, Greg |
From: Patrick F. <pfi...@oz...> - 2005-08-23 14:32:05
Attachments:
pfinnegan.vcf
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> wrote:<br> <blockquote cite="mid...@sc..." type="cite"> <pre wrap="">Send tcljava-user mailing list submissions to <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> To subscribe or unsubscribe via the World Wide Web, visit <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">https://lists.sourceforge.net/lists/listinfo/tcljava-user</a> or, via email, send a message with subject or body 'help' to <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> You can reach the person managing the list at <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. Creating an Eclipse plug-in for TclBlend (Gregory Pierce) 2. Re: Creating an Eclipse plug-in for TclBlend (Mo DeJong) 3. Re: Creating an Eclipse plug-in for TclBlend (Gregory Pierce) 4. R: [tcljava-user] Creating an Eclipse plug-in for TclBlend (Luca) --__--__-- Message: 1 Date: Mon, 22 Aug 2005 12:49:30 -0400 From: Gregory Pierce <a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls..."><gp...@ls...></a> Organization: LSI Loigic Corp. To: TclJava-User <a class="moz-txt-link-rfc2396E" href="mailto:tcl...@li..."><tcl...@li...></a> Subject: [tcljava-user] Creating an Eclipse plug-in for TclBlend Reply-To: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> Hi, Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared libraries so that I could send this plug-in to anyone and they could use it without having to build and install Tcl on their system first. Thanks, Greg --__--__-- Message: 2 Date: Mon, 22 Aug 2005 11:55:18 -0700 From: Mo DeJong <a class="moz-txt-link-rfc2396E" href="mailto:md...@un..."><md...@un...></a> To: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> Cc: <a class="moz-txt-link-abbreviated" href="mailto:gp...@ls...">gp...@ls...</a> Subject: Re: [tcljava-user] Creating an Eclipse plug-in for TclBlend Organization: None Reply-To: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> On Mon, 22 Aug 2005 12:49:30 -0400 Gregory Pierce <a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls..."><gp...@ls...></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi, Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared libraries so that I could send this plug-in to anyone and they could use it without having to build and install Tcl on their system first. </pre> </blockquote> <pre wrap=""><!----> Really hard to do. You could build Tcl and Tcl Blend and zip up the install tree but the trouble is that Tcl Blend depends on runtime env vars to find the JDK that it is linked to. At runtime, it needs to find jvm.dll and that means the PATH has to be searched. If you knew the JVM location or the PATH that jvm dlls were found on, then you might be able to do it. The trick will be getting all the env vars setup correctly when the JVM process starts. The process under Unix is the same except that you set LD_LIBRARY_PATH instead of PATH (for Win32). You would have a much easier time setting up a Jacl plugin since all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. cheers Mo DeJong --__--__-- Message: 3 Date: Mon, 22 Aug 2005 15:28:34 -0400 From: Gregory Pierce <a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls..."><gp...@ls...></a> Organization: LSI Loigic Corp. To: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> Subject: Re: [tcljava-user] Creating an Eclipse plug-in for TclBlend Reply-To: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> This is a multi-part message in MIME format. --------------000507060203030102060805 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi Mo, Thanks for the reply. I need to use TclBlend because I have pre-existing Tcl code that uses Itcl and some other Tcl packages. I'm also guessing that TclBlend would be faster since it uses JNI. In order to run Eclipse the user needs to have JRE installed on their system. Is this enough information to get TclBlend to work? Currently, I'm able to set to env variables setenv TCL_LIBRARY /a/b/c/lib/tcl8.4 where: /a/b/c/lib contains libtcl8.4.so and setenv LD_LIBRARY_PATH /a/b/c/lib where: /a/b/c/lib contains libtclblend.so However, I'm not sure how to set these environment variables within an Eclipse plug-in. Greg Mo DeJong wrote: </pre> <blockquote type="cite"> <pre wrap="">On Mon, 22 Aug 2005 12:49:30 -0400 Gregory Pierce <a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls..."><gp...@ls...></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi, Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared libraries so that I could send this plug-in to anyone and they could use it without having to build and install Tcl on their system first. </pre> </blockquote> <pre wrap="">Really hard to do. You could build Tcl and Tcl Blend and zip up the install tree but the trouble is that Tcl Blend depends on runtime env vars to find the JDK that it is linked to. At runtime, it needs to find jvm.dll and that means the PATH has to be searched. If you knew the JVM location or the PATH that jvm dlls were found on, then you might be able to do it. The trick will be getting all the env vars setup correctly when the JVM process starts. The process under Unix is the same except that you set LD_LIBRARY_PATH instead of PATH (for Win32). You would have a much easier time setting up a Jacl plugin since all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. cheers Mo DeJong ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * <a class="moz-txt-link-freetext" href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</a> _______________________________________________ tcljava-user mailing list <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">https://lists.sourceforge.net/lists/listinfo/tcljava-user</a> </pre> </blockquote> <pre wrap=""><!----> --------------000507060203030102060805 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> Hi Mo,<br> <br> Thanks for the reply. I need to use TclBlend because I have pre-existing Tcl<br> code that uses Itcl and some other Tcl packages. I'm also guessing that TclBlend<br> would be faster since it uses JNI.<br> <br> In order to run Eclipse the user needs to have JRE installed on their system. Is this<br> enough information to get TclBlend to work? Currently, I'm able to set to env variables<br> <br> setenv TCL_LIBRARY /a/b/c/lib/tcl8.4&nbsp;&nbsp; where: /a/b/c/lib contains libtcl8.4.so<br> and<br> setenv LD_LIBRARY_PATH /a/b/c/lib&nbsp;&nbsp; where: /a/b/c/lib contains libtclblend.so<br> <br> However, I'm not sure how to set these environment variables within an Eclipse plug-in.<br> <br> Greg<br> <br> Mo DeJong wrote:<br> <blockquote type="cite" cite=<a class="moz-txt-link-rfc2396E" href="mailto:mid...@un...">"mid...@un..."</a>> <pre wrap="">On Mon, 22 Aug 2005 12:49:30 -0400 Gregory Pierce <a class="moz-txt-link-rfc2396E" href=<a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls...">"mailto:gp...@ls..."</a>>&lt;gp...@ls...&gt;</a> wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi, Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared libraries so that I could send this plug-in to anyone and they could use it without having to build and install Tcl on their system first. </pre> </blockquote> <pre wrap=""><!----> Really hard to do. You could build Tcl and Tcl Blend and zip up the install tree but the trouble is that Tcl Blend depends on runtime env vars to find the JDK that it is linked to. At runtime, it needs to find jvm.dll and that means the PATH has to be searched. If you knew the JVM location or the PATH that jvm dlls were found on, then you might be able to do it. The trick will be getting all the env vars setup correctly when the JVM process starts. The process under Unix is the same except that you set LD_LIBRARY_PATH instead of PATH (for Win32). You would have a much easier time setting up a Jacl plugin since all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. cheers Mo DeJong ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference &amp; EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile &amp; Plan-Driven Development * Managing Projects &amp; Teams * Testing &amp; QA Security * Process Improvement &amp; Measurement * <a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" href="http://www.sqe.com/bsce5sf">"http://www.sqe.com/bsce5sf"</a>><a class="moz-txt-link-freetext" href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</a></a> _______________________________________________ tcljava-user mailing list <a class="moz-txt-link-abbreviated" href=<a class="moz-txt-link-rfc2396E" href="mailto:tcl...@li...">"mailto:tcl...@li..."</a>><a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a></a> <a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">"https://lists.sourceforge.net/lists/listinfo/tcljava-user"</a>><a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">https://lists.sourceforge.net/lists/listinfo/tcljava-user</a></a> </pre> </blockquote> </body> </html> --------------000507060203030102060805-- --__--__-- Message: 4 From: "Luca" <a class="moz-txt-link-rfc2396E" href="mailto:luc...@al..."><luc...@al...></a> To: <a class="moz-txt-link-rfc2396E" href="mailto:tcl...@li..."><tcl...@li...></a> Subject: R: [tcljava-user] Creating an Eclipse plug-in for TclBlend Date: Mon, 22 Aug 2005 21:43:19 +0200 Reply-To: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C5A762.832DAF10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Unsubscribe =20 _____ =20 Da: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> [<a class="moz-txt-link-freetext" href="mailto:tcl...@li...">mailto:tcl...@li...</a>] Per conto di Gregory Pierce Inviato: luned=EC 22 agosto 2005 21.29 A: <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> Oggetto: Re: [tcljava-user] Creating an Eclipse plug-in for TclBlend =20 Hi Mo, Thanks for the reply. I need to use TclBlend because I have pre-existing = Tcl code that uses Itcl and some other Tcl packages. I'm also guessing that TclBlend would be faster since it uses JNI. In order to run Eclipse the user needs to have JRE installed on their system. Is this enough information to get TclBlend to work? Currently, I'm able to set = to env variables setenv TCL_LIBRARY /a/b/c/lib/tcl8.4 where: /a/b/c/lib contains libtcl8.4.so and setenv LD_LIBRARY_PATH /a/b/c/lib where: /a/b/c/lib contains libtclblend.so However, I'm not sure how to set these environment variables within an Eclipse plug-in. Greg Mo DeJong wrote: On Mon, 22 Aug 2005 12:49:30 -0400 Gregory Pierce <a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls..."><mailto:gp...@ls...></a> <a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls..."><gp...@ls...></a> wrote: =20 =20 Hi, =20 Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared=20 libraries so that I could send this plug-in to anyone and they could use it without having = to build and install Tcl on their system first. =20 =20 Really hard to do. You could build Tcl and Tcl Blend and zip up the install tree but the trouble is that Tcl Blend depends on runtime env vars to find the JDK that it is linked to. At runtime, it needs to find jvm.dll and that means the PATH has to be searched. If you knew the JVM location or the PATH that jvm dlls were found on, then you might be able to do it. The trick will be getting all the env vars setup correctly when the JVM process starts. The process under Unix is the same except that you set LD_LIBRARY_PATH instead of PATH (for Win32). =20 You would have a much easier time setting up a Jacl plugin since all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. =20 cheers Mo DeJong =20 =20 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = <a class="moz-txt-link-freetext" href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</a> _______________________________________________ tcljava-user mailing list <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">https://lists.sourceforge.net/lists/listinfo/tcljava-user</a> =20 =20 =20 ------=_NextPart_000_0017_01C5A762.832DAF10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3DISO-8859-1"> <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" = xmlns=3D<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/REC-html40">"http://www.w3.org/TR/REC-html40"</a>> <head> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--><o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" = name=3D"PersonName"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman"; color:black;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} pre {margin:0cm; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New"; color:black;} span.StileMessaggioDiPostaElettronica18 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:595.3pt 841.9pt; margin:70.85pt 2.0cm 2.0cm 2.0cm;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=3Dwhite lang=3DIT link=3Dblue vlink=3Dblue> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Unsubscribe<o:p></o:p></span></font>= </p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span = style=3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = size=3D3 color=3Dblack face=3D"Times New Roman"><span = style=3D'font-size:12.0pt;color:windowtext'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 color=3Dblack face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight= :bold'>Da:</span></font></b><font size=3D2 color=3Dblack face=3DTahoma><span = style=3D'font-size:10.0pt;font-family:Tahoma; color:windowtext'> <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> [<a class="moz-txt-link-freetext" href="mailto:tcl...@li...">mailto:tcl...@li...</a>] <b><span = style=3D'font-weight: bold'>Per conto di </span></b>Gregory Pierce<br> <b><span style=3D'font-weight:bold'>Inviato:</span></b> luned&igrave; 22 = agosto 2005 21.29<br> <b><span style=3D'font-weight:bold'>A:</span></b> <st1:PersonName = w:st=3D"on"><a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a></st1:PersonName><br> <b><span style=3D'font-weight:bold'>Oggetto:</span></b> Re: = [tcljava-user] Creating an Eclipse plug-in for TclBlend</span></font><font = color=3Dblack><span style=3D'color:windowtext'><o:p></o:p></span></font></p> </div> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = Roman"><span style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p> <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = Roman"><span style=3D'font-size:12.0pt'>Hi Mo,<br> <br> Thanks for the reply. I need to use TclBlend because I have pre-existing = Tcl<br> code that uses Itcl and some other Tcl packages. I'm also guessing that TclBlend<br> would be faster since it uses JNI.<br> <br> In order to run Eclipse the user needs to have JRE installed on their = system. Is this<br> enough information to get TclBlend to work? Currently, I'm able to set = to env variables<br> <br> setenv TCL_LIBRARY /a/b/c/lib/tcl8.4&nbsp;&nbsp; where: /a/b/c/lib = contains libtcl8.4.so<br> and<br> setenv LD_LIBRARY_PATH /a/b/c/lib&nbsp;&nbsp; where: /a/b/c/lib contains libtclblend.so<br> <br> However, I'm not sure how to set these environment variables within an = Eclipse plug-in.<br> <br> Greg<br> <br> Mo DeJong wrote:<br> <br> <o:p></o:p></span></font></p> <pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt'>On Mon, 22 Aug 2005 12:49:30 = -0400<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Gregory Pierce <a href=3D<a class="moz-txt-link-rfc2396E" href="mailto:gp...@ls...">"mailto:gp...@ls..."</a>>&lt;gp...@ls...&gt;</a> = wrote:<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>&nbsp; <o:p></o:p></span></font></pre> <blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt' = type=3Dcite><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Hi,<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Does anyone know how I could create an = Eclipse plug-in for TclBlend?<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>I would want this plug-in to contain any = required native shared <o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>libraries so = that<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>I could send this plug-in to anyone and they = could use it without having <o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>to = build<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>and install Tcl on their system = first.<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; = <o:p></o:p></span></font></pre></blockquote> <pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Really hard to do. You could build Tcl and = Tcl Blend and zip up the<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>install tree but the trouble is that Tcl = Blend depends on runtime<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>env vars to find the JDK that it is linked = to. At runtime, it needs to<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>find jvm.dll and that means the PATH has to = be searched. If you<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>knew the JVM location or the PATH that jvm = dlls were found on,<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>then you might be able to do it. The trick = will be getting all the<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>env vars setup correctly when the JVM process = starts. The process<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>under Unix is the same except that you set = LD_LIBRARY_PATH instead<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>of PATH (for = Win32).<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>You would have a much easier time setting up = a Jacl plugin since<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>all that is needed is to add tcljava.jar and = jacl.jar to the CLASSPATH.<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>cheers<o:p></o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Mo = DeJong<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>----------------------------------------------= ---------<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>SF.Net email is Sponsored by the Better = Software Conference &amp; EXPO<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>September 19-22, 2005 * San Francisco, CA * = Development Lifecycle Practices<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Agile &amp; Plan-Driven Development * = Managing Projects &amp; Teams * Testing &amp; = QA<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>Security * Process Improvement &amp; = Measurement * <a href=3D<a class="moz-txt-link-rfc2396E" href="http://www.sqe.com/bsce5sf">"http://www.sqe.com/bsce5sf"</a>><a class="moz-txt-link-freetext" href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</a></a><o:p></= o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>______________________________________________= _<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>tcljava-user mailing = list<o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><a href=3D<a class="moz-txt-link-rfc2396E" href="mailto:tcl...@li...">"mailto:tcl...@li..."</a>><a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...u=">tcl...@li...u=</a> rceforge.net</a><o:p></o:p></span></font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><a href=3D<a class="moz-txt-link-rfc2396E" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">"https://lists.sourceforge.net/lists/listinfo/tcljava-user"</a>><a class="moz-txt-link-freetext" href="https:=">https:=</a> //lists.sourceforge.net/lists/listinfo/tcljava-user</a><o:p></o:p></span>= </font></pre><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></pre><pre><fon= t size=3D2 color=3Dblack face=3D"Courier New"><span = style=3D'font-size:10.0pt'>&nbsp; <o:p></o:p></span></font></pre></div> </body> </html> ------=_NextPart_000_0017_01C5A762.832DAF10-- --__--__-- _______________________________________________ tcljava-user mailing list <a class="moz-txt-link-abbreviated" href="mailto:tcl...@li...">tcl...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tcljava-user">https://lists.sourceforge.net/lists/listinfo/tcljava-user</a> End of tcljava-user Digest </pre> </blockquote> See my post on comp.lang.tcl re running JACL under RAD6/Eclipse.<br> <br> <a class="moz-txt-link-freetext" href="http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/3d26cccab289a00e/c59a217ca0bdd708?lnk=st&q=group:*tcl*+author:Patrick+author:Finnegan&rnum=2&hl=en#c59a217ca0bdd708">http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/3d26cccab289a00e/c59a217ca0bdd708?lnk=st&q=group:*tcl*+author:Patrick+author:Finnegan&rnum=2&hl=en#c59a217ca0bdd708</a><br> <br> In my opinion developing an Eclipse plugin for TclBlend is rather pointless as TclBlend is architected to connect to a JVM rather than run inside a JVM. It's designed to expose the Java system libraries for use in a dynamic language environment. Mo may correct me but AFAIK you cannot write native Java under TclBlend so you can't debug under Eclipse. <br> <br> I use TclBlend to implement system monitoring scripts for MQ Series and DB2 using the JDK and IBM supplied Java API libraries. Since TclBlend is certified to work with only a certain release of JAVA we compile TclBlend on Windows against the appropriate JDK and bundle that JDK with the distro so TclBlend always knows the location of the JDK. The Sun JDK licence allows JDK re-distribution with applications.<br> <br> The directory structure looks like:<br> <br> D:\tclBlend<br> D:\tclBlend\JDK142<br> D:\tclBlend\lib<br> D:\tclBlend\bin<br> <br> We drop any required tcl packages in the lib directory and ship these as well. We compile TclBlend on Windows XP and deploy to Windows 2003 server with no issues. On Win2k TclBlend is called from a bat file "jtclsh.bat" that sets up the env vars. I created a tcl script "tclblend.tcl" to set the required env vars then starpacked it using the "set base $starkit::topdir" to locate the installation directory and from there the relative location of the JDK. Tclblend.exe calls tclsh.exe which locates the JDK in the same sub-directory of the installation directory regardless of where TclBlend is installed. <br> <br> Eclipse may be useful if someone writes a Tcl editor/debug plugin that can switch from Tcl to the java editor/debugger when TclBlend calls a java class or method. Otherwise stick with SourceNav.<br> <br> </body> </html> |
From: Gregory P. <gp...@ls...> - 2005-08-24 01:37:10
|
Hi Patrick, I probably haven't been clear in what my application is doing. What I am writing is an Eclipse (Rich Client Platform) RCP application. This application will be writing in Eclipse Java and it will have a Tcl command shell. This command shell will be written using the Eclipse SWT StyleText widget. This command shell will call TclBlend's Java->Tcl classes. For example: Interp interp = new Interp(); interp.eval("puts hello"); ... The reason I don't want to use Jacl to provide a Tcl interface to my Java application is that I need to load Itcl because I have existing Tcl code that needs to run in this command shell which depends on Itcl. So far, I've been able to build a tcl.lang Eclipse plug-in, however, I'm working on a way for it to find the init.tcl file which I plan to distribute with my RCP application. BTW, I should note that I built TclBlend by statically linking in Tcl 8.4.11 using the .a file. This eliminates the need for my RCP application to locate and load the libtcl8.4.so file. Usually, there's always a way to do something. I'm well on my way to finding it. I was just hoping that someone on this user group might have some information that would help. Thanks, Greg Pierce Patrick Finnegan wrote: > See my post on comp.lang.tcl re running JACL under RAD6/Eclipse. > > http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/3d26cccab289a00e/c59a217ca0bdd708?lnk=st&q=group:*tcl*+author:Patrick+author:Finnegan&rnum=2&hl=en#c59a217ca0bdd708 > > In my opinion developing an Eclipse plugin for TclBlend is rather > pointless as TclBlend is architected to connect to a JVM rather than > run inside a JVM. It's designed to expose the Java system libraries > for use in a dynamic language environment. Mo may correct me but > AFAIK you cannot write native Java under TclBlend so you can't debug > under Eclipse. > > I use TclBlend to implement system monitoring scripts for MQ Series > and DB2 using the JDK and IBM supplied Java API libraries. Since > TclBlend is certified to work with only a certain release of JAVA we > compile TclBlend on Windows against the appropriate JDK and bundle > that JDK with the distro so TclBlend always knows the location of the > JDK. The Sun JDK licence allows JDK re-distribution with applications. > > The directory structure looks like: > > D:\tclBlend > D:\tclBlend\JDK142 > D:\tclBlend\lib > D:\tclBlend\bin > > We drop any required tcl packages in the lib directory and ship these > as well. We compile TclBlend on Windows XP and deploy to Windows 2003 > server with no issues. On Win2k TclBlend is called from a bat file > "jtclsh.bat" that sets up the env vars. I created a tcl script > "tclblend.tcl" to set the required env vars then starpacked it using > the "set base $starkit::topdir" to locate the installation directory > and from there the relative location of the JDK. Tclblend.exe calls > tclsh.exe which locates the JDK in the same sub-directory of the > installation directory regardless of where TclBlend is installed. > > Eclipse may be useful if someone writes a Tcl editor/debug plugin that > can switch from Tcl to the java editor/debugger when TclBlend calls a > java class or method. Otherwise stick with SourceNav. > |
From: <PFi...@hb...> - 2005-08-24 02:37:02
|
A bloke from CISCO (bsc...@ci...) posted a message on comp.lang.tcl on 01/05/2005 soliciting interest in an Eclipse Tcl plug-in. See link. May be of some use. Good luck. http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/62674bdc4389aaeb/016b0b0d1a7da792?lnk=st&q=group:*tcl*+author:patrick+author:finnegan&rnum=1&hl=en#016b0b0d1a7da792 Regards. PATRICK FINNEGAN. IBM WebSphere Consultant. HBF Web Master LDAP Administrator. PH: +61 (0)8 9265 6569 FX: +61 (0)8 9265 6380 MB: +61 (0)402 232619 Gregory Pierce <gp...@ls...> Sent by: tcl...@li... 24/08/2005 09:37 AM Please respond to tcl...@li... To tcl...@li... cc Subject Re: [tcljava-user] Creating an Eclipse plug-in for TclBlend Hi Patrick, I probably haven't been clear in what my application is doing. What I am writing is an Eclipse (Rich Client Platform) RCP application. This application will be writing in Eclipse Java and it will have a Tcl command shell. This command shell will be written using the Eclipse SWT StyleText widget. This command shell will call TclBlend's Java->Tcl classes. For example: Interp interp = new Interp(); interp.eval("puts hello"); ... The reason I don't want to use Jacl to provide a Tcl interface to my Java application is that I need to load Itcl because I have existing Tcl code that needs to run in this command shell which depends on Itcl. So far, I've been able to build a tcl.lang Eclipse plug-in, however, I'm working on a way for it to find the init.tcl file which I plan to distribute with my RCP application. BTW, I should note that I built TclBlend by statically linking in Tcl 8.4.11 using the .a file. This eliminates the need for my RCP application to locate and load the libtcl8.4.so file. Usually, there's always a way to do something. I'm well on my way to finding it. I was just hoping that someone on this user group might have some information that would help. Thanks, Greg Pierce Patrick Finnegan wrote: See my post on comp.lang.tcl re running JACL under RAD6/Eclipse. http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/3d26cccab289a00e/c59a217ca0bdd708?lnk=st&q=group:*tcl*+author:Patrick+author:Finnegan&rnum=2&hl=en#c59a217ca0bdd708 In my opinion developing an Eclipse plugin for TclBlend is rather pointless as TclBlend is architected to connect to a JVM rather than run inside a JVM. It's designed to expose the Java system libraries for use in a dynamic language environment. Mo may correct me but AFAIK you cannot write native Java under TclBlend so you can't debug under Eclipse. I use TclBlend to implement system monitoring scripts for MQ Series and DB2 using the JDK and IBM supplied Java API libraries. Since TclBlend is certified to work with only a certain release of JAVA we compile TclBlend on Windows against the appropriate JDK and bundle that JDK with the distro so TclBlend always knows the location of the JDK. The Sun JDK licence allows JDK re-distribution with applications. The directory structure looks like: D:\tclBlend D:\tclBlend\JDK142 D:\tclBlend\lib D:\tclBlend\bin We drop any required tcl packages in the lib directory and ship these as well. We compile TclBlend on Windows XP and deploy to Windows 2003 server with no issues. On Win2k TclBlend is called from a bat file "jtclsh.bat" that sets up the env vars. I created a tcl script "tclblend.tcl" to set the required env vars then starpacked it using the "set base $starkit::topdir" to locate the installation directory and from there the relative location of the JDK. Tclblend.exe calls tclsh.exe which locates the JDK in the same sub-directory of the installation directory regardless of where TclBlend is installed. Eclipse may be useful if someone writes a Tcl editor/debug plugin that can switch from Tcl to the java editor/debugger when TclBlend calls a java class or method. Otherwise stick with SourceNav. =================================================== HBF Health Funds Inc. a registered organisation under the National Health Act HBF Insurance Pty Ltd ACN 009 268 277 This email is a confidential communication intended only for the named Addressee(s). If you are not that person any disclosure, copying, distribution or use of this email or the information in it is prohibited. Please notify us immediately by telephone, (+61) 08 9265 6111 or return email and delete this email. The views in this email may be personal to the author and not those of HBF. |
From: Mo D. <md...@un...> - 2005-08-22 18:58:35
|
On Mon, 22 Aug 2005 12:49:30 -0400 Gregory Pierce <gp...@ls...> wrote: > Hi, > > Does anyone know how I could create an Eclipse plug-in for TclBlend? > I would want this plug-in to contain any required native shared > libraries so that > I could send this plug-in to anyone and they could use it without having > to build > and install Tcl on their system first. Really hard to do. You could build Tcl and Tcl Blend and zip up the install tree but the trouble is that Tcl Blend depends on runtime env vars to find the JDK that it is linked to. At runtime, it needs to find jvm.dll and that means the PATH has to be searched. If you knew the JVM location or the PATH that jvm dlls were found on, then you might be able to do it. The trick will be getting all the env vars setup correctly when the JVM process starts. The process under Unix is the same except that you set LD_LIBRARY_PATH instead of PATH (for Win32). You would have a much easier time setting up a Jacl plugin since all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. cheers Mo DeJong |
From: Gregory P. <gp...@ls...> - 2005-08-22 19:28:42
|
Hi Mo, Thanks for the reply. I need to use TclBlend because I have pre-existing Tcl code that uses Itcl and some other Tcl packages. I'm also guessing that TclBlend would be faster since it uses JNI. In order to run Eclipse the user needs to have JRE installed on their system. Is this enough information to get TclBlend to work? Currently, I'm able to set to env variables setenv TCL_LIBRARY /a/b/c/lib/tcl8.4 where: /a/b/c/lib contains libtcl8.4.so and setenv LD_LIBRARY_PATH /a/b/c/lib where: /a/b/c/lib contains libtclblend.so However, I'm not sure how to set these environment variables within an Eclipse plug-in. Greg Mo DeJong wrote: >On Mon, 22 Aug 2005 12:49:30 -0400 >Gregory Pierce <gp...@ls...> wrote: > > > >>Hi, >> >>Does anyone know how I could create an Eclipse plug-in for TclBlend? >>I would want this plug-in to contain any required native shared >>libraries so that >>I could send this plug-in to anyone and they could use it without having >>to build >>and install Tcl on their system first. >> >> > >Really hard to do. You could build Tcl and Tcl Blend and zip up the >install tree but the trouble is that Tcl Blend depends on runtime >env vars to find the JDK that it is linked to. At runtime, it needs to >find jvm.dll and that means the PATH has to be searched. If you >knew the JVM location or the PATH that jvm dlls were found on, >then you might be able to do it. The trick will be getting all the >env vars setup correctly when the JVM process starts. The process >under Unix is the same except that you set LD_LIBRARY_PATH instead >of PATH (for Win32). > >You would have a much easier time setting up a Jacl plugin since >all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. > >cheers >Mo DeJong > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >tcljava-user mailing list >tcl...@li... >https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > > |
From: Luca <luc...@al...> - 2005-08-22 19:43:36
|
Unsubscribe =20 _____ =20 Da: tcl...@li... [mailto:tcl...@li...] Per conto di Gregory Pierce Inviato: luned=EC 22 agosto 2005 21.29 A: tcl...@li... Oggetto: Re: [tcljava-user] Creating an Eclipse plug-in for TclBlend =20 Hi Mo, Thanks for the reply. I need to use TclBlend because I have pre-existing = Tcl code that uses Itcl and some other Tcl packages. I'm also guessing that TclBlend would be faster since it uses JNI. In order to run Eclipse the user needs to have JRE installed on their system. Is this enough information to get TclBlend to work? Currently, I'm able to set = to env variables setenv TCL_LIBRARY /a/b/c/lib/tcl8.4 where: /a/b/c/lib contains libtcl8.4.so and setenv LD_LIBRARY_PATH /a/b/c/lib where: /a/b/c/lib contains libtclblend.so However, I'm not sure how to set these environment variables within an Eclipse plug-in. Greg Mo DeJong wrote: On Mon, 22 Aug 2005 12:49:30 -0400 Gregory Pierce <mailto:gp...@ls...> <gp...@ls...> wrote: =20 =20 Hi, =20 Does anyone know how I could create an Eclipse plug-in for TclBlend? I would want this plug-in to contain any required native shared=20 libraries so that I could send this plug-in to anyone and they could use it without having = to build and install Tcl on their system first. =20 =20 Really hard to do. You could build Tcl and Tcl Blend and zip up the install tree but the trouble is that Tcl Blend depends on runtime env vars to find the JDK that it is linked to. At runtime, it needs to find jvm.dll and that means the PATH has to be searched. If you knew the JVM location or the PATH that jvm dlls were found on, then you might be able to do it. The trick will be getting all the env vars setup correctly when the JVM process starts. The process under Unix is the same except that you set LD_LIBRARY_PATH instead of PATH (for Win32). =20 You would have a much easier time setting up a Jacl plugin since all that is needed is to add tcljava.jar and jacl.jar to the CLASSPATH. =20 cheers Mo DeJong =20 =20 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user =20 =20 =20 |