I am trying to install the Play! framework onto my OSX Mavericks laptop. Everything installs and works fine using the default install paths until I try to convert a new application to an eclipse project. I can convert Scala projects just fine. But when I try to convert a Java application to an eclipse project I get the following error from the Play! console:
[TestAppOne] $ eclipse
[info] About to create Eclipse project files for your project(s).
[info] Compiling 2 Scala sources and 1 Java source to /Users/mcd/play/TestAppOne/target/scala-2.10/classes...
[error] could not find scala-library.jar
[error] Use 'last' for the full log.
I can see the scala-library.jar (2.10.3) and I even added it to /etc/paths; no luck. I am using Java 1.7 and Kepler eclipse and Play 2.2.2-RC3. Any suggestions to help convert the Play! project to eclipse?
try to remove everything redundant from path, leave only java and play home (http://www.playframework.com/documentation/2.0/Installing) there and "replay" your project
Is there any particular reason that you are using RC instead of stable release?
Play 2.2.2-RC3 has reported issue about this problem 3 days ago, check on Github or similar question posted few hours ago on the StackOverflow
(FYI, just tested: sample Play 2.2.1 project eclipsied on Mavericks without any problem, unfortunately I have no Eclipse installed, but assume, that there should not be any problems to open it there, Idea works like a charm)
Related
I am currently trying to migrate a Vaadin 8 gradle project to Vaadin 14. When I package the project for production, it works fine, and the Vaadin app runs. When I attempt to run the project in eclipse, I get the following error:
Loading failed for the <script> with source “http://localhost:31415/VAADIN/static/client/client-4C23589935A74206212F474A719FC41C.cache.js”.
I saw a lot of other posts with similar questions, but none had a sufficient resolution. Nothing I have tried so far from Vaadin forums or github has worked.
Edit: I think I figured out part of the problem. For some reason, jetty is looking for the VAADIN folder in the bin directory within my eclipse project. It should first be looking in the classpath. This works in the compiled production version, but not in the development version of my project
I work on java project in eclipse using javafx and java-9 but i got an error:
Error: JavaFX runtime components are missing, and are required to run this application
I have installed:
java-9-openjdk.x86_64
java-9-openjdk-devel-9.0.4.11-4.fc27.x86_64
openjfx-8.0.152-12.b04.fc27.x86_64
openjfx-devel-8.0.152-12.b04.fc27.x86_64
I tried removing and installing these libs again using yum and also from .rpm packages but it didn't solve that problem.
In eclipse I specified build path in project like on screen here:
Eclipse Build Path
I tried to fix it by adding external jars: ant-java.jar, javafx-mx.jar, packager.jar but this didn't solve the issue.
My version of eclipse is Eclipse Oxygen.2 Release (4.7.2) and i got e(fx)clipse 3.0.0 . My kernel is: Linux 4.15.9-300.fc27.x86_64 I have no problem on Win 10 but i really want to work on my Fedora. I spent huge amount of time but I didn't find the solution.
I am not a Linux user but I wonder how java-9... and openjfx-8... are supposed to go together. They are just incompatible versions. You will have to find a Java distro which already contains JavaFX like the Oracle JDKs.
Update:
You find the latest version including JavaFX here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html
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.
I just installed Eclipse EE Juno (4.2) and a whole slew of plugins for it. I am now attempting to install the Google plugin (GAE and GWT) and am getting an error when adding the update site through Juno's Install new software window:
Name: Google-Plugin
Location: http://dl.google.com/eclipse/plugin/4.2
When I try to enter this I get:
Could not find http://dl.google.com/eclipse/plugin/4.2
I see this question from a few months ago. Although I am having a very similar problem, I think I have a different problem altogether.
When I change the Location to http://dl.google.com/eclipse/plugin/3.7, I get the same error (except with 3.7 appended on the end of the error message instead of 4.2). I definitely have Internet access (how else would I be posting this question?!) so that's not the issue. If this was only working for the 4.2 plugin, I would happily try the "workaround" mentioned in the other post, or even step back down to Eclipse 3.7 (I have to have this plugin!) until 4.2 was working. But the fact that it's not even working for 3.7 tells me that something else is awrye here. Thanks in advance!
Edit:
Just to mess around with things, I have downloaded Indigo (3.7) and immediately attempted to install the Google-Eclipse plugin. I entered the following for my update site:
http://dl.google.com/eclipse/plugin/3.7
And received a nasty error:
Artifact not found: http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml.
Artifact not found: http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml.
http://dl.google.com/eclipse/plugin/3.7/compositeContent.xml
Am I going crazy here?!?! I've installed my fair share of Eclipse plugins and never had this much trouble. Especially from Google. And I know its not my Internet connection or my Eclipse instance because before I attempted to install the Google plugin, I installed Subversive, IvyDE and EclEmma...
It was also broken for me a little while ago, but seems to be working now. Maybe the site was down for a bit?
You can try installing the plugin from archive as described in the link:
https://developers.google.com/eclipse/docs/install-from-zip
Basically what you are doing is, you download the plugin as a zip(archive) and browse this archive instead of update site, during the plugin installation.
I wanna know how can I add Java Template Project in Xcode 4.
I'm working with Eclipse and it's really fine but i want to write Java program in Xcode.
Thanks for helping. ;)
Java is not a first class citizen of Xcode anymore, so you should in my opinion stay with Eclipse.
I realise this question is 6 years old, but I have a similar problem and found what seems an easy solution. I have an old Java project (2008-9) which I maintain but has been dormant. As I prefer to keep it into Xcode I transferred the whole project (sources, project files and all paraphernalia) to a new development machine running el Capitan with Xcode 7.3.1. I opened the project (which was still in 3.1 version) with it, and tried to build it. It failed as Ant was missing. So I downloaded Ant (version 1.10.1) and copied its bin and lib directories under /usr/local/ant, then I changed the project external build tool configuration (under project, go to Info, and you'll see that parameter) which was set to /usr/bin/ant and set it to /usr/local/ant/bin/ant or wherever you put it. Build again and this time it worked.