-
How to make this work.
When I try to run my Java program, I get this list of errors:
java.lang.NoClassDefFoundError: Examples/XL (wrong name: XL)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
Exception in thread "main"
How do I correct this? I am using Forte for Java, Community Edition v. 3.0.
Thanks in advance.
-
This might sound silly but are you sure you've typed in the name of your program correctly? I sometimes get those errors if I put myname java rather than Myname java i.e. need to start the program name with a capital letter. I'm probably wrong (I'm only a newbie), but it could be worth a try anyway
-
Thanks, Pix, but
-
-
Does the program compile ok?
-
and are you packaging it somewhere?
-
Check this out.
Pix, I was able to get the app to compile ... but that was all.
crptcblade, I didn't even know what "packaging" was until today! :eek: (I said in an earlier post that I was a Java "newbie!") :)
If you guys really want to help me, do this:[list=1][*]Go to this website Click Me.[*]Click on the "Java2COM" link.[*]As it says on the web page, click "here" to download the Java2COM classes.[*]Click on the "Documentation" link.[*]Move your mouse over "Java2COM TOC" and then click on the "Examples" link.[*]Click on the "Download Java2COM examples" link.[*]Click on the "Coroutine" button on the left side of the page.[*]Install Coroutine for Java from the current page by clicking on "click" in "To install Coroutine for Java click here."[*]See if you can get the XL.java example to work![*]Post on this site in simple details how to get XL.java to run![*]Accept my thanks! :)[/list=1]
-
Ok then, I'll have a go :)
-
I am getting a similar error, but I get that it is looking for com/neva/Coroutine and I can't see why it would be looking for it.
:confused:
Its odd that it does compile, yet cannot find something when the program is running. I will look at it a bit and see what I come up with.
:)
-
Thanks crptcblade,
I hope you can make this work. I'm counting on this code! :eek: