I'm having a problem that shows as: java.lang.ClassNotFoundException: gui2.MainFrame java.lang.ClassNotFoundException: gui2.MainFrame at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at clojure.lang.DynamicClassLoader.findClass (DynamicClassLoader.java:52) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at clojure.import__776.doInvoke(boot.clj:1486) at clojure.lang.RestFn.invoke(RestFn.java:413) at user.eval__2296.invoke(Unknown Source) at clojure.lang.Compiler.eval(Compiler.java:3891) at clojure.lang.Repl.main(Repl.java:75)
I'm running Vista and when I enter the command "mklink /D . build \classes\gui\" . (The order for link and target is reversed on Windows.) I get the message "Cannot create a file when that file already exists." It works fine when I substitute a name such as xyz for the "." I've tried everything I can think of, including copying the .class files to the test-project directory. Nothing works. I realize this isn't a Clojure issue as such, but I assume others might run into the same problem. Has anyone worked around this? On Feb 4, 10:41 am, prhlava <prhl...@googlemail.com> wrote: > Hello Tim, > > > Feel free to use it as you wish. > > I have added the code (with attribution) to the guide. > > Also, the .java generated code listing should now compile. > > Updated guide is now on the same locations (including the files > section of this group). > > >... So calling > > MainFrame.main() runs the static method, but you cannot do m = new > > MainFrame(); m.main(); > > The generated "main" creates a new instance of MainFrame and makes it > > visible. There is no way for you to provide the object to "main" or > > get the object from "main" without modifying the java code. > > Thank you for the explanation, now I get it... > > Vlad > > PS: Fixing the quote to be paste friendly is maybe possible somewhere > in LyX but so far I did not find out how... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---