From: Robert W. B. <rb...@di...> - 2001-03-10 22:12:48
|
Hello Vitaly, On Sat, 10 Mar 2001, vitaly kupisk wrote: > > so I've got these packages, and I want to import > > classes from them. how do > > i manage this? > > Your CLASSPATH has to have your .jar included, i.e. > /whereverIkeepMyJavaClasses:/mystuff/myjavajars/TAgents.jar:whateverelse > (the directories (and jars) are separated by ":"). > If "jython" you type when you invoke jython is a shell > script or a batch file you can set your CLASSPATH as a > command line option. Then > type "from org.tagents.examples import > org.tagents.agents.*" at the prompt. > > Now my super newbie question, again (no responses last > time). > > How do I get jython on Linux to remember the history > of my commands and recall them with an "up" arrow key? > My bash and ksh shells do it, and python does it too. > Is there a history file I need to set up somewhere? This is a common question. I've added a faq entry (2.4) with the intent of helping people with this and realized I'm short on information. The jist is that readline provides this functionality. The original readline is in C so is not part of Java/Jython. There is experimental realine Java classes that will eventually add this functionality, but not yet. For now use a shell that can wrap the running process (Jython) and allow readline behavior. Here's the part I'm stuck on. I live in emacs mostly, so I've never really ventured beyond emacs' shell mode for this. I tried Yorick's shell with no luck even though I was told it works for this. I've heard Win2k shell may do this, but can't confirm this. Can other's help me out with a list a shells that provide serrogate readlines? Can anyone confirm Win2k? Yorick? Other shells that we could list in the faq to help others out? tnx, Robert |