Re: [tcljava-user] Creating an Eclipse plug-in for TclBlend
Brought to you by:
mdejong
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 > > > > |