I've been receiving many "wrong" calls these days. Apparently, there is a hospital with a telephone number starting with "2664". And my telephone number starts with "2446" and the rest of the digits are same! Looks like folks get confused and dial "44" instead of "66". I end up receiving calls to "Dr. XYZ" at odd times!! Now, I understand what doctors have to go though in their life. Our after working hour conference calls are lot better - at least our US friends understand time zone difficulties and schedule meetings around 8 AM west coast time (which is ~ 8.30 PM in India).
Posted by Prem Kumar on July 29, 2007 at 04:23 PM IST #
Posted by A. Sundararajan on July 29, 2007 at 05:49 PM IST #
Posted by Prem Kumar on July 29, 2007 at 05:56 PM IST #
I have a script question for you I can not find an answer to. I have a very, very simple class, "public class A {}" in my current working directory. I REALLY want to just use this directly in jrunscript.
$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
$ ls
A.java
A.class
$ jrunscript -cp .
js> new java.io.File('A.class').exists();
true
js> java.lang.Class.forName('A');
script error: sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.ClassNotFoundException: A (<STDIN>#1) in <STDIN> at line number 1
I can create some basic Java classes fine, but not anything else. I can not figure out how to change the classpath of the ScriptEngine! I can instantiate other objects, but not this one.
What do I need to do? this is a standalone application.
Ant pulls some trick to get the Project and other Ant API classes into the classpath. I've tried write small jrunscript like programs to set the ContextClassLoader, reflect the instantiate of a ScriptEngine through a ClassLoader (with the right classpath), nothing seems to work.
Please HELP!
Posted by 207.171.191.60 on August 14, 2007 at 06:25 AM IST #