I try to test the EMF API and work with EPackage, EClass,...
To do this I need to import org.eclipse.emf.Ecore if I am not mistaken.
The problem is that I get this org.eclipse cant' be resolved problem.
Itried many solution including installing EMFplugging, plugin devellopement environment, downloading and adding org.eclipse.emf jars to my build path (downloaded at http://www.java2s.com/Code/Jar/o/Downloadorgeclipseemf260v201201231045jar.htm)
Do you know any tip to have an easy and quick solution (maybe an eclipse release or the correct jar file)?
Thanks
Use a package with (or install) EMF like https://www.eclipse.org/downloads/packages/release/2019-06/r/eclipse-modeling-tools and make sure to create "plug-in" projects where in the MANIFEST, tab 'dependencies' you have the plug-in containing e.g. org.eclipse.emf.ecore in there.
Related
I loaded a project on Spring-tool Suite but I realized that it does not correct the errors. Going to see Properties I realized that all the parameters related to the JavaBuilder that I have in the other loaded projects were missing. I think it's a Jdk problem, but I don't know how to set everything up or how to reset the project in order to have the error corrected.
thanks to anyone who can help me!
I think you need to delete the .metadata folder in your workspace.
The problem was Spring-Tool itself which had a bug where it didn't show any kind of error. There are two ways to get around the problem: delete the project from Spring-boot, delete the Workspace and reload everything. In case it is also recommended to download Spring-boot tool Suite again. In the second case it could be an error importing the project, try to import it to Intellij or another IDEE and see if you have the same problems. If you have the same problems it is a problem of loading the java libraries. To solve it you should open another project where you have no problems and once opened, go to FILE-> NEW-> IMPORT PROJECT and import your project.
Got a new pc, and trying to import an existing maven project into IDEA (version 2018.3), with following steps:
import -> import project from external model -> maven
But, after importing, there is no src dir, I have tried many times, each time delete .idea/ before re-import.
I remember it did work before, but not this time.
And, I can compile the project successfully with mvn compile, also Eclipse could import it correctly.
Any idea what's wrong, and how to fix it?
First check if your intelliJ is collecting POM dependencies, on large projects it can go for hours. During collecting dependencies you will see no folders, but only root files.
If the above is not the case, right click on white project area/Maven/Reimport.
If you don't see it or that doesn't fix the problem, go to File->Project Structure... then choose Modules and check if you have duplicated modules and remove them.
I've addressed this problem by myself.
I've set up my IDEA using my previous setting backup, which therefore lead to the result that there are some legacy settings regarding maven and were imported by IDE.
A reasonable inference is that this is a built-in bug.
Restore the IDEA to default settings help address this problem.
Happy coding 🤣
I have no idea how to get MigLayout to work in IntelliJ (I'm sort of a noob at IntelliJ). I am currently using the 2017.3.5 community edition.
I've downloaded the jar file, but I can't seem to import it correctly.
I have import net.miginfocom.swing.MigLayout; at the top of my main file, but
when I try to compile my code, I keep getting an error
Error:(40, 30) java: cannot access net.miginfocom.layout.LC
class file for net.miginfocom.layout.LC not found
Any idea what I'm doing wrong?
Also include the core lib. You can get it here
Sorry for late. But it will help somebody.
IntelliJ Idea will allow to download a maven dependency as a Jar file under the lib folder.
Try:
File->Project Structure->select Modules on the left-> choose the Dependencies tab-> find the + either at ther right or bottom-> add the .jar
Hello stackoverflow,
This might be a really easy question but I am having issues with building a basic sms reply application in java. I googled around and couldn't find a solution for my problem. The issue occurs when I do the following imports:
import com.twilio.sdk.verbs.TwiMLResponse;
import com.twilio.sdk.verbs.TwiMLException;
import com.twilio.sdk.verbs.Message;
Eclipse throws an error when I try calling and implementing the Message class sayingThe import com.twilio.sdk.verbs.Message cannot be resolved . I have no issues with the other classes, just the Message class. And I have used Maven to compile the project.
Anybody have any solutions and/or solutions for this issue?
You need to specify external libraries in the Build Path.
In Eclipse right click on your project > Build Path > Configure Build Path > Libraries > Add JARs (or "Add External JARs" if you didn't copy it into your project folder).
If it still doesn't work there might be dependencies you are missing, so you need those as well. To save the headache you could also use Maven to download them automatically.
I was using the wrong Twilio SDK version in my maven dependency. I was using 3.3.15 and I updated it to 4.4.2 and it solved my issue. Thanks for all the comments and replies
Im trying to use EMF Compare in a standalone Java application. In the Eclipse foruns, I was suggested to use the version in the git.
I cloned the repository. Then, I imported all projects in a workspace. I read that I just need the main EMF Compare lib, so I exported the project org.eclipse.emf.compare in a Deployable plugin and fragment, which I put inside the plugins folder in my default eclipse directory.
In my project, I can now import the org.eclipse.emf.compare, but when I run I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Sets
at org.eclipse.emf.compare.scope.AbstractComparisonScope.<init>(AbstractComparisonScope.java:55)
at org.eclipse.emf.compare.scope.FilterComparisonScope.<init>(FilterComparisonScope.java:63)
which is clearly because its not finding this guava google libs.
How should I proceed? Just have to change the way I generate the plugin, or should I generate a jar (and, in this case, how to export the google lib together?)
Thanks in advance,
Dusso
Okay, I am very late in answering (I do not follow the "emf" tag :s), but anyhow: the EMF Compare wiki explains how it can be used standalone, and what the minimal set of dependencies is (See this FAQ entry).
The first Orbit (Eclipse repository containing third-party dependencies) build that contained Guava 11 is here or you can use its p2 update-site directly
The first picture can be found in this website.
Picture 1
https://www.eclipse.org/emf/compare/documentation/latest/FAQ.html
And the second picture is the way what I do.
Picture 2