Open wrrgit opened 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.
" 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
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.
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
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.
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
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 can
t find xmppserver main() in run application
Go to XMPPServer
, scroll to line 141:
And click on "Play" symbol to run the server:
Go to
XMPPServer
, scroll to line 141:And click on "Play" symbol to run the server:
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 ?
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)
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
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