Results 1 to 10 of 10

Thread: How to make this work.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    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.

  2. #2
    Hyperactive Member Pix's Avatar
    Join Date
    Feb 2001
    Location
    I'm not telling you (or them)
    Posts
    282
    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Thanks, Pix, but

    it didn't work.

  4. #4
    Hyperactive Member Pix's Avatar
    Join Date
    Feb 2001
    Location
    I'm not telling you (or them)
    Posts
    282
    Doh

  5. #5
    Hyperactive Member Pix's Avatar
    Join Date
    Feb 2001
    Location
    I'm not telling you (or them)
    Posts
    282
    Does the program compile ok?

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    and are you packaging it somewhere?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    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! (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]

  8. #8
    Hyperactive Member Pix's Avatar
    Join Date
    Feb 2001
    Location
    I'm not telling you (or them)
    Posts
    282
    Ok then, I'll have a go

  9. #9
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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.



    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.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Mobile, AL, USA
    Posts
    600

    Thanks crptcblade,

    I hope you can make this work. I'm counting on this code!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width