0

I'm trying to extend the BigBlueButton client with some proprietary classes. Specifically the phone module, where I added a file with my own code. When I write my own package name (org.mydomain.module.test ...) within the file, the compiler fails because it can't find my class from the mxml file. But when I use the original package name (org.bigbluebutton.module.phone ...) it compiles fine. Obviously when I use a different package name, the file is not included in the compilation. How can I change this?

This fails:

package org.mydomain.module.test 
{
  public class MyTestClass
  {
    // code here
  }
}

But this works:

package org.bigbluebutton.modules.phone.test
{
  public class MyTestClass
  {
    // code here
  }
}

FYI: BigBlueButton uses ant to compile the client.

KBoek
  • 5,794
  • 5
  • 32
  • 49
  • 1
    You didn't say where you put the files on disk, the package name should match the file's path in your project. Is that the case in both examples? – Sunil D. Sep 24 '13 at 15:53
  • You got a point there; I placed my own package files together with the original ones. Will move them to the correct directory and try to compile again. Thanks! – KBoek Sep 24 '13 at 16:55
  • +1 for the solution; you may write it as an answer instead of a comment and get the credit for it! – KBoek Sep 24 '13 at 18:25

1 Answers1

1

You didn't say where you put the files on disk, the package name should match the file's path in your project. Is that the case in both examples?

So when the package name is: org.mydomain.module.test

The class file should be saved in the path:

my_project_path/src/org/mydomain/module/test
Sunil D.
  • 17,983
  • 6
  • 53
  • 65