Little issue with JDeveloper & Vaadin - java

I have the followinf issue in running Vaadin in JDeveloper. I opened NetBeans and install the corresponding plug-in and ran the example and it worked all ok. So then, I copy the same project structure to a JDeveloper project but, when I try to run the project I am asked to set a "Default Run Target" which I don't know how to do... The starting point should be Vaadin Servlet but how to do If I am ask to select a file...
Hope someone knows how to solve this... Cheers from Argentina...

Instead of hitting run on your project - select a specific page in your application that you want to run in the application navigator, right click on it and choose run.
Or just select a specific JSF/JSP/Servlet that you want to run when prompted.

Related

Netbeans won't display web project in Projects Tab

I'm running NetBeans 7.3 on Ubuntu 12.10. I'm taking a course in Java Web Development, so I have a project called jsage8 that contains my work for the course. Previously this project was displayed in the Projects tab just fine, but now opening the project doesn't do anything. It just says "No Project Open" when I click to open it in the Open Project menu. It will however open a normal Java Project folder that isn't a web based project. Currently there's only an index.jps, a .html file, and a .css file in the project, is it not displaying because there's no .java files present?
Feeling a bit helpless here and I can't seem to google anything that addresses this specific issue so I'm wondering if I've just done something wrong?
NOTE: I can navigate to the directory the files in and open them in NetBeans manually, but the projects tab remains blank. I can even click "Run Project" and build the project and have it display in a web browser using my local Tomcat server with no issues also.
NOTE: The jsage8 project also doesn't show up in the "Recent Projects" menu whereas other projects do.
NOTE: I can even right click the index.jsp's file tab once opened in NetBeans and click "Select in Projects" which opens the prompt "Do you want to open project jsage8" I click Ok and nothing happens.
Nevermind, I ran the update for NetBeans and everything seems to be working fine now (even though just restarting it had done nothing). If you're having a problem similar to this try updating NetBeans and see if that fixes your problem.
Do you install fully features which contain Web Development plugin?
I think you forgot it already
Solution for Windows
Locate the project on your pc, once located in the folder-> properties -> security -> edit the permissions-> full control activated -> accept. After that I restarted Apache Netbeans 11.3 and I was able to open my project normally.
My problem was that I couldn't open any web application in apache netbeans.

Configuring angularjs with eclipse IDE

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

Non-existing MySql message error

I have to build a Decision Support System, but dont have much experience in Java. So after I connected to MySql with Eclipse (with Connector/J) eclipse started to mess up my other projects. Now, when i try to run other projects in eclipse (that are not related to MySql, ex. Guessing Game) the following error message apperars:
Launch configuration DocsConnectionPropsHelper references non-existing project MySql connection test.
Can anyone help me to resolve this problem please?
UPDATE. it seems that when i press "RUN" elcipse is not running the project that im working with, but other
Your update indicates the issue is actually running the wrong project. To avoid that you may want to close projects you're not working on (right click them in package explorer and select close).
If you do need multiple projects open then when clicking the run icon (which defaults to re-run whatever was ran last among your open projects) make sure you have open in the editor window something that can be ran (and is from the project you want to run).
Then click the drop down arrow to the right of the icon. This will open up a small menu with options to change your build configurations or how it should run your program (i.e. as an application or on a server).
To solve the problem:
-click right botton on the project package you want to work on (run)
-choose Run As
-choose Run Configurations...
-choose DocsConnectionPropsHelper - if in the Project box you see not correct title just remove it. Also remove anything what is in the Main Class box.
-click Apply
-the best option is to close Eclipse and reopen it to make sure that all the settings were configured
It worked for me. Hopefully it will work for you too.

Unable to run Java program in Eclipse Juno 4.2

I reinstall my Eclipse environment every year when the new version is released. The most recent release - Juno - however, does not work as expected.
Currently, when I try running demos from Oracle, for example, it asks me to select an Ant file to run before compiling. After creating a blank Ant file to bypass the requirement (which I thought was rather dumb, since I don't think TDD is something that should be forced on people), it still refused to run, saying the "Selection could not be launched."
I understand that Juno is an update from the 3.x track to the 4.x track, but this seems a little ridiculous to me. What can or should I do so I can get Eclipse back up and running again?
Just to clarify:
All files in question are on my Eclipse workspace path
I don't do much in the way of Java development, though I know I'll need to do so soon. Hence, my unfamiliarity with the most recent version of Eclipse.
I would like to run my files & projects without Ant files. I know it has something to do with Run configs, but I don't know how to change them.
Here's what I did to run the demo from Eclipse Juno:
Downloaded the project from http://docs.oracle.com/javase/tutorial/uiswing/examples/zipfiles/components-FrameDemoProject.zip (if this is not the correct demo, then please provide the link you're using)
Unzipped it to my projects directory (not my workspace), so that you have:
PROJECTS_DIR/components-FrameDemoProject/src
PROJECTS_DIR/components-FrameDemoProject/nbproject
PROJECTS_DIR/components-FrameDemoProject/build.xml
From Eclipse, File > New > Java Project
List item Uncheck Use default location and navigate to <PROJECTS_DIR>/components-FrameDemoProject
Hit Finish
Drill down to src/components/FrameDemo.java
Right-click on FrameDemo.java and select Run As > Java Application
Let me know if any of these steps give you trouble.
Take a look at you project properties and select the Builders entry. Do you see an Ant Builder entry? Try to select or create a Java Builder entry instead.
I just created a new Java Project in Juno and added the FrameDemo.java source. In my case, the Java Builder was selected as the default for this new project.

Can't get basic Hello World Spring MVC project to work

I downloaded and unzipped STS. I then started following the tutorial here that creates a simple Spring MVC application - http://www.javapassion.com/rebels/spring3_sts/
I go to File->New Spring Template Project->Spring MVC Project->(enter project name & package)->Finish
Then I right-click my project->Run as->Run on Server->Finish
I get the following -
I then opened the pom.xml file, which seems to contain the error, and here is what the error it contains -
So does anybody know what is going wrong and how to fix it?
Its very simple Jim. Don't panic.
Just right click on your project and then in Run As click on Maven Install option and go for some refreshments. When you'll come back after some time. Check your console. If it has stopped that means all your libraries needed to run this sample project is downloaded successfully by maven.
After that again right click on the project and go to Run As and click on Maven Clean that should build your project and create a war file for you. And don't forget to check the console that should say Build Successful.
After this just check your project structure. That should not show any red asteric mark anywhere in project.
And there you go. Now you can run your project successfully.
Hope this helps you.
Cheers.

Categories