Re: Error in beanshell macro
Jim <[email protected]>
| Newsgroups | gmane.editors.jedit.user |
|---|---|
| Message-ID | <[email protected]> |
On 08/21/2017 09:52 PM, Jim wrote: > On 08/19/2017 02:12 PM, Alan Ezust wrote: >> Oh I remember having a similar (but slightly different) problem with Java >> on Linux, where concatenation of double-quoted string literals caused a >> weird runtime exception related to StringConcatFactory. >> >> I had to apt-get install libatk-wrapper-java before I could get string >> concatenation to work. >> > > I just installed that package and I still get this error: > > Sourced file: /home/jfb/.jedit/macros/MyMacros/Columnize_Code.bsh : > Error in method invocation: Method insert( java.lang.String, boolean ) > not found in class'org.gjt.sp.jedit.textarea.JEditTextArea' : at Line: 7 : > in file: /home/jfb/.jedit/macros/MyMacros/Columnize_Code.bsh > : textArea .insert ( " " , false ) > > I am running the same version if jEdit (5.4.0) on both ubuntu 16.04 and > mint 18. It works on ubuntu 16.04 but not on mint 18. on ubuntu 16.04 I > am running Oracle java version 1.8.0_121 and on mint 18 I am running > openjdk version 1.8.0_131. I would like to avoid the hassle of > installing Oracle java on my mint 18 partition without any assurances > that it will solve the problem if I can. > > Anyone have any other ideas? I am sort of stuck here as I don't know > java or beanshell for that matter. It took a lot of searching and trial > and error for me to write it. > > Regards, Jim > I booted to my ubuntu 16.04 partition and installed openjkd. I used the macro and it worked fine with no errors. I tried disabling all plugins and still get the error. I checked the docs and the method is supposed to be in that class. Not knowing Java I don't know how to check and see if it is actually present on my hard drive. Is there a way to copy over the file that would contain that class from my working 16.04 install to my Mint 18 install? thanks, Jim ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot -- ----------------------------------------------- jEdit Users' List [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-users