I am new to mac(OS X). I have installed Java and other mandatory setting as environment path" etc. are done. But I am not able to launch workspace using Eclipse.
Steps done:
Downloaded Eclipse (tried with latest and the slightly older one : neon)
Unzipped the launcher
Clicked on the launcher and done the necessary steps
till the step , it ask to set the workspace, everything works fine. But after choosing or keeping the default workspace, following error appears.
The log file created is empty.
You need to use Eclipse Oxygen.1a (4.7.1a) because you probably are using Java 9 (the recent Eclipse Installer is based on Oxygen.1a, which explains why the installer works in contrast to your Eclipse IDE).
If this does not work, try to start Eclipse with the option -clean or open a new workspace (-data ...).
I am having problem running my grails application from grails GGTS IDE.
I had to format my harddisk so i had to reinstall all new software. I had a copy of Groovy/Grails Tool Suite. I didn't need to install it since it was stand alone so i just ran it. Since i didn't have java installed i installed jdk 1.8. so now in the path C:\Program Files (x86)\Java i could see both jdk1.8.0_65 folder and jre1.8.0_65 folder.
Now i imported a git project by doing git clone from ggts. Now the final thing i did was that i went to window > Preferences. There in Java > Installed JREs in the right side i clicked on Add.. chose standard VM and and clicked on Directory ... for JRE home and then located the jdk location. c:\program files(x86)\java\jdk1.8.0_65.
After following these steps i get the following error message.
"The project was not built since its build path is incomplete. Cannot find the class file for groovy.lang.GroovyObject. Fix the build path then try building this project"
am i missing any other configurations? if so, please let me know. I appreciate your help!
Note: One thing i am noting is that when i go to properties of the project and select java build path and select libraries and there is JRE System Library [jdk1.8.0_65]. I expand it and there in Native library location i notice it has (None). Does this have anything to do with the errors i am getting?
Did you try to right-click on project and "Grails Tool -> Refresh Dependencies"?
It's also possible to execute it from command line (confirmed on Ubuntu):
grails compile --non-interactive --refresh-dependencies
I'm trying to make a libgdx Android project work (= build) on Eclipse. It's the project from the book "Libgdx Game Development" : I just opened the GDX set up GUI and created a project named "demo".
I get two errors about GWT in the "Problems" Tab, in the demo-html project :
The project was not built since its build path is incomplete. Cannot find the class file for com.google.gwt.core.client.EntryPoint. Fix the build path then try building this project
2.The type com.google.gwt.core.client.EntryPoint cannot be resolved. It is indirectly referenced from required .class files
I have GWT Designer for GPE, Google Plugin for Eclipse and SDKS installed in the plug-in tab (from the Help > Install new Software), so I have no idea why it doesn't work.
All the questions that had those error messages were resolved by downloading the plug-ins I quoted, but in my case, they are downloaded and installed (can't re-install them since it tells me it is already installed) and I hit also already checked for updates.
Thanks in advance.
I am using play framework 1.2.4,and also trying 2.2.1.
In 1.2.4,I created a new play framework based project by using
play new wonder
then I entered its directory,and ran this command
play eclipsify
It was done successfully.And I imported it to eclipse,it worked,but was not pretty good,you will see why
(I am new here,and I don't have 10 reputation to post images,so I post images to another website,link is follow)
http://imgur.com/P3J6zSy
(Here is another screenshot that shows the result of what I have done in Ubuntu 12.04 with play-2.2.1
http://imgur.com/zkDTtvY
)
The related jars were just listed in the root directory,and it was so long.
First,how can I make it not list in that way?
Second,as what you see,these jars were linked to this project rather than copied to the sub-directory of this project.
If I want to make them copied to the sub-directory of this project when generating eclipse project,what should I do?
ps:
When I trying 2.2.1,there are not much different.If you know how to do in any one of these 2 versions,just tell me,thanks a lot!
Instructions for importing a new Play Java project into Eclipse, tested with Play Framework 2.2.1 and Eclipse Standard 4.3.1:
Download and install Eclipse.
Create a new Play project. When asked, select the Java language:
$ play new myapp
Change to the new application's directory:
$ cd myapp
Generate the Eclipse project:
Without including library source code:
$ play eclipse
Including library source code (may take a long time for downloads and a few sources might be missing):
$ play "eclipse with-source=true"
Import the project into your Eclipse Workspace with File | Import | General | Existing Projects into Workspace.
Result:
For more information see Setting up your preferred IDE.
Well, the post is answered already but these commands are not supported in new versions of play.
For users who are using new versions of play, here is the step by step guide for creation and import of play project in eclipse:
**Prerequisites:** java 1.8
type in terminal
java -version
to check if java is installed.
you should see something like:
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
If it is not present then you can download from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html To Create a new application using SBT you must have sbt 0.13.13 or higher installed (download from here https://www.scala-sbt.org/)
open terminal and type following command to generate java project.
sbt new playframework/play-java-seed.g8
if you are on windows platform use sbt.bat instead of sbt
sbt.bat new playframework/play-java-seed.g8
use following command for a scala project:
sbt new playframework/play-scala-seed.g8
sbt.bat new playframework/play-scala-seed.g8
After that, use
sbt run
and then go to http://localhost:9000 to see the running server.
Now, you have successfully created your scala or java project.
Next step is importing it to an IDE. Lets' import it to eclipse. If your project contain mixed code java + scala then you have to download scala ide plugin to you eclipse. open eclipse -> Help ->Install new software -> click Add -> Add repository
Name: scala ide
Location : http://download.scala-ide.org/sdk/lithium/e47/scala212/stable/site
click Add.
After successfully adding the scala ide add following dependency in your project/plugins.sbt file.
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.2.2")
You must compile your project before running the eclipse command. You can force compilation to happen when the eclipse command is run by adding the following setting in build.sbt:
// Compile the project before generating Eclipse files, so that generated .scala or .class files for views and routes are present
EclipseKeys.preTasks := Seq(compile in Compile, compile in Test)
After compilation of project go to your project folder and type
$sbt eclipse
The plug-in generates the two files Eclipse needs, the .classpath and .project files.
Once these files are generated, go to Eclipse and follow the usual steps to import a project into the Eclipse workspace: File → Import → Existing Projects into Workspace. Your project will then appear in the Eclipse Navigator, Project Explorer, Package Explorer, and other views.
I am not sure you got the answer of this question or not, for all those people who will face similar issue, after following all step given on official documentation, still i face same issue described in question, solution is that you need to open Scala perspective in eclipse by default it is J2EE
I recently just installed downloaded and installed some updates in the android sdk to get access to some features and now when I have restarted eclipse all the projects have errors!!
Theres a small error at the start of package and the only resolutions it suggests is reconfigure build path, here is a picture of the carnage. Does anyone know how I can resolve this?
If java.util is an offending import, you haven't got your JRE configured properly or either the build or the IDE are in a kind of corrupted state. Since you already used the Clean command I'm going for a more complex issue.
Check your project's configuration and make sure you're not still referencing your old Java implementation. If by installing updates you mean that you downloaded a new version, installed it and then deleted the one you've been using so far, then the IDE might not be finding the JRE system library your project has currently configured.
Try right clicking your project > Build Path > Configure build path, then check if your current JRE system library is unbound. If so, you'll have to configure it again on the Libraries tab by using Add Library > JRE System Library.