How to install or set up Ext JS 5 or 6 in Eclipse Luna or Juno... Need detailed process to make Ext JS work - eclipse

I have found a video link with Ext JS 4 set up. But I also found two different videos on youtube... One explained with help of pre installed XAMPP and the other video using spket IDE plugin. So Iam bit confused. Whats the difference? Can I use Ext JS without installing XAMPP ( I already have tomcat server integrated with my Eclipse ). Please help me with step by step process to set up Ext JS 5 or 6 on my eclipse.

Even I recently started with extjs 5 and 6, it was a bit of a pain to understand the complete folder structure but Its not that though.
Yes you can use it with a pre-installed Apache Tomcat.
Create a normal dynamic web project, in its WebContent folder add the required extjs dependencies(ex. ext-all.js, etc)
Although i would suggest you to maintain the heirarchy while copying the dependencies.
And now all remains is for you to create a html or jsp file and start coding and giving the proper path for your dependencies.

The two videos you mentioned seem to address two compeltely different issues.
You need a server application to run your ExtJs applications properly, and you need IDE integration to be able to use Inellisense/Autocomplete while writing code in your IDE.
You need both:
1) Use your tomcat server to run the application.
2) Spket is the best option for Eclipse Integration I ever used.I I highly recommend it.

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 to run ExtJS 6 application in eclipse with tomcat server

I have generated Extjs6 app by sencha cmd, I able to run the app by sencha cmd but when I try to copy the same app into eclipse it takes so much time to build and it gives an error after some time.
The problem with bring an ExtJS application into Eclipse is that Eclipse will try to parse all of the ExtJs source code as well. This gets quite time-consuming, and reduces the effectiveness of things such as JavaScript warnings.
One alternative is create a Sencha workspace first, and then create applications inside the workspace. You can then import the application without including the entire ExtJS library.
You can then "deploy" the workspace to a Tomcat server in Eclipse by adding the workspace as an external web directory

How to run/debug java web service project in eclipse

I have a Java Web Service project which was just handed over to me by a colleague who just resigned (no one is assisting me in my new company). Im new to Java (J2EE) and my background is .Net + frontend + azure so I am pretty much very confused with setting up and running the java project. Also, Since my background is .Net Im referencing everything with how things work in Visual Studio from running a project, setting up a project to setting up and debugging a WCF project which I realized now is very different from eclipse + java.
I would really appreciate if someone could explain to me how I can run this project which is supposedly a java web service (as I was told)?
First I have a project that is like this:
Im assuming that the project boxed as blue is the webservice (and the rest are just libraries)? Is this correct? if so how do I run and debug the project using eclipse
Second when I click on debug as -> debug on server this is all I see:
Another colleague told me to install JBOSS (I haven't installed a server in eclipse) because that is what they used. Is there good documentation (step-by-step guide) on how to install JBOSS to run in eclipse. Im assuming that JBOSS + eclipse is like IIS express + Visual studio. Are there also other alternatives to JBOSS + eclipse like perhaps tomcat + ecplise that I can configure.
I really really find it hard to setup the java web service project in eclipse I have little to no prior experience with java j2ee programming especially with web services so any clarifications with my questions would be much appreciated. To sum up:
How would I really know that the project is a java webservice?
If so, how do I run the project and host the project using debugging in eclipse with tomcat or jboss?
I would appreciate if anyone can point me to the right direction of figuring out the source code
From here we can only guide you, you will have to go through some tutorials to understand how java projects work.
Your project is a webservice project according to your web.xml file because its having context params for rest.
the context param sets a front url to your webservice which in this case is gametime.
Check these tutorials and you will understand how it works
http://www.mkyong.com/tutorials/jax-rs-tutorials/
Create simple examples given in the above tutorial and then you can execute your's program
Jboss is a application server which we use to run our app.
You can install jboss in eclipse or you can use it externally also.
To install eclipse and jboss you can follow the link
http://theopentutorials.com/tutorials/java-ee/installing-jboss-tools-in-eclipse/
The other option is to download eclipse and jboss seperately
and use them.
Go to jbosshome/bin
If you download both of them seperately
then in that case for jboss
Invoke the add-user.sh or add-user.bat script. ...
Choose to add a Management user. ...
Choose the realm for the user. ...
Enter the desired username and password. ...
Choose whether the user represents a remote JBoss Enterprise Application Platform 6 server instance. ...
Enter additional users. ...
Create users non-interactively.
After this go to eclipse and follow steps of below link to add jboss to eclipse
http://www.mastertheboss.com/eclipse/jboss-eclipse/jboss-and-eclipse
A Java web application among other things has a predefined directory structure including folders named WEB-INF, WEB-CONTENT etc.
On how to deploy a web application to Tomcat via Eclipse you can follow the steps in this tutorial.

How can I invoke GWT 2.6.1 from GWT 1.5.3

I have an old project developed using GWT 1.5.3, which I run using "com.google.gwt.dev.GWTCompiler" or by selecting the module.gwt.xml and say "Run as Hosted Mode".
Now I have a requirement to create a new module under the same project using GWT 2.6.1, to run this I need to use "com.google.gwt.dev.Compiler". I created a separate module and it works fine when it is ran alone.
Now I have to locally run the GWT 1.5 app from which I need to invoke the GWT 2.6 module.
Please suggest me how do I achieve this?
Note : Both of these 2 modules have separate module.gwt.xml and .html files
I am not sure, but the only way I see would be a second hostpage. Then you could create a link (anchor) from the old application to the new one.
But, I think the better solution would be to upgrade the old project to GWT (2.7 is the current version)

Cannot find OpenPortal Portlet Container 2.x when creating a new server runtime environment in eclipse

I just started learning portlet and got stuck in the first place. I have installed JavaEE 6 SDK, Eclipse Helios and GlassFish Server 3.0.1. I also successfully configured OpenPortal Portlet Container (OPC) for GlassFish by running command:
java -jar portlet-container-configurator.jar
The problem come up when I wanted to create a new server runtime environment of OPC, there was no "OpenPortal Portlet Container 2.x" node like the tutorial said. I googled and found that I needed to install Eclipse Portal Pack but the link was dead.
Any suggestion, please?
Best Regard.
If you want to develop portlets, I strongly recommend downloading Apache Pluto instead of using the open portlet container; you can download a version of Tomcat bundled with Pluto from their site: http://portals.apache.org/pluto
Actually, Pluto has a few quirks that you need to get past (for example, it wants you to run an 'assembly' step to add some entries to your web.xml) but once you do it is probably the best way. You could also try Liferay or JBoss' GateIn for development, but if you are ultimately targeting a vendor supplied platform like WebSphere, you might find that these actually have features that aren't as portable, whereas Pluto is really just a simple implementation of the portlet spec.
I have found the .jar file on Internet. Thanks for watching.