MaDKit forum

Welcome All !
Please, use explicit topic names when creating new threads. Thanks.

You are not logged in.

#1 Re: HowTo » Problems with the first launch for begginers » 2013-11-21 15:49:14

fmichel wrote:

OK this bug may be OS related (I will check).
In the mean time, could you please test with the 5.0.2 version, I think that it will solve your problem for now

Thank you, it solved my problem.

And thanks for so fast replies smile

#2 Re: HowTo » Problems with the first launch for begginers » 2013-11-21 13:31:39

Yep, I'm using MDK 5.0.3 ;
OS is Win7x64 ;
Yep again, i know about this way to lunch a single agent, but
What we should do next?
I suppose that i misunderstand something important about Agent programming , and exactly their structure.
I have a Java project which contains:
1)Main Class
2)Package with Agent Class
http://www.filedropper.com/tryherder

#3 HowTo » Problems with the first launch for begginers » 2013-11-21 11:56:52

Fixit
Replies: 4

Greetings!
Nice to write to you.
The problem is  happening while we're trying to start an agent like "Hello world"
We start like that:
In Main java class
new Madkit("--launchAgents","pack1.Myclass1;");
Where the "pack1.MyClass1" is ur example "http:/ /www.m adkit.net/tutorials/html/hello_world/index.html"

And after compilation we see these errors:

Exception in thread "main" java.lang.ExceptionInInitializerError
	at madkit.kernel.MadkitKernel.<init>(Unknown Source)
	at madkit.kernel.Madkit.<init>(Unknown Source)
	at Main.main(Main.java:5)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: java.lang.NullPointerException
	at madkit.kernel.KernelAddress.<clinit>(Unknown Source)
	... 8 more

Please help, cuz we're just starting learning Java and Agents sad
Thanks for your advices!
info:
IntelliJ IDEA 12.0
Windows7x64

Board footer