Results 1 to 4 of 4
Like Tree2Likes
  • 2 Post By pbrockway2

Thread: Exception in thread "main" java.lang.NoClassDefFoundError

  1. #1
    ngubk is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Exception in thread "main" java.lang.NoClassDefFoundError

    Nice to meet you all! I'm a newbie at Java. I imported a project named ims-communicator and build project successfully using Eclipse . But when i tried to run jar file, i got this error:
    Java Code:
    ngu@MyUbuntu:~/workspace/ims-communicator$ java -jar ims-communicator.jar 
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/NoProcessorException
    	at net.java.sip.communicator.SipCommunicator.<init>(SipCommunicator.java:126)
    	at net.java.sip.communicator.SipCommunicator.main(SipCommunicator.java:423)
    I tried to change the command a little but still got some problems
    Java Code:
    ngu@MyUbuntu:~/workspace/ims-communicator$ java -classpath -jar ims-communicator.jar 
    Exception in thread "main" java.lang.NoClassDefFoundError: ims-communicator/jar
    I'm using Ubuntu 10.10. Thanks for any reply
    Last edited by ngubk; 10-01-2011 at 04:39 AM.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Exception in thread "main" java.lang.NoClassDefFoundError

    Check the documentation for this ims-communicator thing to see what dependencies it has and how it (and they) should be installed.

    Basically the runtime error is saying that the javax.media.NoProcessorException class cannot be found. This class appears to be part of the Java Media Framework and either you have not installed this or it has not been configured so that the classes can be found when the jar file is run.
    Fubarable and ngubk like this.

  3. #3
    ngubk is offline Member
    Join Date
    Oct 2011
    Posts
    2
    Rep Power
    0

    Default Re: Exception in thread "main" java.lang.NoClassDefFoundError

    Quote Originally Posted by pbrockway2 View Post
    Check the documentation for this ims-communicator thing to see what dependencies it has and how it (and they) should be installed.

    Basically the runtime error is saying that the javax.media.NoProcessorException class cannot be found. This class appears to be part of the Java Media Framework and either you have not installed this or it has not been configured so that the classes can be found when the jar file is run.
    Wow! thanks so much! I finally got it run by downloading JMF for oracle.com and put in the right folder.

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Exception in thread "main" java.lang.NoClassDefFoundError

    Great - I'm glad you've got it sorted out.

Similar Threads

  1. Exception in thread "main" java.lang.NoClassDefFoundError:
    By madsovenielsen in forum New To Java
    Replies: 2
    Last Post: 10-04-2010, 06:41 PM
  2. Replies: 5
    Last Post: 06-02-2010, 02:05 PM
  3. Replies: 3
    Last Post: 06-01-2010, 04:01 PM
  4. Replies: 1
    Last Post: 04-02-2009, 10:50 PM
  5. Replies: 6
    Last Post: 08-18-2008, 07:44 AM

Posting Permissions

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