Who can explain/document the use/declaration of a plugin library ?

I have declared an alias to my program and it works if I don't use a library (.jar).
But when I try to use a library (in my case junit.jar), JNode don't find the library.

I know that I need do add/modify some xml files, but I don't see how these xml files are linked together and how a plugin library is declared and linked with a program.

Who can explain or at least give me an already working example in JNode ?

Thanks.

Added a required plugin

Hi, if you need JUnit, add this plugin as prerequisite of your plugin-descriptor.
Like this:

<requires>
<import plugin="org.junit" version="3.8"/>
</requires>

Ewout

take a look at the docs

hi,

the basics are explained here How to add a Java program to JNode there are the xml files mentioned wich you have to change and the structure you have to arrange your Plugin (folders and so on). The jar file is builded via ant, while building JNode.

Can you explain the structure of your plugin / program?
(e.g. is the junit.jar from your source? does your program needs classes form that library or will you start that jar file?)

In general every plugin gets ist own library, so you don't need to build a library on your own.

Trickkiste

some details ...

Hi,
I have already looked at the doc, but I think my case is different.

When I mention junit.jar, it's a third party library already build in a .jar file. I have seen junit.jar in the JNode eclipse workspace. I think this jar file is not (re)build via ant, while building JNode.

Here is the structure of my program called AllFSTest :
- the main is in JNode-FS/src/test/org/jnode/test/fs/AllFSTest
- a sub directory JNode-FS/src/test/org/jnode/test/fs/unit/
- a sub directory JNode-FS/src/test/org/jnode/test/fs/unit/tests
The main is using the 2 sub-directories and is directly using the class junit.textui.TestRunner. The TestRunner class is in the third party library junit.jar (it is already used by another JNode program called GeometryTest, but I can't run it).

Fabien.

I will try to write some things down on Monday

hi,

i'm in Berlin now, but on Monday i will be back in Munich, where I will try to solve youre case.

Trickkiste
(you can mail me your source / jar to trickkiste at gmx.de)

I have solved the problem

Thanks for the help, but I have solved the problem.
Now, I am trying to configure the Security for JUnit ...