Re: beanshell - how to override classes from jde.jar

Pawel <[email protected]>
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Thank You Martin for detailed explanation

Pawel

FCC: ~/mail_folders/sent_mail_company

Suraj Acharya writes:
 > Martin,
 > 
 > Thanks for pointing that out, I hadn't noticed the change.
 > 
 > Suraj
 > 
 > On 3/9/06, Martin Schwamberger <[email protected]> wrote:
 > >
 > > Hi Pawel, hi Suraj,
 > >
 > > this has changed with JDEE 2.3.5.
 > > It's now an additional entry in the classpath before jde.jar
 > > rather than a replacement for jde.jar.
 > >
 > > I noticed that the doc-string of jde-devel-debug is slightly out-of-date.
 > >
 > > To reflect the recent change, it could be something like this:
 > >
 > >    "If true, use the JDEE Java classes in the jde/java/classes
 > > directory instead of the respective classes found in jde.jar.
 > > This variable is intended for use in testing the JDEE's java classes."
 > >
 > > BTW, jde/java/bsh-commands is another place where you can put
 > > class-files which should be used instead of those found in jde.jar.
 > >
 > > Martin
 > >
 > > Pawel wrote:
 > > > This is what I meant.
 > > > I noticed that it does not replace jde.jar, but preceeds jde.jar path
 > > with classes path, so that's it!
 > > >
 > > > Thanks
 > > >
 > > >
 > > > Suraj Acharya writes:
 > > >  > Set jde-devel-debug to true, it'll replace jde.jar with
 > > jde/java/classes in
 > > >  > your bsh classpath. If you still need to jde.jar to the classpath,
 > > adding it
 > > >  > to jde-global-classpath should help.
 > > >  >
 > > >  > Suraj
 > > >  >
 > > >  > On 3/8/06, Pawel <[email protected]> wrote:
 > > >  > >
 > > >  > >
 > > >  > > Hallo
 > > >  > > when I'm running beanshell I get the following classpath:
 > > >  > > cd /home/java/
 > > >  > > /usr/java/jdk1.5.0_06/bin/java -classpath /root/emacs-packages/jde-
 > > 2.3.5
 > > >  > > /java/lib/bsh.jar:/root/emacs-packages/jde-2.3.5
 > > >  > > /java/bsh-commands:/root/emacs-packages/jde-2.3.5
 > > /java/lib/checkstyle-
 > > >  > >
 > > all.jar:/root/emacs-packages/jde-2.3.5/java/lib/jakarta-regexp.jar:/root/emacs-packages/jde-2.3.5/java/lib/jde.jar:/usr/java/jdk1.5.0_06/lib/tools.jar:/root/emacs-packages/jde-2.3.5/plugins/usages/classes:/root/emacs-packages/jde-2.3.5/plugins/usages/lib/usages.jar:/home/java/
 > > >  > > bsh.Interpreter
 > > >  > >
 > > >  > > BeanShell 2.0b2 - by Pat Niemeyer ([email protected])
 > > >  > > bsh % bsh % bsh % bsh % bsh % bsh % bsh %
 > > >  > >
 > > >  > > I want to put additional path before jde.jar, it is:
 > > >  > > /root/emacs-packages/jde-2.3.5/java/classes
 > > >  > >
 > > >  > > I tried to modify `bsh-classpath', but it did not make the effect.
 > > >  > >
 > > >  > > bsh-classpath's value is
 > > >  > > ("/root/emacs-packages/jde-2.3.5/java/classes")
 > > >  > >
 > > >  > > Can You tell me how to do that?
 > > >  > >
 > > >  > > Greetings
 > > >  > >
 > > >  > Set jde-devel-debug to true, it'll replace jde.jar with
 > > jde/java/classes in your bsh classpath. If you still need to jde.jar to
 > > the classpath, adding it to jde-global-classpath should
 > > help.<br><br>Suraj<br><br><div><span class="gmail_quote">
 > > >  > On 3/8/06, <b class="gmail_sendername">Pawel</b> &lt;<a href="mailto:
 > > [email protected]">[email protected]</a>&gt; wrote:</span><blockquote
 > > class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204);
 > > margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 > > >  > <br>Hallo<br>when I'm running beanshell I get the following
 > > classpath:<br>cd /home/java/<br>/usr/java/jdk1.5.0_06/bin/java -classpath
 > > /root/emacs-packages/jde-2.3.5/java/lib/bsh.jar:/root/emacs-packages/jde-
 > > 2.3.5/java/bsh-commands:/root/emacs-packages/jde-
 > > >  > 2.3.5/java/lib/checkstyle-
 > > all.jar:/root/emacs-packages/jde-2.3.5/java/lib/jakarta-regexp.jar:/root/emacs-packages/jde-2.3.5/java/lib/jde.jar:/usr/java/jdk1.5.0_06/lib/tools.jar:/root/emacs-packages/jde-2.3.5/plugins/usages/classes:/root/emacs-packages/jde-2.3.5/plugins/usages/lib/usages.jar:/home/java/
 > > >  >  bsh.Interpreter<br><br>BeanShell 2.0b2 - by Pat Niemeyer (<a
 > > href="mailto:[email protected]">[email protected]</a>)<br>bsh % bsh % bsh % bsh % bsh
 > > % bsh % bsh %<br><br>I want to put additional path before jde.jar, it
 > > is:<br>/root/emacs-packages/jde-
 > > >  > 2.3.5/java/classes<br><br>I tried to modify `bsh-classpath', but it
 > > did not make the effect.<br><br>bsh-classpath's value
 > > is<br>(&quot;/root/emacs-packages/jde-2.3.5/java/classes&quot;)<br><br>Can
 > > You tell me how to do that?
 > > >  > <br><br>Greetings<br></blockquote></div><br>
 > > >
 > > >
 > >
 > Martin,<br><br>Thanks for pointing that out, I hadn't noticed the change.<br><br>Suraj<br><br><div><span class="gmail_quote">On 3/9/06, <b class="gmail_sendername">Martin Schwamberger</b> &lt;<a href="mailto:[email protected]">
 > [email protected]</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Pawel, hi Suraj,<br><br>this has changed with JDEE 2.3.5
 > .<br>It's now an additional entry in the classpath before jde.jar<br>rather than a replacement for jde.jar.<br><br>I noticed that the doc-string of jde-devel-debug is slightly out-of-date.<br><br>To reflect the recent change, it could be something like this:
 > <br><br>&nbsp;&nbsp; &quot;If true, use the JDEE Java classes in the jde/java/classes<br>directory instead of the respective classes found in jde.jar.<br>This variable is intended for use in testing the JDEE's java classes.&quot;<br>
 > <br>BTW, jde/java/bsh-commands is another place where you can put<br>class-files which should be used instead of those found in jde.jar.<br><br>Martin<br><br>Pawel wrote:<br>&gt; This is what I meant.<br>&gt; I noticed that it does not replace 
 > jde.jar, but preceeds jde.jar path with classes path, so that's it!<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt;<br>&gt; Suraj Acharya writes:<br>&gt;&nbsp;&nbsp;&gt; Set jde-devel-debug to true, it'll replace jde.jar with jde/java/classes in
 > <br>&gt;&nbsp;&nbsp;&gt; your bsh classpath. If you still need to jde.jar to the classpath, adding it<br>&gt;&nbsp;&nbsp;&gt; to jde-global-classpath should help.<br>&gt;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&gt; Suraj<br>&gt;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&gt; On 3/8/06, Pawel &lt;
 > <a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; &gt; Hallo<br>&gt;&nbsp;&nbsp;&gt; &gt; when I'm running beanshell I get the following classpath:<br>&gt;&nbsp;&nbsp;&gt; &gt; cd /home/java/
 > <br>&gt;&nbsp;&nbsp;&gt; &gt; /usr/java/jdk1.5.0_06/bin/java -classpath /root/emacs-packages/jde-2.3.5<br>&gt;&nbsp;&nbsp;&gt; &gt; /java/lib/bsh.jar:/root/emacs-packages/jde-2.3.5<br>&gt;&nbsp;&nbsp;&gt; &gt; /java/bsh-commands:/root/emacs-packages/jde-
 > 2.3.5/java/lib/checkstyle-<br>&gt;&nbsp;&nbsp;&gt; &gt; all.jar:/root/emacs-packages/jde-2.3.5/java/lib/jakarta-regexp.jar:/root/emacs-packages/jde-2.3.5/java/lib/jde.jar:/usr/java/jdk1.5.0_06/lib/tools.jar:/root/emacs-packages/jde-2.3.5/plugins/usages/classes:/root/emacs-packages/jde-2.3.5/plugins/usages/lib/usages.jar:/home/java/
 > <br>&gt;&nbsp;&nbsp;&gt; &gt; bsh.Interpreter<br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; &gt; BeanShell 2.0b2 - by Pat Niemeyer (<a href="mailto:[email protected]">[email protected]</a>)<br>&gt;&nbsp;&nbsp;&gt; &gt; bsh % bsh % bsh % bsh % bsh % bsh % bsh %<br>&gt;&nbsp;&nbsp;&gt; &gt;
 > <br>&gt;&nbsp;&nbsp;&gt; &gt; I want to put additional path before jde.jar, it is:<br>&gt;&nbsp;&nbsp;&gt; &gt; /root/emacs-packages/jde-2.3.5/java/classes<br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; &gt; I tried to modify `bsh-classpath', but it did not make the effect.
 > <br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; &gt; bsh-classpath's value is<br>&gt;&nbsp;&nbsp;&gt; &gt; (&quot;/root/emacs-packages/jde-2.3.5/java/classes&quot;)<br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; &gt; Can You tell me how to do that?<br>&gt;&nbsp;&nbsp;&gt; &gt;
 > <br>&gt;&nbsp;&nbsp;&gt; &gt; Greetings<br>&gt;&nbsp;&nbsp;&gt; &gt;<br>&gt;&nbsp;&nbsp;&gt; Set jde-devel-debug to true, it'll replace jde.jar with jde/java/classes in your bsh classpath. If you still need to jde.jar to the classpath, adding it to jde-global-classpath should help.&lt;br&gt;&lt;br&gt;Suraj&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class=&quot;gmail_quote&quot;&gt;
 > <br>&gt;&nbsp;&nbsp;&gt; On 3/8/06, &lt;b class=&quot;gmail_sendername&quot;&gt;Pawel&lt;/b&gt; &amp;lt;&lt;a href=&quot;mailto:<a href="mailto:[email protected]">[email protected]</a>&quot;&gt;<a href="mailto:[email protected]">[email protected]</a>&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 
 > 0.8ex; padding-left: 1ex;&quot;&gt;<br>&gt;&nbsp;&nbsp;&gt; &lt;br&gt;Hallo&lt;br&gt;when I'm running beanshell I get the following classpath:&lt;br&gt;cd /home/java/&lt;br&gt;/usr/java/jdk1.5.0_06/bin/java -classpath /root/emacs-packages/jde-
 > 2.3.5/java/lib/bsh.jar:/root/emacs-packages/jde-2.3.5/java/bsh-commands:/root/emacs-packages/jde-<br>&gt;&nbsp;&nbsp;&gt; 2.3.5/java/lib/checkstyle-all.jar:/root/emacs-packages/jde-2.3.5/java/lib/jakarta-regexp.jar:/root/emacs-packages/jde-2.3.5/java/lib/jde.jar:/usr/java/jdk1.5.0_06/lib/tools.jar:/root/emacs-packages/jde-2.3.5/plugins/usages/classes:/root/emacs-packages/jde-2.3.5/plugins/usages/lib/usages.jar:/home/java/
 > <br>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;bsh.Interpreter&lt;br&gt;&lt;br&gt;BeanShell 2.0b2 - by Pat Niemeyer (&lt;a href=&quot;mailto:<a href="mailto:[email protected]">[email protected]</a>&quot;&gt;<a href="mailto:[email protected]">[email protected]</a>&lt;/a&gt;)&lt;br&gt;bsh % bsh % bsh % bsh % bsh % bsh % bsh %&lt;br&gt;&lt;br&gt;I want to put additional path before 
 > jde.jar, it is:&lt;br&gt;/root/emacs-packages/jde-<br>&gt;&nbsp;&nbsp;&gt; 2.3.5/java/classes&lt;br&gt;&lt;br&gt;I tried to modify `bsh-classpath', but it did not make the effect.&lt;br&gt;&lt;br&gt;bsh-classpath's value is&lt;br&gt;(&amp;quot;/root/emacs-packages/jde-
 > 2.3.5/java/classes&amp;quot;)&lt;br&gt;&lt;br&gt;Can You tell me how to do that?<br>&gt;&nbsp;&nbsp;&gt; &lt;br&gt;&lt;br&gt;Greetings&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;<br>&gt;<br>&gt;<br></blockquote></div><br>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.