Loading...
 

Pogamut Netbeans IDE Plugin


Importing projects inside cookbook's examples bots projects

Hi again,

I'm trying to import a project (named Armamento) inside a cookbook bot project (renamed to ArmedBots-enOtroProyecto) but when I try to run it launch this error in that step:

Copy libraries to ..."path to added project"...
Armamento.jar:

java.io.FileNotFoundException: C:\Documents and Settings\Administrador\Mis documentos\NetBeansProjects\ArmedBots-enOtroProyecto\${project.Introspection}\build.xml

How must I do that?

Thanks
I am a little bit confused. What are you trying to do?

If you want to see the examples we are talking about in Pogamut3 cookbook, just go to NetBeans, New Project, Samples, Pogamut UT2004 and there select the bot you would like to see.

Also install new Pogamut version 3.0.11 (new example project - 04-Hunter added).

Best,
Michal

PS. The Pogamut3 cookbook tutorials may be not 100% up to date with the code in NetBeans, Samples, Pogamut UT2004, but the differences should be rather small (sometimes one line of code missing/fixed/added), the idea should remain the same.
Hi,

my problem isn't with cookbook projects exactly. I have same problem with bot templates too, but I use cookbook projects for use his functionality too.

I created a new project with some classes (reusability purpose) for use inside a bot project. My problem is when I try to import it inside bot projects.

Using netbeans functionality, I access to a bot project by Properties - Libraries and if I add my new project inside it (without new code), bot project don't work again (with error in first post)

I hope you can understand me, sorry my english isn't too good :-)
I guess I got it now. :-)

Try to do it as follows:

1) open the project you have created

2) right click your project (in projects tab), select Properties. There click Libraries and click Add library... In the list find PogamutUT2004 library and add it to your project.

3) open some cookbook example (you want to add to your project). Click on the package name and select Refactor and there Move. Move it to your project.

Does this work?

Best,
Michal
Hi again,

Just now I have a problem with my UT2004 and I can't run it (I've formated my computer for other reasons and now I have invalid CD key problem).

So I can't try it now with UT2004 version, so I thought to try it with UnrealEngine2RuntimeDemo but Pogamut 3.0.11 with installer full link don't work. How can I inform that?

I tried your solution with a older demo version and it work (thanks), but in fact I was thinking the opposite solutions: add my project to a cookbook project but it finish with a build problem, do you know why?

Anyway that work :-), thanks a lot

Frank
I'm a bit confused - was the issue solved?

Basicly there will be an issue with .jar files (libraries) as the Michal has mentioned.
For future problem - copy-paste some exception (it will probably mention some Pogamut class that can't be loaded by the class loader,
so we will be able to tell you which .jar is missing in your project).

Cheers!
Jakub
Hi,

thanks for pogamut link

I'm going to explain it again because I'm thinking that maybe I'm using wrong Netbeans, sorry.

I have a project with a classes group (project named Armamento and empty classes for test) and I want to use it in a bot project

Solution that I was trying is next:

1) I create my simple project named Armamento using New Project - Java (Category) - Java Aplicattion or Java Class Library. And I create a package and a simple class with a get() method.

2) I create my bot project using New Project - Pogamut UT2004 (Category) - Java Bot Project

3) I can run my java bot project without problem

4) right click my bot project (in projects tab), select Properties. There click Libraries and click Add Project, and using my simple project named Armamento. It is like your second step but with bot project and adding project (not library).

5) I can't run again my bot project, even if I remove added project from Properties.

Output is next:

init:
deps-jar:
Updating property file: C:\Users\Frank\Documents\NetBeansProjects\PogamutJavaBot\build\built-jar.properties
Armamento.init:
Armamento.deps-jar:
Created dir: C:\Users\Frank\Documents\NetBeansProjects\Armamento\build
Updating property file: C:\Users\Frank\Documents\NetBeansProjects\PogamutJavaBot\build\built-jar.properties
Created dir: C:\Users\Frank\Documents\NetBeansProjects\Armamento\build\classes
Created dir: C:\Users\Frank\Documents\NetBeansProjects\Armamento\build\empty
Compiling 1 source file to C:\Users\Frank\Documents\NetBeansProjects\Armamento\build\classes
Armamento.compile:
Created dir: C:\Users\Frank\Documents\NetBeansProjects\Armamento\dist
Building jar: C:\Users\Frank\Documents\NetBeansProjects\Armamento\dist\Armamento.jar
Copy libraries to C:\Users\Frank\Documents\NetBeansProjects\Armamento\dist\lib.
Armamento.jar:
C:\Users\Frank\Documents\NetBeansProjects\PogamutJavaBot\nbproject\build-impl.xml:396: The following error occurred while executing this line:
C:\Users\Frank\Documents\NetBeansProjects\PogamutJavaBot\nbproject\build-impl.xml:854: The following error occurred while executing this line:
java.io.FileNotFoundException: C:\Users\Frank\Documents\NetBeansProjects\PogamutJavaBot\${project.Introspection}\build.xml (El sistema no puede encontrar la ruta especificada)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:190)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:367)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 1 second)



Thanks again, I will try a little bit more
Hi again,

I get it :-)

I was trying all time with add Project (Properties) and it was the problem, thanks to your idea of add library I tryed next solutions that work.

First one:

1) 2) 3) like last post

4) I create a new Library using Tool menu option - New Library, I choose a name (LibraryArmamento for example), - Add jar/Folder, I choose my jar from my simple project

5) right click my bot project (in projects tab), select Properties. There click Libraries and click Add Library, and using my new library based on my simple project (LibraryArmamento). It is like you said but with a new Library not Pogamut library (is for that I said I was looking for oppositte solution :-) )


Second one, easier:

1) 2) 3) like last post

4) right click my bot project (in projects tab), select Properties. There click Libraries and click Add JAR/Folder, and using my new jar based on my simple project (armamento.jar).

I don't know if add project must work, maybe It isn't the way of use Netbeans but I was obssed with add project, add project, add project :-). I hope my posts are usefull.

Now I can intregate my fuzzy engine :-)

Thank again and again

Frank

Anyway
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.