Re: [tcljava-user] Problems instantiating my own class with java::new
Brought to you by:
mdejong
From: Brian T. <bri...@gm...> - 2005-06-16 15:05:29
|
On 6/16/05, Adrian Tan <ah...@te...> wrote: [..] >=20 > A class would look something like below. The syntax is probably all wrong= , > but I'm sure you get my drift. >=20 > Public class HelloWorldApp { > //constructor below > Public void HellowWorldApp { > // All other codes here. > } > // Other methods below > } >=20 Thanks for the tip. It seems the problem was that my class wasn't declared as public. The following code works: public class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); } } C:\temp>java -classpath c:\temp;jacl.jar;tcljava.jar;swank.jar tcl.lang.Swk= Shell % java::call HelloWorldApp main [java::null] Hello World! % java::new HelloWorldApp java0x2 % |