Results 1 to 2 of 2
  1. #1
    mm1974 is offline Member
    Join Date
    Jul 2014
    Posts
    1
    Rep Power
    0

    Default Cannot get object class for

    Hi, please can somebody explain me, what mean: Cannot get object class for ??


    Java Code:
    package dummy;
    
    public class Test2 {
    
                    public static void main(String[] args) {
                                   // TODO Auto-generated method stub
    
                                   Test2  t2 = new Test2();
                                   System.out.print(t2.getPluginVersion());
                    }
    
                   
                    public String getPluginVersion(){
                                   return "DummyPlugin1";
                    }
    
    }
    I got this error:
    Cannot get object class for : dummy/Test2

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,923
    Rep Power
    5

    Default Re: Cannot get object class for

    My guess is that your file is not named Test2.java? Or your class is not Test2.class or there is no package dummy in your class path.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Replies: 3
    Last Post: 05-02-2011, 05:37 AM
  2. Replies: 1
    Last Post: 02-02-2011, 07:11 PM
  3. Replies: 2
    Last Post: 06-22-2010, 05:29 AM
  4. Replies: 3
    Last Post: 03-15-2010, 09:44 PM
  5. Creating object of Type Object class
    By venkatv in forum New To Java
    Replies: 3
    Last Post: 07-17-2007, 04:33 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
  •