Mark Miller | 9 Nov 2004 14:37

Re: Java connection :))

Peter Dimitrov wrote:
> Hi Mark,
> 
> I still struggle to import my own class in E:)) I tried the following after
> I changed the CLASSPATH to point to MyClass.class (this is my class :)))
> 
> def mycls := <unsafe:MyClass>
> def mycls := <unsafe:MyClass>()
> def mycls := <unsafe:java.MyClass>()
> 
> and many more but still get the same error:
> 
> "# problem: Failed: java.MyClass not found" or
> "# problem: Failed: MyClass not found"
> 
> How that exactly has to be done?

How did you change the classpath? The recommended way is to invoke rune as 
follows:

     $ rune -cpa dir ...

or

     $ rune -cpb dir ...

where "dir" is the root of a directory tree containing your MyClass.class 
under the appropriate package path. (If the directory contains spaces or other 
odd characters, be sure to put quotes around it.) The "..." is the remainder 
of whatever your normal rune invocation would be, and would be empty for 
(Continue reading)


Gmane