Could not find Module class

All Union Platform questions, comments, feature requests, and bug reports.

Could not find Module class

Postby klapvee » Sun 12 May 2013 06:25

Hello again,

i'm sorry i am pretty new to unionplatform. I followed the java module example and now im trying to load it through javascript.
But the log keeps yelling: Could not find a Module class for name [net.user1.union.....

in netbeans i compiled my java class:
Code: Select all
package net.user1.union.game101.roommodule;

import net.user1.union.api.Module;
import net.user1.union.core.context.ModuleContext;
import net.user1.union.core.event.RoomEvent;

public class Game101 implements Module {
}


the game101.jar i put in my modules directory and load it through javascript:

Code: Select all
var modules = new net.user1.orbiter.RoomModules();
modules.addModule("net.user1.union.game101.roommodule.Game101", net.user1.orbiter.ModuleType.CLASS);


what am i doing wrong here? The union.jar is in my sources lib, i copied the game101.jar into the modules directory.
Please help

i also tried to load a .java file but i get the same error, i also followed the structure from the examples directory
klapvee
 
Posts: 4
Joined: Fri 03 May 2013 15:31

Re: Could not find Module class

Postby klapvee » Sun 12 May 2013 07:57

solved it, forgot to add it to the java class path with javac -cp. I expected that i could work without it
klapvee
 
Posts: 4
Joined: Fri 03 May 2013 15:31


Return to Union Platform

Online

Users browsing this forum: No registered users and 5 guests