What file should I run in order to open and see how my Play project works?
Here is a screen shot of my project opened in Intellij Idea:
Please have a look.
For more information you should read - Getting Started with Play 2.x
According to documentation:
A play application has several entry points, one for each URL. We call
these methods 'action' methods. Action methods are defined in special
classes that we call 'controllers'
For running Play Framework applications with Intellij Idea tools you need to download and install Scala plugin.
Then press the down arrow in you right top corner -> Edit Configurations -> + -> Play 2 App -> select play module
You can run you play-app via command line executing play run under the application root directory.
Userful resources:
Configuring Intellij Idea for runnin Play-application
Quick quide to starting up the Play project
Related
I am trying to get OIDC working with Java Spring Boot. Specifically the example app
here.
I am a newbie to this stuff, so can anyone give me brief instructions on how to run that app?
I have it in Eclipse (with STS4) as existing maven project (as per these instructions). When I run it I pick 'Java application' which gives me some examples including version, Licence, roller etc etc. I do not know which, if any, of these is correct, nor how do I pass parameters etc. Any pointers are gratefully received.
I think example code is not Spring boot app. (just Spring web app) You can run it via Eclipse / Tomcat.
If you review below link you can see details in section 6;
Eclipse allows us to embed servers to add web project deployment in the normal workflow without navigating away from the IDE
Check this out: tomcat-deploy-war
From the project overview list, pick the Application class. Right-click on it to open the context menu and choose "Run as -> Spring Boot App". Have fun.
In eclipse Project Explorer, right click the project name -> select "Run As" -> "Maven Build..."
In the goals, enter spring-boot:run
then click Run button.
In STS right click on Project > Run as > Spring Boot App
If you are not getting any option then just run the main method which is in the class SampleSpringBootApplication. Spring Boot will take care of all the rest (starting the embedded tomcat which will host your sample application).
I want to make a Eclipse plugin where I can run and/or debug a project as Java Application but with some customization.
The project application instantiates an engine which I want to access with my own "debugger application". I imagine it would work similar to the default eclipse debugger.
However I only find articles about launch configurations and not how to actually launch the program. The closest I got is this which doesn't have any proper answer.
I also tried to search the Eclipse sourcecode to see if I could find the right method, but there are so many repositories that it's impossible to find what you need.
So what I want to know is how to customize the "Run as Java application" functionality. How can i start the project application in one thread and in another thread start my own application with a reference to the project application?
Hope you clever people of the world have an awesome answer!
I am currently trying to run a test application based on the Play framework. The project was created using the command line tool for play and then converted into an eclipse project by using
play eclipse
The documentation says that this step also created a run configuration to run the code from eclipse.
But there is no configuration created.
After pressing run, eclipse is looking for a main method that is not existing.
I also tried to launch the project from the command line using play ~run.
But I have included and imported a class from another project and the compiler always ends with an error saying the imported package could not be found.
Thanks for your help.
play eclipse (or play eclipsify for previous versions) is only so that you can import your project in Eclipse and use the debugger, get auto-complete, etc. You're still meant to run the application from the console though.
As to the second part of your question you'd need to provide more details. What exactly do you mean by, "I have included and imported a class from another project"?
The solution for the problem was, that external libraries have to be included in the /lib folder of the project as .jar-Archive. The folder was not auto-created. All libraries in this folder will be added to the build-path of play automatically.
I just wanted to spend half an hour to try out spring roo - but failed miserably.
The Spring roo project page on spring.io simply tells to add a maven dependency. But I'm not aware of any public maven repository providing it
The Project page on github includes all the sources, but the readme starts with
These instructions are aimed at experienced developers looking to
develop Spring Roo itself. If you are new to Spring Roo [..] we recommend that you visit
the Spring Roo home page and download an official release: http://www.springsource.org/roo
Needless to say, this url points back to the github page..
Is there any pain-free way of installing spring roo? (let's assume Windows 7, JDK 1.7)
I know that in the time of writing this I could have installed it from source - but I think a rapid prototyping framework should do better.
Adding the jar to your project is not enough, because you need the Roo shell/console to run while you are developing your project.
Its quite simple using the Spring IDE/Roo plugin. You can download the Spring Source Tool Suite or add the update site (same link at the bottom) to your Eclipse version (I did not test the update site so far).
In your IDE click File -> New -> Spring Roo Project. Be sure to set the appropriate top level package here, i.e. com.yourdomain.projectname (thats where roo will create its artifacts; like a home directory in Linux it can be abbreviated by typing ~ in the roo console). Select "war" as the packaging provider.
Unfortunately the project might not get the "Dynamic web project" facade and not all maven related source folders might have been created (seems to be a bug?). In that case right click the project name -> preferences -> Project Facets -> Dynamic Web Project 3.0. Be sure to click the "Further conf..." link at the bottom and insert 'src/main/webapp' as the content directory.
After that right click your project again -> Spring Tools -> Open Roo shell. And wait for the console to load. Then you can finally start with the "quick" start tutorial at line four, typing in 'hint' in the console. Also try crtl+space for content completion.
Have you tried this repository : http://spring-roo-repository.springsource.org/ ?
You can download the .zip file from here http://docs.spring.io/downloads/nightly/snapshot-download.php?project=ROO
Source: http://forum.spring.io/forum/spring-projects/roo/722228-where-to-download-spring-roo-command-line-shell-in-zip
I want to start using AngularJs and Java Spring for development purpose.I am using Eclipse as IDE . I want to configure my Eclipse to have these frameworks working seamlessly.
I know I may be asking too much,but trust me I have done much research on my part and you guys are my last resort.Any help would be much appreciated.
You'd first wanna make sure you have the JSDT installed.
Next thing is to install some dedicated tools for the job, so check out AngularJS Eclipse Tools. The AngularJS Eclipse Templates might be of help, too, and here's a visual guide written for it to get you started.
Also see the AngularJS Eclipse getting started page.
Since this answer had been posted, the AngularJS Eclipse plugin was released, as other answers stated. You might wanna check it out first.
Install JavaScript Development Tools (JSDT) and AngularJS Eclipse plug-in in eclipse from Eclipse Marketplace or Update site angularjs-eclipse-0.5.0,
Right Click on your project --> Configure --> Convert to Angularjs Project (as shown below)
Now you can see the Angularjs tags available as shown below.
.
Make sure the project is extracted on your hard disk.
In Eclipse go to the menu: File->New->Project.
Select "General->Project" and click on the next button.
Enter the project name in the "Project name:" field
Disable "Use default location" Click on the "Browse ..." button and select the folder that contains the project (the one from step 1)
Click on the "Finish" button
Right-click with the mouse on you're new project and click "Configure->Convert to AngularJS Project.."
Enable you're project goodies and click on the "OK" button.
Netbeans 8.0 (beta at the time of this post) has Angular support as well as HTML5 support.
Check out this Oracle article: https://blogs.oracle.com/geertjan/entry/integrated_angularjs_development
Since these previous answers above, there is now a release of an Eclipse Plugin to assist with development using AngularJS:
https://marketplace.eclipse.org/content/angularjs-eclipse
https://github.com/angelozerr/angularjs-eclipse/wiki/Installation---Update-Site (take a look around the other Wiki pages for information on features)
The release at the time of the answer is 0.1.0.
Please also checkout JSDT (http://www.eclipse.org/webtools/jsdt/) and also Eclipse VJET (http://eclipse.org/vjet/). The VJET project appears to be an attempt to provide better feature sets to the editor without being encumbered by the JSDT project (open source politics at play I guess).
Download angular js from this link and add as new software in eclipse
http://oss.opensagres.fr/angularjs-eclipse/0.6.0/
Configuration worked with Eclipse Mars 4.5 version.
1) Install Eclipse Mars 4.5 from
https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2
This comes with Tern and embedded Node.js server
2) Install AngularJS Eclipse plugin from Eclipse Marketplace
3) Configure node.js server to the embedded nodejs server within Eclipse (found in the eclipse plugins folder) at Windows-> Preferences -> JavaScript -> Tern -> Server -> node.js. No extra configurations are required.
4) Test configuration in a html or javascript file.
https://github.com/angelozerr/angularjs-eclipse
With current Angular 4 and 5 versions, there is an IDE for that.
Go to eclipse market place any search for 'Angular'. You will see the IDE and install it.
After that restart eclipse and follow the welcome messages to choose preferences.
How to start using eclipse with angular projects?
Considering you already have angular project and you want to import it into eclipse.
go to file > import > choose Angular Project
and It would be better to have your projects in a separate working set so that you will not confuse it with other kind of (like java)projects.
With Angular IDE You will have a terminal window too.
To open this type terminal in eclipse search box(quick access) on the top right corner.
Hi Guys if u are using angular plugin in eclipse that time is plugin is limited periods after that if u want to used this plugin then u pay it so i suggest to you used webstrome and visual code ide that are very easy and comfort to used so take care if u start and developed a angular app using eclipse