tigase / tigase-server

(M) Highly optimized, extremely modular and very flexible XMPP/Jabber server
https://tigase.net
GNU Affero General Public License v3.0
326 stars 106 forks source link

run XmppServer report that Selection does not contain a main type #74

Open wrrgit opened 3 years ago

wrrgit commented 3 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

woj-tek commented 3 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.

wrrgit commented 3 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

woj-tek commented 3 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.

wrrgit commented 3 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

woj-tek commented 3 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.

wrrgit commented 3 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

wrrgit commented 3 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

woj-tek commented 3 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

wrrgit commented 3 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 ?

woj-tek commented 3 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)

wrrgit commented 3 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