Java Web development in eclipse - eclipse

I am building a web application using java servlets and jsp.
Every thing is working fine but I can't see the source code of the files like
HttpServlet from my eclipse IDE.
I think I need to download J2EE sdk. Right ??
Please tell the steps
Thank you all

There's a cool tool called jad that will do this for you.
Here's a link that explains how to install it:
http://www.mkyong.com/java/java-decompiler-plugin-for-eclipse/

Related

I get "Can't find any GWT Modules on this page"

I am trying to set up my eclipse with gwt and after I installed Jdk 8 and eclipse 2019-06 and gwt eclipse plugin 3.0 I created the sample project with code generated and when I try to run the sample code in GWT Development mode it gives me url http://localhost:9876 and when I open it I get "Can't find any GWT Modules on this page" Can you please help why It is giving me Can't find any GWT Modules on this page. I am assuming if I am running it in development mode I don't need to set up web server so I didn't. I didn't used gwt for long time and I am lost why it is giving me this can't find gwt module message when I load the page. Can you please help?
You still need a server, if you want to run any java code on your server. Such as code for talking to your database.
Gwt only does 2 things:
1: is is handling the client side, where it generate javascript from your java code.
2: It includes a .jar file, which can be used together with a java servlet server such as apache tomcat to serialize java objects which can then be send between the client and the server. And this .jar file will serialize all needed objects. And gwt will generate the needed javascript code.
Gwt does not itself include any http server. The address http://localhost:9876 is only used to configure gwt. It is just a page with 2 buttons to turn dev mode on/off.
The eclipse plugin does include a embeded webserver which can be used for gwt development. I have newer done this and I think that installing an independent java tomcat server is the best solution.
But if you want to use the eclipse embeded webserver you need the "Run in development mode with Jetty." - Jetty is the name of the embeded java servlet server.
Are you using the plugin from Google ?
If so, this is outdated. I advice you to use the plugin from branflake. You can find this plugin on GitHub : https://github.com/gwt-plugins/gwt-eclipse-plugin
Also on that GitHub page a lot of documentation is available. Like a link to a very helpfull YouTube playlist: https://www.youtube.com/watch?v=DU7ZQVLR5Zo&list=PLBbgqtDgdc_TqzA-qXrjgTFMC_6DKAQyT
My advice is to watch these YouTube videos to get you started. If you follow them all should be working without a problem.
I haven't used this plugin for a while since I switched to IntelliJ. But I did use it in GWT2.8.2 so it should still work fine.

How do I find jars?

I am using eclipse in Windows and a simple JSF example from the book Java EE7 Recipes. I cannot find the following jars: "javax.enterprisse.context.RequestScoped" and "javax.faces.bean.ManagedBean". I have searched for the files both in my pc and the net with no luck. Is there a general way to find the correct .jar files?
There are loads of sites available on web to find jars for a given class. Some popular sites are Help4J, GrepCode, findJar etc. It comes handy for developers.
I recommend you to install Netbeans with JavaEE Bundle for rapidly develop Java EE Apps because the whole infrastructure is provided. https://netbeans.org/downloads/
Thanks everyone for providing input. I found a download for javax.enterprise.context.RequestScoped. I found that when you type "javax.enterprise.context.RequestScoped download" in google it brings you to a download site. That's all that was needed.

how to create a gwt mobile project with eclipse?

does somebody know how to create a gwt-mobile project with eclipse?
i would like to program a mobile web app with gwt-mobile and maybe a little bit later with the gwt next interface framework. i have never made a mobile web app and i dont know how to do it. there is no tutorial how to install everything or rather how to create a mobile web project with gwt mobile on eclipse. i would like to start with coding but i dont know how to install everything.
Please help!
Its Very Simple,
Just Download the JAR File from here,
https://github.com/dennisjzh/GwtMobile/downloads
Create a new GWT Project.
Add this Jar to the Project Build path.
Start Working with the Library
I hope you know how to develop an app when you have a JAR Library available....

building development environment for GWT with JBoss

I am using eclipse IDE and want to build up a development environment for creating an app.
I have an EJB module on Jboss5 and would like to add a GWT project.
I could see that GWT during development is executed on it's development host mode, but the problem is that in this case I can not local EJB services deployed on my JBoss.
Is there anyway to overcome this challenge? how can I use the eclipse along with JBoss to develop, run and debug GWT application? I don't mind using ANT script in order to compile and deploy on JBoss, just need to know if this is possible (Also to debug the GWT application).
Thanks in advance.
Best regards.
There is a sample setup to use JBoss Tools with GWT and GWT Plugin. http://community.jboss.org/wiki/UseJBossToolsWithGoogleGWTPlugin
Strelok's sample page now recommends following the guidelines for creating a GWT project using a general Eclipse Web Tool Project approach.
https://community.jboss.org/wiki/CreateGWTProjectsWithJBossToolsAndEclipseWTP

GWT integration in existing Java EE application

I am new to GWT. I have developed a GWT application in version-1.6.4 and it is working fine. Now I want to integrate with that project in existing Java EE application. I don't know how to go ahead.
Where to copy the GWT source code in this existing Java EE application? I am also using RPC in GWT.
Can anyone provide help on this?
GWT is just a set of javascript and HTML files, so the most basic form of integration is just to put them in a folder in the same place your as your web pages go.
One step up from there would be to integrate the gwt Compiler in with your build process. If you use Netbeans there is a good plugin called GWT4NB that will handle all of this process for you, so that when you build the WAR of your project it will build the GWT portions of it as well. There would probably be something similar for Eclipse. You could also do all this by hand using maven or ant.
You would tell the compiler where you want it to put the generated files, which again, would be in the same location you put your web pages for your WAR project. The RPC side of it will still work just fine no matter where you put the files.