Projects tigase _server server-core Issues #1428
run XmppServer report that Selection does not contain a main type (#1428)
Unknown opened 4 years ago

**when i use eclipse run XmppServer in windows it report error that Selection does not contain a main type ,i use the latest master (about 8.2.0)branch code , what can i do with this , can you help me, thanks very much **

Unknown commented 4 years ago

" Selection does not contain a main type"

Could you share complete error message (and maybe a screenshot)? Please also explain in detail how you try to run the Tigase.

Unknown commented 4 years ago

" Selection does not contain a main type"

Could you share complete error message (and maybe a screenshot)? Please also explain in detail how you try to run the Tigase. when i select the project , run as -> Java application, i can not find XmppServer. when i select XmppServer, run as ->Java application,it report that that Selection does not contain a main type this is my screenshot https://github.com/wqxcloud/GitTest/tree/master/test

Unknown commented 4 years ago

Have you modified sources in any way? XMPPServer class definitely have main() method. If your sources have it and Eclipse can't see it then please bring the issue up to Eclipse support as it's out of scope of Tigase.

Unknown commented 4 years ago

Have you modified sources in any way? XMPPServer class definitely have main() method. If your sources have it and Eclipse can't see it then please bring the issue up to Eclipse support as it's out of scope of Tigase.

but i really donot change modified sources,this is my compare with remote master code modified https://github.com/wqxcloud/GitTest/blob/master/test/compare_with_rmote_mast.PNG

Unknown commented 4 years ago

In that case please consult with the Eclipse IDE/support channels to figure out why your IDE is not picking up main() method and thus is unable to run the code.

Unknown commented 4 years ago

In that case please consult with the Eclipse IDE/support channels to figure out why your IDE is not picking up main() method and thus is unable to run the code.

ok thanks very much,but i use IntelliJ IDEA 2020.2.3 also cannot run XmppServer,i will have a look agin

Unknown commented 4 years ago

In that case please consult with the Eclipse IDE/support channels to figure out why your IDE is not picking up main() method and thus is unable to run the code.

when i change jdk to 1.8, i can find xmppserver main() in run application,but i cant compile tigase successful . when i change jdk to 11,i can compile tigase successful,but i cant find xmppserver main() in run application

Unknown commented 4 years ago
Unknown commented 4 years ago

Go to XMPPServer, scroll to line 141:

https://github.com/tigase/tigase-server/blob/e075e81cc555005f56a96643089fc97c640540c8/src/main/java/tigase/server/XMPPServer.java#L141-L141

And click on "Play" symbol to run the server:

Captura de pantalla 2021-04-20 a las 13 08 11

i also can`t run XmppServer. when i change jdk to 1.8, i can find xmppserver main() in run application,but i cant compile tigase successful . when i change jdk to 11,i can compile tigase successful,but i cant find xmppserver main() in run application, why ?

Unknown commented 4 years ago

Honestly - I don't know. I would ask IDEA support team as it seems that there is a problem there. It works for me just fine. (JDK11, minimum required version for Tigase 8)

You can try clearing idea cache and restarting (https://www.jetbrains.com/help/idea/invalidate-caches.html)

Unknown commented 4 years ago

Honestly - I don't know. I would ask IDEA support team as it seems that there is a problem there. It works for me just fine. (JDK11, minimum required version for Tigase 8)

You can try clearing idea cache and restarting (https://www.jetbrains.com/help/idea/invalidate-caches.html)

ok,thanks very much.Please let me know if there is any progress

issue 1 of 1
Type
Question
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1428
Please wait...
Page is in error, reload to recover