Results 1 to 3 of 3
  1. #1
    bozovilla is offline Member
    Join Date
    Nov 2007
    Posts
    19
    Rep Power
    0

    Default Can't find class

    Hi,

    I have written a program called AudioConverter which calls Audio Common. Both files are in the same directory. But when I compile AudioConverter, it gives an error saying:

    C:\apache-tomcat-6.0.14\apache-tomcat-6.0.14\webapps\ROOT\AudioConverter.java:220: cannot find symbol
    symbol : variable AudioCommon
    location: class audio.AudioConverter
    AudioCommon.listSupportedTargetTypes();

    Wat should I do?

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

    Default

    Sounds like a classpath, package path problem. If the other class is in a package, adjust the classpath to point to the beginning of the package path.
    Is AudioConverter in the audio package? Then it needs to be in a folder of that name vs ROOT

  3. #3
    thusa is offline Member
    Join Date
    Jul 2008
    Posts
    19
    Rep Power
    0

    Default

    I guess it would be easy to figure out the issue if you can post the two package names of those two classes.

    If those are in default (no) package, then I doubt that you haven't compiled the AudioCommon class?

Similar Threads

  1. Could not find main class - JDK 1.6
    By Syranno in forum New To Java
    Replies: 1
    Last Post: 07-25-2008, 04:07 PM
  2. Replies: 0
    Last Post: 06-25-2008, 10:34 AM
  3. JVM Could not find main class
    By banduskank in forum Advanced Java
    Replies: 2
    Last Post: 06-24-2008, 08:05 AM
  4. Replies: 0
    Last Post: 05-13-2008, 06:16 AM
  5. cannot find symbol class error
    By po0oker in forum New To Java
    Replies: 5
    Last Post: 10-31-2007, 02:52 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
  •