Results 1 to 9 of 9
  1. #1
    Taxi is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default cannot find symbol method initCause(java.lang.ClassNotFoundException)

    I have created a MIDlet(JME) project and getting this exception (See title).

    I'm getting that on the following line:
    InputStream file = Class.class.getResourceAsStream(name);

    What am I doing wrong?

    Thanx in advance!

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default

    Please copy and paste the full text of the error message here.

  3. #3
    Taxi is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    I'm getting this error when I'm trying to compile my project.
    There are no other details I can post (at least I think so).

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default

    Please copy and paste the full text of the error message here.

  5. #5
    Taxi is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    Please have a look at the uploaded file.

    If you mean something else when you say the full text of the error message please be a little bit more specific.

    Thanks for your time
    Attached Files Attached Files

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default

    When I use javac to compile and get an error, this is what I get for the error message:
    Java Code:
    Running: D:\Java\jdk1.6.0_02\bin\javac.exe -Xlint -g -deprecation -classpath D:\JavaDevelopment\;.;..\..\..\..\. TestCode2.java
    
    TestCode2.java:17: cannot find symbol   <<<<<< Line number here
    symbol  : variable asdfs                        <<<<<< the symbol
    location: class TestCode2
          asdfs = sdfsfsdf;                     <<<<<< Source line here
          ^                                           <<<<<<< ^ under the  error
    TestCode2.java:17: cannot find symbol
    symbol  : variable sdfsfsdf
    location: class TestCode2
          asdfs = sdfsfsdf;
                  ^
    2 errors
    
    1 error(s)
    Sorry if FULL TEXT didn't register. Your title appears to be one small part of the FULL TEXT as I've shown above.
    Last edited by Norm; 09-08-2010 at 05:40 PM.

  7. #7
    Taxi is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    I'm just using the compile option that is available when you right-click the project. See attached file.

    I don't have a problem compiling the project in general, I'm just getting this error when I try to compile it with IDEA IntelliJ IDE.

    Maybe some configuration, settings problem?
    Attached Files Attached Files

  8. #8
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,814
    Rep Power
    25

    Default

    Sorry, I don't know anything about how your IDE works.

  9. #9
    go4soumya is offline Member
    Join Date
    Oct 2010
    Posts
    32
    Rep Power
    0

    Default

    check the documents of your IDE....may be it does not support the class, so it says java.lang.ClassNotFoundException

Similar Threads

  1. Replies: 3
    Last Post: 05-01-2008, 09:30 AM
  2. Replies: 0
    Last Post: 03-21-2008, 02:13 PM
  3. java.lang.ClassNotFoundException
    By ravian in forum New To Java
    Replies: 1
    Last Post: 01-07-2008, 11:31 AM
  4. Replies: 1
    Last Post: 07-24-2007, 12:54 AM
  5. Replies: 1
    Last Post: 06-27-2007, 06:57 PM

Posting Permissions

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