Official Nodeka Board

Official Nodeka Board (http://www.nodeka411.net/forum/index.php)
-   UMC (http://www.nodeka411.net/forum/forumdisplay.php?f=10)
-   -   Plugin API (http://www.nodeka411.net/forum/showthread.php?t=536)

Bellum 02-01-2010 03:56 AM

Plugin API
 
I had a few questions about the plugin api wasn't sure if anyone could help me out. When I try to compile the test.java in the package I get 3 errors, this is what i'm typing to compile it:

javac -cp testPluging.jar TestPlugin.java

and these are the errors:

[quote]
TestPlugin.java:1: package com.lsd.umc does not exist
import com.lsd.umc.Constants;
^
TestPlugin.java:2: package com.lsd.umc.script does not exist
import com.lsd.umc.script.ScriptInterface;
^
TestPlugin.java:8: cannot find symbol
symbol : class ScriptInterface
location: class TestPlugin
private ScriptInterface script = null;
^
TestPlugin.java:17: cannot find symbol
symbol : class ScriptInterface
location: class TestPlugin
public void init(ScriptInterface script) {
^
TestPlugin.java:35: cannot find symbol
symbol : class ScriptInterface
location: class TestPlugin
public void IncomingEvent(ScriptInterface script) {
^
TestPlugin.java:44: cannot find symbol
symbol : class ScriptInterface
location: class TestPlugin
public void TimerEvent(ScriptInterface script, String ID) {
^
TestPlugin.java:25: cannot find symbol
symbol : variable Constants
location: class TestPlugin
script.print("testCommand() called with argument: " + arguments + Constants.sREDRAW);
^
TestPlugin.java:48: cannot find symbol
symbol : variable Constants
location: class TestPlugin
script.print("[TestPlugin] TimerEvent ID: " + ID + Constants.sREDRAW);
^
8 errors
[quote]

I'm not sure if anyone has any input, i'm reading step by step from the README.txt included in the plugin api download.

also I have a complied .class file of my own script and even with the class.txt I can't seem to get it to load into umc correctly as a plugin, anyone with any help out there?

Thanks in Advance

uda 02-03-2010 05:40 PM

You may have read the README.TXT, but you didn't follow it ;)

The command is:

javac -cp umc-api.jar TestPlugin.java

Try:

javac -help

-cp refers to the classpath to include libraries. Those errors are referring to the API functions which need to be included.

Bellum 02-04-2010 08:19 AM

thanks, got it to work, I suppose.


Quote:

Originally Posted by uda (Post 1752)
You may have read the README.TXT, but you didn't follow it ;)

The command is:

javac -cp umc-api.jar TestPlugin.java

Try:

javac -help

-cp refers to the classpath to include libraries. Those errors are referring to the API functions which need to be included.



All times are GMT. The time now is 08:03 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.