BSD
BeanShell Box
Products:
Android Studio,
IntelliJ IDEA
Vendor:
e-manation
Email:
N/A
Website:
N/A
SourceCode: BeanShell_Box_1022.zip
Description:
Adds a BeanShell toolbox allowing you to write snippets of both Java and BeanShell code. See http://www.beanshell.org for a complete description of the BeanShell language.
Downloads: 6000
Rating:
Participated in rating: 4
Comments:
2.0b4 - by Pat Niemeyer (pat@pat.net)
bsh % p = new JPanel();
... Internal IDE error ...
loader constraint violation: loader (instance of bsh/classpath/BshClassLoader) previously initiated loading for a different type with name "javax/accessibility/AccessibleContext"
java.lang.LinkageError: loader constraint violation: loader (instance of bsh/classpath/BshClassLoader) previously initiated loading for a different type with name "javax/accessibility/AccessibleContext"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at bsh.classpath.BshClassLoader.findClass(Unknown Source)
at bsh.classpath.BshClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructors(Class.java:1459)
at bsh.Reflect.constructObject(Unknown Source)
at bsh.BSHAllocationExpression.constructObject(Unknown Source)
at bsh.BSHAllocationExpression.objectAllocation(Unknown Source)
at bsh.BSHAllocationExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHAssignment.eval(Unknown Source)
at bsh.Interpreter.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Have you tried increasing the maximum amount of memory IJ uses ? (idea.vm file).
/Library/Application Support/IntelliJIDEA60/ BeanShellBox
directory. However, with a small test project it works fine!
import my.package.MyClass;
It does load classes from the output directory. Though, you still have to import them manually. I have not used the auto-import feature of BeanShell because it leads to many name conflicts. Therefore, a classical build and test scheme would be :
- build
- refresh BeanShell (clears imports)
- import your class in BeanShell (import my.package.MyClass;)
- test your snippet
I've planned to try to auto import classes when you use the "Send to" feature, but I still have to figure out how to do it ;)