CMD > jrunscript -classpath ".;My.jar"
js> var myClass = new Packages.My("class");
js> myClass.getName();
class
js> var myJar = new Packages.foo.bar.My("jar");
js> myJar.getName();
jar
js>
CMD > javac My.java
CMD > jrunscript -classpath .
js> var my = new Packages.My();
js> my.setName("foo");
js> my.getName();
foo
js> var my2 = new Packages.My("bar");
js> my2.getName();
bar
js>