Re: [mdr-users] Problems with the example in website

Martin Matula <[email protected]> Wed, 11 Jan 2006 11:59:25 +0100
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi Luiz,
please see below:

[email protected] wrote:
...
> Then, I got the first sample code which name is ProjectCreationDemo and
> now my problems started. First, the tutorial says that I need to generate
> a JAR file from the generated JMI API about the Projects Metamodel. How
> Can I do this? I create a New JAR Recipe, then, I mount a filesystem that
> was linked to the folder where the generated API is located and tell to
> the JAR Recipe to get this folder. But, when I compile the JAR Recipe I
> found errors because javax.jmi.reflect.* can not be found. So, what the
> right way? Add the jmi.jar in the same recipe and compile? With this
> solution I could continue in this step. Then, the tutorial tell to put
> this generated JAR in the netbeans directory/lib/ext for what?

By creating a jar file I meant a simple creation of a jar file - you can 
do it using a jar command (on the commandline), or you can e.g. use a 
zip utility to zip the files and then rename the resulting file to a 
.jar. Or you can use ant to do that - create a simple ant script that 
will create a jar for you. JAR packager should also work, but to be 
honest I have no experience with that.

The jar should be put into the *NetBeans install dir* under /lib/ext.

> I set the execution of class for internal execution and I have other
> problems like "class can´t has a main mehotd", but the public void static
> main is there. I had problems with null-pointer, with the jmi jar file and
> other problems. So, anybody has a tutorial more detailed or give me some
> help in all these steps?

I am not sure what' wrong in these cases. Could you please provide some 
stacktraces?
Thanks,
Martin