Java as desktop, console and service

I am professional Visual Basic.Net developer uses Visual Studio. I am willing to learn now Java instead. What i learnt so far Java is cross platform once developed can be run either on Windows or Linux environments and is free compared to Microsoft solutions which is very good. However i am not sure about couple things. I read that using Eclipse i can write webapps and in case of desktop apps i can use plugin called JavaFX which looks really nice. However what about if i would like to develop Windows Service which would be running in Windows background or even console app. Is it possible in Eclipse and java language? If so should i install some default plugins or this is something out of the box which is not Java target? Does Java as service/console app is something you would use for that purposes or in this case it’s better to use other script languages as Perl?