No, you can't. Keep in mind that it's only a bridge to the regular java JVM. So what you ask for would be the same as reloading a class in a running java program.
Michael. On Thu, Nov 19, 2009 at 7:38 PM, Ken <kmai...@googlemail.com> wrote: > Another question: if I modify and recompile a class, is there an easy > way to get octave to reloaded the new class files without having to > restart octave? For instance, if I create a new method, recomile, > then assign x = java_new(...), the new method is not availble until I > restart octave. > > > > 2009/11/19 Ken <kmai...@googlemail.com>: >> On further thought, when you compile HelloWorld.java it creates a >> HelloWorld.class file and a HelloWorld$SpecialNames.class file. >> Perhaps access to the static enum SpecialNames is through the >> latter...but I still have not figured it out yet. >> >> >> 2009/11/19 Ken <kmai...@googlemail.com>: >>> That does not seem to work. >>> >>> I have created a simple class below. If anyone has any idea how to >>> invoke " getHelloSpecial" please share. I have tried various methods >>> without luck so far. >>> >>> Thanks, >>> Ken >>> >>> >>> public class HelloWorld { >>> >>> public String helloWorld = "Hello World!"; >>> public static enum SpecialNames { >>> John, Jane, Alice, Mike >>> }; >>> >>> public String getHelloWorld(){ >>> return helloWorld; >>> } >>> >>> public static String getHelloName(String name){ >>> return "Hello, " + name + "!"; >>> } >>> >>> public String getHelloSpecial(SpecialNames name){ >>> return getHelloName(name.toString()); >>> } >>> >>> public static void main(String[] args) { >>> System.out.println("HelloWorld main method"); >>> } >>> } >>> >>> 2009/11/18 Michael Goffioul <michael.goffi...@gmail.com>: >>>> Never tried that. You might want to try something like: >>>> >>>> java_get('Asset.AssetType', 'CASH') >>>> >>>> Michael. >>> >> > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev