24 July 2004 - java_dev (original) (raw)

02:37 pm - brindy i was looking for something to allow me to write systray apps for windows in java. i thought about using vc++ or vb, but i couldn't be arsed to try and get hold of the tools and get up to speed with it. so i had a quick google and found this:http://members.lycos.co.uk/gciubotaru/systray/it's free and open source under the gpl.i downloaded the dll and dropped it in to my system32 directory, compiled the sample code in eclipse and it ran perfectly first time. i was quite impressed (doesn't take much), so thought i'd share it here.

| | 04:03 pm - tragek Ok, I'm having a little issue right now. What I want to do, is have my arguments returned as type int. To test various hypothesies (there must be a simple way to do this, but I can't find it yet. Perhaps my book's no good here), I've set up this little program:class Arg { public static void main(int[] args) { int n = args[0]; System.out.println(" " + n); }}It compiles fine, however the java spits on running it, giveing a "java.lang.NoSuchMethod: main" error. (that's not verbatim)What's going on here? (believe me, I'm as new to this as it sounds.) | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |