tcljava-user Mailing List for Tcl/Java (Page 11)
Brought to you by:
mdejong
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(23) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(12) |
Feb
(10) |
Mar
(16) |
Apr
(10) |
May
(40) |
Jun
(13) |
Jul
(18) |
Aug
(4) |
Sep
(6) |
Oct
(3) |
Nov
|
Dec
(3) |
2002 |
Jan
(15) |
Feb
(19) |
Mar
(1) |
Apr
(11) |
May
(12) |
Jun
(10) |
Jul
(2) |
Aug
(22) |
Sep
|
Oct
(3) |
Nov
(9) |
Dec
(20) |
2003 |
Jan
(32) |
Feb
(5) |
Mar
(26) |
Apr
(30) |
May
(10) |
Jun
(8) |
Jul
(17) |
Aug
(7) |
Sep
(24) |
Oct
(7) |
Nov
(6) |
Dec
|
2004 |
Jan
(5) |
Feb
|
Mar
|
Apr
(7) |
May
(8) |
Jun
(12) |
Jul
(3) |
Aug
(11) |
Sep
(8) |
Oct
(4) |
Nov
(2) |
Dec
(6) |
2005 |
Jan
(8) |
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(19) |
Jul
(8) |
Aug
(22) |
Sep
(12) |
Oct
(35) |
Nov
(12) |
Dec
(4) |
2006 |
Jan
(20) |
Feb
(14) |
Mar
(23) |
Apr
(10) |
May
(11) |
Jun
(1) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(17) |
Dec
(10) |
2007 |
Jan
(41) |
Feb
(6) |
Mar
(23) |
Apr
(15) |
May
(34) |
Jun
(5) |
Jul
(18) |
Aug
(13) |
Sep
(8) |
Oct
(9) |
Nov
(7) |
Dec
(2) |
2008 |
Jan
|
Feb
(1) |
Mar
(18) |
Apr
(1) |
May
(1) |
Jun
(10) |
Jul
(3) |
Aug
|
Sep
(10) |
Oct
(3) |
Nov
(13) |
Dec
(3) |
2009 |
Jan
(4) |
Feb
(10) |
Mar
(1) |
Apr
(11) |
May
(3) |
Jun
(7) |
Jul
(4) |
Aug
(9) |
Sep
(16) |
Oct
(3) |
Nov
(5) |
Dec
(2) |
2010 |
Jan
(3) |
Feb
|
Mar
|
Apr
(7) |
May
(1) |
Jun
|
Jul
|
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2011 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
(17) |
May
(4) |
Jun
(17) |
Jul
(5) |
Aug
(7) |
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(12) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
(2) |
Oct
(6) |
Nov
|
Dec
(2) |
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
(8) |
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
(3) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
(1) |
Jun
(3) |
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: Dan D. <dda...@ya...> - 2008-09-24 15:01:49
|
Hi, I am wondering why I need to "preserve" a TclList that I don't return to TCL, nor need/use after the function returns. I am trying to return just one sub-list from a list of sub-lists. If I have just a list of normal TclObjects I can return one item without a problem. What is wrong with this: public void cmdProc(Interp interp, TclObject argv[]) throws TclException { TclObject list = TclList.newInstance(); //Create the first sublist TclObject list1 = TclList.newInstance(); TclList.append(interp, list1, TclString.newInstance("1.1")); TclList.append(interp, list1, TclString.newInstance("1.2")); //Create the second sublist TclObject list2 = TclList.newInstance(); TclList.append(interp, list2, TclString.newInstance("2.1")); TclList.append(interp, list2, TclString.newInstance("2.2")); //Add to main list TclList.append(interp, list, list1); TclList.append(interp, list1, list2); //list.preserve(); //return just the second sublist list interp.setResult(TclList.index(interp, list, 0)); } When I run it (without the preserve()), I get this: % ls_test alloc: invalid block: 009B3DF0: f8 0 0 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. D:\ When I run a similar situation in my production code I get the error from JRE side, SIGSEGV on Linux and ACCESS_VIOLATION on Windows: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x4008eb78, pid=4098, tid=1074768448 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) # Problematic frame: # C [libtcl8.4.so+0x77b78] # # An error report file with more information is saved as hs_err_pid4098.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Aborted (core dumped) Thanks, Dan |
From: Tom P. <tpo...@ny...> - 2008-09-24 14:09:40
|
Aejaks 1.1 is now available. http://aejaks.sf.net This is primarily a bug-fix release. The following issues have been fixed: * Fixed Janino so that empty directories reported by Java's "java.ext.dirs" property don't cause a NPE in Janino. This fix allows Hyde and MrPersister to function in Java 1.6, which reports non-existent directories as the ext paths. * Fixed 'update' and 'updatePrepared' methods in MrPersister objects PersistenceManager and JdbcDao. * Remove old hydecache.tcl and hyde compile directories on startup. * Force run.sh to output Jetty stdout to the current tty. --README---------------------------------------------------------------------- AEJAKS: http://aejaks.sf.net ABOUT: Aejaks combines the server-side Ajax windowing system Echo2 with the powerful simplicity of the Tcl langauge. The result is a rich development environment in which to develop Ajax-based web applications, often with much less code to write. Building a Rich Internet Application (RIA) usually means having to write your application in a variety of languages and markup: HTML, CSS, and Javascript for the browser, plus some backend language (PHP, Java, Tcl, etc.) With Aejaks, you only need a single language: Tcl. Aejaks applications resemble desktop Tcl/Tk applications. Aejaks uses a Tk-inspired object interface to create and interact with widgets. Classic "Hello world" in Aejaks: Button .hello -text "Hello world" -command {. exitApp /index.html} Pack .hello The first line creates a Button widget named '.hello' and defines a command to be run when the button is pressed (exit the application and tell the browser to load the index.html page.) The second line makes the Button widget visibile in the browser window. That's all you need! AUTHOR: Aejaks was conceived and written by Tom Poindexter. Please subscribe and use the mailing list for Aejaks related discussion. Subscription information at: http://lists.sourceforge.net/lists/listinfo/aejaks-general If you really, absolutely need to get in touch with me privately, email: tpo...@ny... ACKNOWLEDGEMENTS: Aejaks stands on the shoulders of giants, and would not be possible without the contributions of a host of very talented programmers and artists: Echo2: Tod Liebeck, NextApp Tcl/Jacl John Ousterhout, Ioi Lam, Brian Smith, Mo DeJong IncrTcl: Michael J. McLennan, Mo DeJong Jetty: Greg Wilkins, Mort Bay Consulting Clcms: Jelte Jansen EchopointNG: Brad Bakerman Nuvola icons: David Vignoni MrPersister Jacob Jenkov H2 Database Thomas Mueller DOWNLOAD: http://sourceforge.net/project/showfiles.php?group_id=184611 or http://sourceforge.net/projects/aejaks Three downloads are available (where 'x.y' is the current version): aejaks-x.y-exe.tar.gz aejaks-x.y-exe.zip This package contains everything required to run, develop and deploy Aejaks applications. Included are the aejaks.war file, Jetty web server, sample scripts, and documentation. Java 1.4 or higher is required to run the Aejaks and the Jetty web server. http://java.sun.com aejaks-x.y-src.tar.gz aejaks-x.y-src.zip Developers who wish to contribute to Aejaks development should download this file and the above '-exe' file, and unpack both into the same directory. This package contains source for Java and Tcl files, documentation source, build scripts, library files, icon and image source, Eclipse project and classpath files. Java JDK 1.4 or higher is required to develop Aejaks. http://java.sun.com Ant or Eclipse is require to run the Java source build.xml file. Ant and Eclipse can be downloaded from http://ant.apache.org http://eclipse.org The Jetty web server is not included with the source distribution. If you would like to run with the Jetty web server, download and unpack the executable distribution (e.g., aejaks-x.y-exe.zip) or download the Jetty web server at: http://jetty.mortbay.com You may also run with Apache Tomcat, or other Java Servlet web servers. Clcms and Python are required to regenerate the local website & documentation. Clcms and Python can be downloaded from: http://www.jelte.nlnetlabs.nl/Projects/clcms/index.html http://python.org AejaksDemo.war This war is the webserver deployment file containing the Aejaks runtime and all required libraries, along with the 'widget_tour' demo script. Simply deploy this file into your existing Java Servlet engine (e.g., Jetty, Tomcat, Resin, Websphere, Weblogic, Winstone, etc. Java 1.4 or higher is also requried.) Once deployed (and depending on your servlet engine), you should be able to invoke the Aejaks 'widget_tour' demo by opening a browser to http://your-web-server-host/AejaksDemo AejaksDemo.war is a full run-time environment for Aejaks. Update the internal WEB-INF/web.xml file or provide the runtime parameters as outlined in the documentation: http://aejaks.sourceforge.net/Documentation/Running/index.html http://aejaks.sourceforge.net/Documentation/Configuration/index.html REQUIREMENTS: Aejaks requires a Java JRE 1.4 or higher installation. No other external software is required, Aejaks is ready to run. Aejaks includes the Jetty webserver, configured to start on port 8080. DOCUMENTATION: See: ./website/out/index.html This is a local copy of the website, including all documentation to related software. All documentation is also available at: http://aejaks.sf.net QUICK START: You will need Java JDK or JRE 1.4 or higher installed. un-tar or un-zip the '-exe' distribution file: tar zxf aejaks-x.y-exe.tar.gz unzip aejaks-x.y-exe.zip winzip ...etc... Start the Jetty webserver: unix/linux: sh run.sh windows, execute in a Command Prompt window: run.bat Start your web browser and load the index.html page: unix/linux: firefox http://localhost:8080 windows: start http://localhost:8080 Now start exploring the demos! To stop the web server: unix/linux: sh stop.sh windows: ^C (in the Command Prompt window where you started jetty) and ^C (in the Command Prompt window running the H2 database) COPYRIGHT & LICENSE: Aejaks Copyright 2006-2008, Tom Poindexter Aejaks is licensed under the Mozilla Public License 1.1, or the GNU LGPL 2.1. Aejaks includes the following software, please refer to the copyright and license statements for each package in the ./licenses/ directory: Echo2 EchopointNG Jacl, IncrTcl, TJC Jetty JFreeChart Nuvola icons Mr Persister H2 Database TclTutor -- Tom Poindexter tpo...@ny... |
From: Tom P. <tpo...@ny...> - 2008-09-15 02:18:10
|
Aejaks is now 1.0 !! http://aejaks.sf.net This release adds many new features and stability enhancements. New in this release: - MrPersister database access library. - H2 Database engine included for quick-start database application development. - Apache Log4J logging system. - RichTextArea widget. - Standard library dialogs for messages, input, color selection, data selection, file upload. - TclTutor, Aejaks Rolodex, WarMachine sample applications. - Hyde package for easy Tcl-to-Java integration. Notable fixes: - Eliminate Jacl interp lock, now uses notifier for all interpreter access. - Allow pasting into TextComponents without requiring additional keystrokes. - Standard bgerror dialog. - Jacl patches applied for open resource:/, notifier liveliness, reflected object re-creation. - Echo2 libraries updated from latest code. Several real-world applications are on display at the website, see the 'Screen Shots' and 'App Gallery' pages. Thanks to Dennis Lima and Matt Avery for the Log4J patches. --README---------------------------------------------------------------------- AEJAKS: http://aejaks.sf.net ABOUT: Aejaks combines the server-side Ajax windowing system Echo2 with the powerful simplicity of the Tcl langauge. The result is a rich development environment in which to develop Ajax-based web applications, often with much less code to write. Building a Rich Internet Application (RIA) usually means having to write your application in a variety of languages and markup: HTML, CSS, and Javascript for the browser, plus some backend language (PHP, Java, Tcl, etc.) With Aejaks, you only need a single language: Tcl. Aejaks applications resemble desktop Tcl/Tk applications. Aejaks uses a Tk-inspired object interface to create and interact with widgets. Classic "Hello world" in Aejaks: Button .hello -text "Hello world" -command {. exitApp /index.html} Pack .hello The first line creates a Button widget named '.hello' and defines a command to be run when the button is pressed (exit the application and tell the browser to load the index.html page.) The second line makes the Button widget visibile in the browser window. That's all you need! AUTHOR: Aejaks was conceived and written by Tom Poindexter. Please subscribe and use the mailing list for Aejaks related discussion. Subscription information at: http://lists.sourceforge.net/lists/listinfo/aejaks-general If you really, absolutely need to get in touch with me privately, email: tpo...@ny... ACKNOWLEDGEMENTS: Aejaks stands on the shoulders of giants, and would not be possible without the contributions of a host of very talented programmers and artists: Echo2: Tod Liebeck, NextApp Tcl/Jacl John Ousterhout, Ioi Lam, Brian Smith, Mo DeJong IncrTcl: Michael J. McLennan, Mo DeJong Jetty: Greg Wilkins, Mort Bay Consulting Clcms: Jelte Jansen EchopointNG: Brad Bakerman Nuvola icons: David Vignoni MrPersister Jacob Jenkov H2 Database Thomas Mueller DOWNLOAD: http://sourceforge.net/project/showfiles.php?group_id=184611 or http://sourceforge.net/projects/aejaks Three downloads are available (where 'x.y' is the current version): aejaks-x.y-exe.tar.gz aejaks-x.y-exe.zip This package contains everything required to run, develop and deploy Aejaks applications. Included are the aejaks.war file, Jetty web server, sample scripts, and documentation. Java 1.4 or higher is required to run the Aejaks and the Jetty web server. http://java.sun.com aejaks-x.y-src.tar.gz aejaks-x.y-src.zip Developers who wish to contribute to Aejaks development should download this file and the above '-exe' file, and unpack both into the same directory. This package contains source for Java and Tcl files, documentation source, build scripts, library files, icon and image source, Eclipse project and classpath files. Java JDK 1.4 or higher is required to develop Aejaks. http://java.sun.com Ant or Eclipse is require to run the Java source build.xml file. Ant and Eclipse can be downloaded from http://ant.apache.org http://eclipse.org The Jetty web server is not included with the source distribution. If you would like to run with the Jetty web server, download and unpack the executable distribution (e.g., aejaks-x.y-exe.zip) or download the Jetty web server at: http://jetty.mortbay.com You may also run with Apache Tomcat, or other Java Servlet web servers. Clcms and Python are required to regenerate the local website & documentation. Clcms and Python can be downloaded from: http://www.jelte.nlnetlabs.nl/Projects/clcms/index.html http://python.org AejaksDemo.war This war is the webserver deployment file containing the Aejaks runtime and all required libraries, along with the 'widget_tour' demo script. Simply deploy this file into your existing Java Servlet engine (e.g., Jetty, Tomcat, Resin, Websphere, Weblogic, Winstone, etc. Java 1.4 or higher is also requried.) Once deployed (and depending on your servlet engine), you should be able to invoke the Aejaks 'widget_tour' demo by opening a browser to http://your-web-server-host/AejaksDemo AejaksDemo.war is a full run-time environment for Aejaks. Update the internal WEB-INF/web.xml file or provide the runtime parameters as outlined in the documentation: http://aejaks.sourceforge.net/Documentation/Running/index.html http://aejaks.sourceforge.net/Documentation/Configuration/index.html REQUIREMENTS: Aejaks requires a Java JRE 1.4 or higher installation. No other external software is required, Aejaks is ready to run. Aejaks includes the Jetty webserver, configured to start on port 8080. DOCUMENTATION: See: ./website/out/index.html This is a local copy of the website, including all documentation to related software. All documentation is also available at: http://aejaks.sf.net QUICK START: You will need Java JDK or JRE 1.4 or higher installed. un-tar or un-zip the '-exe' distribution file: tar zxf aejaks-x.y-exe.tar.gz unzip aejaks-x.y-exe.zip winzip ...etc... Start the Jetty webserver: unix/linux: sh run.sh windows, execute in a Command Prompt window: run.bat Start your web browser and load the index.html page: unix/linux: firefox http://localhost:8080 windows: start http://localhost:8080 Now start exploring the demos! To stop the web server: unix/linux: sh stop.sh windows: ^C (in the Command Prompt window where you started jetty) and ^C (in the Command Prompt window running the H2 database) COPYRIGHT & LICENSE: Aejaks Copyright 2006-2008, Tom Poindexter Aejaks is licensed under the Mozilla Public License 1.1, or the GNU LGPL 2.1. Aejaks includes the following software, please refer to the copyright and license statements for each package in the ./licenses/ directory: Echo2 EchopointNG Jacl, IncrTcl, TJC Jetty JFreeChart Nuvola icons Mr Persister H2 Database TclTutor -- Tom Poindexter tpo...@ny... |
From: Patrick F. <fin...@gm...> - 2008-07-07 08:37:01
|
Mallick............... What was the Jacl implementation; application? utility? Any reason for not writing the implementation in pure java? 2008/7/7 mallick choppa <mal...@ya...>: > Hi , > We have rewritten the tcl.lang.Shell to our need , so it works for us. The > in/out streams are by default STDIN and STDOUT which does not solve our > requirement , so we have written a simple client (reads/writes) in socket . > the stdin and stdout is replaced with socket input stream and output stream. > > hope this helps > Mallick > > > > ----- Original Message ---- > From: "tcl...@li..." < > tcl...@li...> > To: tcl...@li... > Sent: Sunday, June 15, 2008 12:39:32 AM > Subject: tcljava-user Digest, Vol 23, Issue 4 > > Send tcljava-user mailing list submissions to > tcl...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/tcljava-user > or, via email, send a message with subject or body 'help' to > tcl...@li... > > You can reach the person managing the list at > tcl...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of tcljava-user digest..." > > > Today's Topics: > > 1. Q. How does java interact with tcl? (Kim,Younghun) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 14 Jun 2008 11:52:01 +0900 > From: "Kim,Younghun" <mys...@ic...> > Subject: [tcljava-user] Q. How does java interact with tcl? > To: <tcl...@li...> > Message-ID: <000401c8cdc9$9eb4f8c0$dc1eea40$@ac.kr> > Content-Type: text/plain; charset="us-ascii" > > Hello dear , > > > > First at all, I'm not sure my question is proper or not to this topic. But, > I'm considering I should use Tcljava. Because I ask to here. > > > > I'm doing a project. In this project I'm making simple java program which > can interact with "tclsh". Java program is designed originally without > tclblend and jacl. In my idea, java can call the "tclsh" by using > 'ProcessBuilder' class. It then gets input/error/ouput-streams of tclsh. If > I handle these three-stream, I may be able to handle tclsh through > java-program.(sample source code is attached below) This is my idea but, it > doesn't work. I think I couldn't get these streams. Anyway while > processbuilder are handling tclsh, tclsh process is working on system. > > > > I guess tclsh, I guess this is a kind of shell, uses own shell, so java > cannot intercept IO streams of it. > > > > How do you think of this problem? > > > > Is there any solution? or > > If do I use the TclBlend, can I obtain way to solve this problem? > > If you have any experience or comment, please let me know. > > > > I'm working with: > > Tcl version is ActiveTcl 8.4. > > I'm using java sdk 6 > > And I tried test based on windows and linux both. > > > > Thank you. > > Best regards > > > > > > import java.io.BufferedReader; > > import java.io.BufferedWriter; > > import java.io.File; > > import java.io.IOException; > > import java.io.InputStreamReader; > > import java.io.OutputStreamWriter; > > > > public class TclExcuter { > > public Process oProcess; > > BufferedReader reader; > > BufferedWriter writer; > > > > public TclExcuter(String[] args) { > > } > > > > public TclExcuter(String args) { > > } > > > > public TclExcuter() { > > this.runTcl(); > > } > > > > private String runTcl() { > > String result = ""; > > String tmp; > > > > try { > > /* over the java version 1.5 */ > > ProcessBuilder pb =new > ProcessBuilder("cmd","/y","/c","tclsh"); > > pb = pb.directory(new File("C:\\")); > > pb = pb.redirectErrorStream(true); > > oProcess = pb.start(); > > > > reader = new BufferedReader(new > InputStreamReader(oProcess.getInputStream())); > > writer = new BufferedWriter(new > OutputStreamWriter(oProcess.getOutputStream())); > > } catch (IOException e) { > > e.printStackTrace(); > > } > > return result; > > } > > > > public BufferedReader getReader() { > > return reader; > > } > > > > public BufferedWriter getWriter() { > > return writer; > > } > > } > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > ------------------------------ > > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > > End of tcljava-user Digest, Vol 23, Issue 4 > ******************************************* > > > > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |
From: <prb...@ro...> - 2008-07-07 03:39:18
|
I will be out of the office starting 06/30/2008 and will not return until 07/14/2008. I will have limited access to email, and may think of you once or twice while lying on the beach ;) |
From: mallick c. <mal...@ya...> - 2008-07-07 03:36:50
|
Hi , We have rewritten the tcl.lang.Shell to our need , so it works for us. The in/out streams are by default STDIN and STDOUT which does not solve our requirement , so we have written a simple client (reads/writes) in socket . the stdin and stdout is replaced with socket input stream and output stream. hope this helps Mallick ----- Original Message ---- From: "tcl...@li..." <tcl...@li...> To: tcl...@li... Sent: Sunday, June 15, 2008 12:39:32 AM Subject: tcljava-user Digest, Vol 23, Issue 4 Send tcljava-user mailing list submissions to tcl...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/tcljava-user or, via email, send a message with subject or body 'help' to tcl...@li... You can reach the person managing the list at tcl...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of tcljava-user digest..." Today's Topics: 1. Q. How does java interact with tcl? (Kim,Younghun) ---------------------------------------------------------------------- Message: 1 Date: Sat, 14 Jun 2008 11:52:01 +0900 From: "Kim,Younghun" <mys...@ic...> Subject: [tcljava-user] Q. How does java interact with tcl? To: <tcl...@li...> Message-ID: <000401c8cdc9$9eb4f8c0$dc1eea40$@ac.kr> Content-Type: text/plain; charset="us-ascii" Hello dear , First at all, I'm not sure my question is proper or not to this topic. But, I'm considering I should use Tcljava. Because I ask to here. I'm doing a project. In this project I'm making simple java program which can interact with "tclsh". Java program is designed originally without tclblend and jacl. In my idea, java can call the "tclsh" by using 'ProcessBuilder' class. It then gets input/error/ouput-streams of tclsh. If I handle these three-stream, I may be able to handle tclsh through java-program.(sample source code is attached below) This is my idea but, it doesn't work. I think I couldn't get these streams. Anyway while processbuilder are handling tclsh, tclsh process is working on system. I guess tclsh, I guess this is a kind of shell, uses own shell, so java cannot intercept IO streams of it. How do you think of this problem? Is there any solution? or If do I use the TclBlend, can I obtain way to solve this problem? If you have any experience or comment, please let me know. I'm working with: Tcl version is ActiveTcl 8.4. I'm using java sdk 6 And I tried test based on windows and linux both. Thank you. Best regards import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class TclExcuter { public Process oProcess; BufferedReader reader; BufferedWriter writer; public TclExcuter(String[] args) { } public TclExcuter(String args) { } public TclExcuter() { this.runTcl(); } private String runTcl() { String result = ""; String tmp; try { /* over the java version 1.5 */ ProcessBuilder pb =new ProcessBuilder("cmd","/y","/c","tclsh"); pb = pb.directory(new File("C:\\")); pb = pb.redirectErrorStream(true); oProcess = pb.start(); reader = new BufferedReader(new InputStreamReader(oProcess.getInputStream())); writer = new BufferedWriter(new OutputStreamWriter(oProcess.getOutputStream())); } catch (IOException e) { e.printStackTrace(); } return result; } public BufferedReader getReader() { return reader; } public BufferedWriter getWriter() { return writer; } } -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ------------------------------ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user End of tcljava-user Digest, Vol 23, Issue 4 ******************************************* |
From: Patrick F. <fin...@gm...> - 2008-06-15 14:40:40
|
Have a read of this. Embedding a Tcl Interpreter in Java ==>> http://www.ensta.fr/~diam/tcl/online/Using_Tcl_in_Java-20010106.html 2008/6/14 Kim,Younghun <mys...@ic...>: > Hello dear , > > > > First at all, I'm not sure my question is proper or not to this topic. But, > I'm considering I should use Tcljava. Because I ask to here. > > > > I'm doing a project. In this project I'm making simple java program which > can interact with "tclsh". Java program is designed originally without > tclblend and jacl. In my idea, java can call the "tclsh" by using > 'ProcessBuilder' class. It then gets input/error/ouput-streams of tclsh. If > I handle these three-stream, I may be able to handle tclsh through > java-program.(sample source code is attached below) This is my idea but*, > it doesn't work.* I think I couldn't get these streams. Anyway while > processbuilder are handling tclsh, tclsh process is working on system. > > I guess tclsh, I guess this is a kind of shell, uses own shell, so java > cannot intercept IO streams of it. > > > > How do you think of this problem? > > > > Is there any solution? or > > If do I use the TclBlend, can I obtain way to solve this problem? > > If you have any experience or comment, please let me know. > > > > I'm working with: > > Tcl version is ActiveTcl 8.4. > > I'm using java sdk 6 > > And I tried test based on windows and linux both. > > > > Thank you. > > Best regards > > > > > > import java.io.BufferedReader; > > import java.io.BufferedWriter; > > import java.io.File; > > import java.io.IOException; > > import java.io.InputStreamReader; > > import java.io.OutputStreamWriter; > > > > public class TclExcuter { > > public Process oProcess; > > BufferedReader reader; > > BufferedWriter writer; > > > > public TclExcuter(String[] args) { > > } > > > > public TclExcuter(String args) { > > } > > > > public TclExcuter() { > > this.runTcl(); > > } > > > > private String runTcl() { > > String result = ""; > > String tmp; > > > > try { > > /* over the java version 1.5 */ > > ProcessBuilder pb =new > ProcessBuilder("cmd","/y","/c","tclsh"); > > pb = pb.directory(new > File("C:\\")); > > pb = pb.redirectErrorStream(true); > > oProcess = pb.start(); > > > > reader = new BufferedReader(new > InputStreamReader(oProcess.getInputStream())); > > writer = new BufferedWriter(new > OutputStreamWriter(oProcess.getOutputStream())); > > } catch (IOException e) { > > e.printStackTrace(); > > } > > return result; > > } > > > > public BufferedReader getReader() { > > return reader; > > } > > > > public BufferedWriter getWriter() { > > return writer; > > } > > } > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > |
From: Kim,Younghun <mys...@ic...> - 2008-06-14 02:52:04
|
Hello dear , First at all, I'm not sure my question is proper or not to this topic. But, I'm considering I should use Tcljava. Because I ask to here. I'm doing a project. In this project I'm making simple java program which can interact with "tclsh". Java program is designed originally without tclblend and jacl. In my idea, java can call the "tclsh" by using 'ProcessBuilder' class. It then gets input/error/ouput-streams of tclsh. If I handle these three-stream, I may be able to handle tclsh through java-program.(sample source code is attached below) This is my idea but, it doesn't work. I think I couldn't get these streams. Anyway while processbuilder are handling tclsh, tclsh process is working on system. I guess tclsh, I guess this is a kind of shell, uses own shell, so java cannot intercept IO streams of it. How do you think of this problem? Is there any solution? or If do I use the TclBlend, can I obtain way to solve this problem? If you have any experience or comment, please let me know. I'm working with: Tcl version is ActiveTcl 8.4. I'm using java sdk 6 And I tried test based on windows and linux both. Thank you. Best regards import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class TclExcuter { public Process oProcess; BufferedReader reader; BufferedWriter writer; public TclExcuter(String[] args) { } public TclExcuter(String args) { } public TclExcuter() { this.runTcl(); } private String runTcl() { String result = ""; String tmp; try { /* over the java version 1.5 */ ProcessBuilder pb =new ProcessBuilder("cmd","/y","/c","tclsh"); pb = pb.directory(new File("C:\\")); pb = pb.redirectErrorStream(true); oProcess = pb.start(); reader = new BufferedReader(new InputStreamReader(oProcess.getInputStream())); writer = new BufferedWriter(new OutputStreamWriter(oProcess.getOutputStream())); } catch (IOException e) { e.printStackTrace(); } return result; } public BufferedReader getReader() { return reader; } public BufferedWriter getWriter() { return writer; } } |
From: Patrick F. <fin...@gm...> - 2008-06-13 09:27:25
|
Is the regex implementation in Jacl the same as Tcl? In tcl. % set exp {sibJmsQueue\..+\.name\s+(.+)} sibJmsQueue\..+\.name\s+(.+) % set i "sibJmsQueue.ValidationQueue.name ValidationQueue" sibJmsQueue.ValidationQueue.name ValidationQueue % regexp $exp $i a b 1 In Jacl 1.4. wsadmin>set exp {sibJmsQueue\..+\.name\s+(.+)} sibJmsQueue\..+\.name\s+(.+) wsadmin>set i "sibJmsQueue.ValidationQueue.name ValidationQueue" sibJmsQueue.ValidationQueue.name ValidationQueue wsadmin>regexp $exp $i a b 0 |
From: BEASLEY, J. S <SBE...@sc...> - 2008-06-04 22:08:56
|
Hello, I am using a ByteArrayOutputStream object to read PDF data into, from a call to the iText library. Everything is working out with tcl/Java and the library except this.... I perform a toByteArray on my ByteArrayOutputStream object, and it Creates a newly allocated byte array. I do something like: set j_byteArray [$memory_stream toByteArray] ; # memory_stream is my ByteArrayOutputStream object This returns a good object handle from Blend. How do I get the Byte Array Data from the Java object to a locale tcl variable in my code? I can get it as a String like: set pdf_data [$memory_stream toString] but the binary data in the pdf gets clobbered on the encoding conversion (I assume). As of now, I have it working by Hex encoding the result of [$memory_stream toByteArray] in some Java code and calling and doing a [binary format] on the tcl side. I would like a more direct way and save some processing time if I could. Thanks |
From: Mo D. <mo...@mo...> - 2008-06-04 21:13:07
|
militho_sw1 wrote: > > we are using a jacl/swank combination, but are having problems with > the following: > > sendToTcs 0 "set o \[new_Overlay__Orientation\]" > > sendToTcs is a proc that takes 2 arguments. Now I want to send > "[new_Overlay__Orientation]" exactly.. I do not want a any command > evaluation. I tried two \ and that doesn't work either. I also tried: > > sendToTcs 0 "set o {[new_Overlay__Orientation]}" > I am not sure what the cause of this could be. The following two commands would pass the exact same string argument: sendToTcs 0 "set o \[new_Overlay__Orientation\]" sendToTcs 0 {set o [new_Overlay__Orientation]} cheers Mo DeJong |
From: Mo D. <mo...@mo...> - 2008-06-04 21:10:44
|
Rory McGrath wrote: > Iam trying to get TclBlend to open a simple java class. > The java code is as follows: > > package p; > public class c > { > > public c(String s) > { > contents = s; > } > public String toString() > { > return contents; > } > public String contents = "default value"; > > } > > and the tcl code is: > > set env(CLASSPATH) [file join H: TCL_TEST myJar add newJAR.jar] > puts $env(CLASSPATH) > file exists $env(CLASSPATH) > package require java > set x [java::new p.c] > > After i run the "set x [java::new p.c]" i get a Fatal Error: > > Fatal Error in Wish > JavaCmdProc : Interp.callCommand() raised an Exception Humm, I don't think this is a problem with the Java class you created. Most every problem people run into is related to the CLASSPATH, this is likely one too. Could you try setting the CLASSPATH with the platform separator char, in Windows this is a \ between directory elements. You can do that by putting a [file nativename $path] call around your file join call. hope that helps Mo DeJong |
From: Jared H. <ho...@mo...> - 2008-06-04 14:48:59
|
So I see the open bug about reporting error line numbers in jacl. How do people work around this right now? I also see the $errorInfo variable being set in jacl, which would be useful if the error line numbers could be trusted. Unfortunately, any backslash newline continuations earlier in the file cause the line number here to be reported incorrectly (because these are parsed out before the error line is calculated). It seems to me that instead of parsing out the backslash-newlines they should be treated as a different type of token that is ignored for most purposes except for computing line numbers. I'm not fully versed enough in jacl to do the code changes yet, but does anyone have any thoughts on this issue? Maybe I should send this to the tcljava-dev mailing list. -Jared |
From: Khim T. <kt...@dt...> - 2008-06-04 02:01:58
|
I will be out of the office starting 05/31/2008 and will not return until 06/09/2008. Please contact the SCM Hotline for all issues, x8750. Thank you! Warm Regards, Khim Theng ----------------------------------------- ________________________________________________________ DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. |
From: militho_sw1 <mil...@mo...> - 2008-06-03 22:01:27
|
Please disregard this. I upgraded to jacl 1.4.1 and the problem is solved. Regards, -allen- -----Original Message----- From: militho_sw1 Sent: Tue 6/3/2008 4:34 PM To: tcl...@li... Subject: problem with bracket translation "[ ]" we are using a jacl/swank combination, but are having problems with the following: sendToTcs 0 "set o \[new_Overlay__Orientation\]" sendToTcs is a proc that takes 2 arguments. Now I want to send "[new_Overlay__Orientation]" exactly.. I do not want a any command evaluation. I tried two \ and that doesn't work either. I also tried: sendToTcs 0 "set o {[new_Overlay__Orientation]}" and that doesn't work either. We are running Jacl 1.4 thanks |
From: militho_sw1 <mil...@mo...> - 2008-06-03 21:36:13
|
we are using a jacl/swank combination, but are having problems with the following: sendToTcs 0 "set o \[new_Overlay__Orientation\]" sendToTcs is a proc that takes 2 arguments. Now I want to send "[new_Overlay__Orientation]" exactly.. I do not want a any command evaluation. I tried two \ and that doesn't work either. I also tried: sendToTcs 0 "set o {[new_Overlay__Orientation]}" and that doesn't work either. We are running Jacl 1.4 thanks |
From: Rory M. <ro...@gm...> - 2008-05-26 16:07:59
|
Iam trying to get TclBlend to open a simple java class. The java code is as follows: package p; public class c { public c(String s) { contents = s; } public String toString() { return contents; } public String contents = "default value"; } and the tcl code is: set env(CLASSPATH) [file join H: TCL_TEST myJar add newJAR.jar] puts $env(CLASSPATH) file exists $env(CLASSPATH) package require java set x [java::new p.c] After i run the "set x [java::new p.c]" i get a Fatal Error: Fatal Error in Wish JavaCmdProc : Interp.callCommand() raised an Exception "set x [java::new p.c "Hello world"]" throws the same error Do you have any solution for this or any other way I can load this simple java class? -- Regards, Rory McGrath |
From: Mo D. <mo...@mo...> - 2008-04-05 00:39:18
|
This message is to announce the new 1.4.1 release of Jacl and Tcl Blend. These releases are the result of efforts by Mo DeJong and the Jacl and Tcl Blend user community. The 1.4.1 release of Jacl and Tcl Blend are available for downloading at the following URL: http://sourceforge.net/project/showfiles.php?group_id=13005 The 1.4.1 release is considered stable and is now ready for evaluation in production environments. This release is well tested and should be bug free. What's New in the 1.4.1 Release? ---------------------------------- Jacl 1.4.1 includes a new compiler named TJC (Tcl to Java Compiler). A Tcl proc compiled with TJC will execute from 10 to 30 times faster. TJC supports both a batch compile mode and a runtime compilation mode. Jacl's expression engine has also been significantly optimized. Itcl has been ported to Jacl, a user need only execute "package require Itcl" to load Itcl commands into a Jacl shell. Class loading has been completely overhauled for both Jacl and Tcl Blend. The class loader delagation model is now used for all class loading. Support for inner classes has also been improved in the java package commands. The java package now includes a new java::for command. This command provides a mapping to Java's enhanced for loop statement and provides a simplified way to loop over the elements of a Collection or array object. See the documentation for usage examples. A new binary release of Tcl Blend is now provided for Win32 systems. This binary release includes compiled versions of Tcl/Tk, Tcl Blend, and a full JDK 1.4. See the included documentation for more information about new features in this release. What is Jacl? ---------------- Jacl is a 100% Java implementation of Tcl 8. This allows Tcl to run in more environments and also brings the power of scripting to Java developers. Jacl implements almost all the features available in the C version of Tcl and is well tested. What is Tcl Blend? ------------------------ Tcl Blend is a Tcl Extension that allows a developer access to the Java VM from the Tcl interpreter. A developer can script Java code from Tcl or write new Tcl extensions in Java instead of C/C++. A developer can also load both Tcl and Tcl Blend into an existing Java JVM. Tcl Blend is known to work on Solaris, Windows 95/NT/XP, IRIX, and Linux. Other systems have not been tested but it should be easy to port Tcl Blend to any system that supports dynamic loading and the Java JNI interface. For additional information: --------------------------------- The primary website for Tcl/Java related information is: http://tcljava.sourceforge.net/ The README file included in the Jacl and Tcl Blend releases includes lots or additional information including how to sign up for the tcljava mailing lists. |
From: Tom J. <to...@rm...> - 2008-03-24 16:14:06
|
On Monday 24 March 2008 00:10, Mo DeJong wrote: > Tom Jackson wrote: > > Hi, > > > > Has anyone produced a set of replacement procs so that scripts written in > > Tcl 8.4 can run under Jacl? > > > > I wrote a quick replacement for lsearch to add in the -all and -inline > > options, but then I found that I needed [file normalize]. > > > > Otherwise, are there a list of workarounds for this situation? > > Compatibility needs to be implemented with changes to the Java code of > the Tcl commands in Jacl. Obviously it would be more efficient code, but it would force the changes on everyone, and you couldn't selectively upgrade. What I'm interested in is starting jaclsh and then source a compatibility file, then start my application. I've done this for lsearch. So new question: how is file path normalization handled in jacl? tom jackson |
From: Mo D. <mo...@mo...> - 2008-03-24 06:10:36
|
Tom Jackson wrote: > Hi, > > Has anyone produced a set of replacement procs so that scripts written in Tcl > 8.4 can run under Jacl? > > I wrote a quick replacement for lsearch to add in the -all and -inline > options, but then I found that I needed [file normalize]. > > Otherwise, are there a list of workarounds for this situation? > Compatibility needs to be implemented with changes to the Java code of the Tcl commands in Jacl. Mo |
From: Tom J. <to...@rm...> - 2008-03-24 00:11:28
|
Hi, Has anyone produced a set of replacement procs so that scripts written in Tcl 8.4 can run under Jacl? I wrote a quick replacement for lsearch to add in the -all and -inline options, but then I found that I needed [file normalize]. Otherwise, are there a list of workarounds for this situation? Thanks, tom jackson |
From: Khim T. <kt...@dt...> - 2008-03-20 20:02:04
|
I will be out of the office starting 03/19/2008 and will not return until 03/24/2008. Please contact the SCM Hotline for all issues, x8750. Thank you! Warm Regards, Khim Theng ----------------------------------------- ________________________________________________________ DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. |
From: Mo D. <mo...@mo...> - 2008-03-20 17:49:54
|
Chongkai Jiang wrote: > Hi there, > > I'm trying to incorporate snmp4j into tcl by tcl blend. I wrote a Java > class and used Tcl blend commands to access it in Tcl, but I got the > following failures, > > Assertion failed: tsdPtr->initialized, file > c:/TclBlendSrc/tcljava/src/native/javaCmd.c, line 359 > > This application has requested the Runtime to terminate it in an > unusual way. > Please contact the application's support team for more information. > > Anyone could tell me what could have gone wrong? Is it possibly > related to thread safety? snmp4j sends a request and waits for > response, but I'm not sure if it does that in another thread. It means that TclBlend was not initialized properly, but that should not happen. What exactly did you do? How did you start the application? Did you build from source, if so does running 'make test' work after a build? Can you run a simple Tcl Blend example on your system? Mo |
From: Mrinal K. <mr...@gm...> - 2008-03-20 16:29:18
|
Hi i had faced similar problems with this.TCL blend is using java JDK 1.2(check in this folder) you will have to use the same jdk and jre for writing your own codes Hope this helps. Regards, Mrinal On Thu, Mar 20, 2008 at 10:23 AM, Chongkai Jiang <cho...@gm...> wrote: > Hi there, > > I'm trying to incorporate snmp4j into tcl by tcl blend. I wrote a Java > class and used Tcl blend commands to access it in Tcl, but I got the > following failures, > > Assertion failed: tsdPtr->initialized, file > c:/TclBlendSrc/tcljava/src/native/javaCmd.c, line 359 > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information. > > Anyone could tell me what could have gone wrong? Is it possibly related to > thread safety? snmp4j sends a request and waits for response, but I'm not > sure if it does that in another thread. > > Thanks. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > > |
From: <prb...@ro...> - 2008-03-20 14:25:14
|
I will be out of the office starting 03/20/2008 and will not return until 03/24/2008. |