I am facing setup issues in my eclipse Kepler on Ubuntu 12.04 on Virtual box.
Firstly i was facing issue same as:
Eclipse Open declaration in Java project
I tried everything mentioned here, but nothing seems to be working for me...
Then I explored some more, and get another error message similar to:
I am getting resource not on the buildpath of the project
As per its 1st answer, 2nd point go to "Java Build Path", I tried going there, but i cannot find any "Java Build Path" section in my project property.
When I click on Project properties, it shows only options given in the following screenshot:
I know this is some easy setup issue, but i am unable to handle it.
The answer is a write-up of the discussion in the comments:
If you are on Ubuntu 12.04 and install Eclipse you could end up with a bare-bones install without the Java Development Tools (JDT).
After installing the package manually via Help -> Install New Software and then searching for Programming Languages / Eclipse Java Development Tools Java development should work.
For maven projects you should use the import Existing Maven Projects instead of importing it as a java project.
Related
I am trying to configure Grails in Netbeans.
Grails version:3.2
Netbeans: 8.2
JDK: 1.8
OS: Windows 10
I have install and configured environment path and other stuffs. I can create and run project from the Command Prompt. But I can not create project from netbeans.
Warning |
Unrecognized flag: non-interactive.
Error |
Specify an application name or use --inplace to create an application in the current directory
This error is showing, to create project from Netbeans. I can run the created project though. I have already added Groovy plugin.
How can I solve this problem?
I don't think you are doing anything incorrectly. I have an environment very similar to yours (Grails version: 3.3.2, Netbeans: 8.2, JDK: 8u151, OS: Windows 10) and I see the same error: Specify an application name or use --inplace...
This is a known issue with NetBeans 8.2 that has already been bug reported; see Bug 258407 - Error when creating a Grails 3.1.x project. The problem has been confirmed to exist in Grails releases 3.1.0 up to 3.1.4, but I see the same issue in 3.3.2, and there is no fix for NetBeans 8.2.
However, I successfully created a Groovy/Grails application using JDK 8u151 with a DEV release of NetBeans which you can download from here: http://bits.netbeans.org/download/trunk/nightly/latest/
Note the caveat that comes with using DEV releases of NetBeans:
These builds are still under development and could contain defects
that lead to data loss. They are meant for evaluation of new features.
As always, be sure to back up your changes if you use these builds on
your production code.
As long as you can you can live with that situation, using a DEV release is your (only) solution for creating Grails 3.x applications in NetBeans.
One final point: unlike NetBeans 8.2, DEV releases of NetBeans support Java 9 as well as Java 8, but don't use Java 9 when creating a Groovy/Grails applications. It won't work for a completely unrelated reason.
I'm using Windows 8 and Grails 3.3.8, but the following worked for me:
Create the project using system command line (I used instructions in this page: how to create grails project through windows command promt).
Import the project to Netbeans 8.2 by clicking on File > Open Project... and selecting the project folder.
This solution works for me (Mac OS)
1) Open de console inside Netbeans
2) Navigate to your GRAILS_HOME/bin
3) Type grails create-app [YOUR_NAME_APP] --profile=web (rest-api, etc)
4) The project must be created at GRAILS_HOME/bin/[YOUR_NAME_APP]
5) Do not try to import into Netbeans instead of it Open the project
6) Start coding!
You can move the folder GRAILS_HOME/bin/[YOUR_NAME_APP] to the Netbeans workspace before open the project.
FYI, I am using netbeans 9 and grails 3.3.8 (dont use 3.3.9, its broken), and it works like a dream. I can create domain classes etc. from the menus in netbeans, run, debug etc. THe only thing I had to do was manually install the grails plugin for netbeans, and configure my grails paths etc. The answer on how to set this up is here: how to open a grails 3.3 app in netbeans 9?
The only thing I cant get to work (and its a bit of a show stopper), is multi-module projects (i.e. a grails app which depends on a grails plugin). I can run them, but netbeans does not recognise any of the imports so there is no code completion and it shows all files are having errors. What a shame, as appart from this, netbeans has very good grails support.
Note, I always create projects on the command line, e.g. "grails create-app myapp ...", then simply use the open project menu in netbeans and it instantly recognises them as grails.
Ensure you have gradle plugin installed for netbeans. Then go to File -> Open Project.
You should see the project shown by netbeans as a gradle project.
My Java specifications: JRE: 1.8_u60, JDK: 1.8_u60
JAVA_HOME is set-up correctly.
I´ve downloaded and installed the latest Eclipse Mars Java SDK (Eclipse Mars.1 / 4.5.1) from the official Eclipse download page and used the installer.
I used the Eclipse update site from e(fx)clipse to install the JavaFX IDE.
As described in the site´s tutorial I should now be able to create FX projects with File > New > Other > JavaFX ...
But unfortunatelly I don´t have any option to create an FX project. There is no sub-section called JavaFX.
How do I set up JFX for Eclipse Mars properly (if my setup does not work at all)? here is one more similar Question asked.
Remove the installed plugin and try installing it through Marketplace.
Edit after the answer was accepted:
Just for clarification, it should also work in the way OP has tried it. Before one tries to troubleshoot why it's not working, it is very convenient to verify that the installation is not working from marketplace either.
Since JavaFX is now on default classpath, you do not need any extra plugin to create a JavaFX application. You can just create a simple Java Project in Eclispe and get started.
But, e(fx)clipse is recommended to install on Eclipse because of the extra features it adds to the IDE.
I just finished installing the e(fx)clipse plugin on my Eclipse Mars to check if your scenario can be reproduced, but unfortunately after installing the plugin & restarting Eclipse, I can create JavaFX projects.
You can either try restarting Eclipse or re-install the plugin again.
As mentioned in previous Question by tomsontom, you can check your status of e(fx)clips bundles. Or you can use All-In-One Download.
I'm trying to install the PMD source code analyser plugin for Eclipse. It's available through Eclipse Market Place, but I'm getting following problem in the phase of installation :
Why am I getting this problem ?
EDIT
I do not have this menu even though I have added the ruleset configuration file
I'm the creator of eclipse-pmd, the plugin you are trying to install. I tried to install it myself just now and it worked without any problems. So I can only guess what could be the problem in your case:
The repository was temporarily not available
Simply try again.
You are using a (very) old version of Eclipse
The plugin requires Eclipse Indigo (3.7) or later. I tried to install eclipse-pmd with Indigo and Luna just now and it worked both times.
Run Eclipse with Java 7
You need to run Eclipse with a JRE 7 or later. There have been problems during the installation with people using an older JRE in the past. However they could finish the installation but Eclipse silently refused to load the plugin (this has been fixed a few versions ago though).
Proxy configuration
Although unlikely as you came this far, please open the proxy configuration in Eclipse and check if the settings are correct and the domain is accessible.
If you tried everything I suggested above and are still not able to install the plugin, please head over to the project's Github page and open an issue.
I tried to install adt 23.3.0 in Eclipse Kepler, but I have a problem. I tried every thing such as run as administrator or uncheck contact all update sites ... But I still have the same problem. I use Windows 8.1 and the error is:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 22.3.0.v201310242005-887826
(com.android.ide.eclipse.adt.feature.group 22.3.0.v201310242005-887826)
Missing requirement: Android Development Tools 22.3.0.v201310242005-887826
(com.android.ide.eclipse.adt.feature.group 22.3.0.v201310242005-887826) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
I'm not exactly positive about this but since this question has received very little attention I figured any answer is better than no answer.
From what my understanding it is done differently in Eclipse Juno which you do from within Eclipse.
Instead you have to download the Android SDK separately and then set the SDK path in preferences...
window>preferences>Android>sdk location.
Make sure to create a folder in the same directory as Eclipse so Eclipse can easily locate the sdk. Hopefully this helps
I installed Eclipse IDE for C/C++ Linux Developers to write some cpp codes. As I understood it, no matter which version of Eclipse I use, it always can be used to writing some java source codes.
I did this:
File->New>Java Project->...
Wrote a simple "hello world". I have confidence that my hello world is correct.
When I wrote my code, Everything went well.
But when I right clicked my new project, I found there was no "Run as","Debug as"
Press Ctrl+F11. It said "the selection cannot be launched, and there are no recent launches"
Run->Run Configurations. I double clicked Java Application. It said "No tab group defined for launch configuration type org.eclipse.jdt.launching.localJavaApplication"
What should I do?
How can I run my java applications?
Quite contrary to what you assume, eclipse isn't a Java IDE with some other addons. Eclipse is just a platform. As the package comparison shows, the C/C++ package doesn't come with the Java development tools.
Make sure you have correct eclipse version is downloaded? There will be separate eclipse version available for Eclipse for java.
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigor
Hope this help.
If you have the JDT installed, then make sure you are in the Java perspective. Either:
Window->Open Perspective->Java (default)
Use the perspective switching tab, usually the top-right of your code editor
You can install the JDT, if you don't have it by using:
Help->Install New Software...
Try to install follow this link http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigor if it's work. i think your eclipsec/c++ may be have a problems while install java. You can reinstall or using eclipse for java.