How to solve Junit.jar library missing error in eclipse for openbravo - eclipse

Imported openbravo in eclipse.
Everything is working fine except showing one error on main openbravo project, it shows missing required library junit.jar
I tried by deleting jar file and adding downloaded jar file but it gave lot of errors.
Why it happened ?
What is the solution ?

Execute "ant setup" before running "install.source" and import into Eclipse.
Ant setup process will add "org.eclipse.wst.common.component" under .settings folder,.classpath and it will solve 99% of issues during import.
http://wiki.openbravo.com/wiki/Installation/Custom/Openbravo_Setup

Related

Keep Getting Error When Trying to Run Javafx on Eclipse with Mac

So I keep getting this error when trying to run my program:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
I'm using a mac with eclipse, and my VM argument is:
--module-path /Users/myname/Desktop/javafx-sdk-11.0.2_3/lib --add-modules javafx.controls,javafx.fxml
I've tried everything, javafx.controls.jar and the other .jar file are in my lib folder. I've reinstalled the javafx program, changed my file path around hundreds of times, and I've tried to install plugins. Does anyone have any idea as too what can be happening? JavaFX is also an added library in my project, and all the .jar files assocated with it are added to it. Please let me know if anyone has an idea. Best!
I had success with the following additional step.
In the Run Configuration->Dependencies tab, click the "ModulePath" and then add the JavaFX JDK's jars (or the /lib folder that holds the jars) to the list.
You can inspect the generated command line, and check that these are included in the -p option.
IDK why this step should be needed. I would think Eclipse should be smart enough to include something on the dependency module path if it were in the project's Build Path Library list.
I have questions about this at eclipse.org and gluon. Maybe there will be an explanation, or fix so that this step isn't needed, or an edit to the documentation to let us know we need to do this.

Eclipse not attaching source automatically

I am using Eclipse Oxygen. Everything was working fine until one day I imported a Spring Boot maven project which has problem in pom.xml saying that tools.jar is missing. In the process of trying to remove this error I messed around with build path and many things. Now Eclipse is no longer able to automatically attach sources and I have to manually attach the source. For example, see below image
The source jar file actually exist but eclipse is not able detect it.
I have to manually click the "Attach Source" and locate the source file, and then only the source code is attached. Eclipse should be doing this under the hood. I googled a lot but all solutions given were not working for me. Please help.

Cannot build/run Scala project in IntelliJ after packaging with Maven

So my Scala project was working perfectly fine in IntelliJ, then I tried to run package in Maven to obtain a .jar file, which was not working because I was missing a dependency. So I tried to edit pom.xml however reverted it back shortly.
Anyhow, thereafter, without any changes I tried to run my Scala project normally locally and it doesn't work anymore. I get the error:
Error: Can not find or load main class Name.Name
I double checked Edit Configurations in IntelliJ and the main class is specified.
What went wrong? There has been no changes at all except that I tried to package my project using Maven, and then my normal program stopped working.
Solved it by recreating the project from scratch, however I'm still unsure what the cause was.

m2e (eclipse) Throwing error after converting to a maven project

I'm trying to convert an eclipse Java project to a Maven project. When I convert the project to a Maven project, the pom.xml displays the following error:
Cannot read lifecycle mapping metadata for artifact
org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.3.2:runtime
Cause: error in opening zip file
When I check the lifecycle file, it's blank. Any idea of why I can't convert this project without getting this error?
Thanks for the assistance!
If that file is empty, it might have been caused by a bad download of the maven artifact. Therefore check your proxy settings in Eclipse as well as in Maven itself (~/.m2/settings.xml)
One thing you can try is deleting the project(from the workspace, not from your computer!) and importing it as a maven project using the deleted project's folder as your source. I've had a lot of trouble in the past with converting projects with m2e, but deleting/re-importing always seems to do the trick.
To import an existing project as a maven project go to file->import and select "Existing Maven Project". Select your project's folder, and import. I realize it's basically the equivalent of "turn it off and turn it on again", but like I said, it has always worked for me in the past. At the very least it will help you narrow your scope.
Hope this helps!

Eclipse: Import Maven project, missing maven-gae-plugin

Coming from Visual Studio, I'm pretty new to the Eclipse IDE.
And finding it very difficult. I seem to get error messages of the type "missing ..." a LOT.
The latest issue I'm having, where I just can't get around is this:
I"m trying to compile & run this sample project: http://code.google.com/p/gwtgae2011/
When I choose "checkout maven projects from SCM" my SCM drop down is empty...
So I just checked it out with Hg manually. No problem.
Trying Import > Existing Maven Project. Seems to read the pom.xml alright, but shows an error:
"No marketplace entries found to handle maven-gae-plugin:0.8.1:unpack in Eclipse. Please see Help for more information."
Since I can't find it through updates or market within eclipse I downloaded maven-gae-plugin (http://code.google.com/p/maven-gae-plugin/downloads/list). I figured just dropping it into the "plugins" or "dropins" folder should be enough. Apparently not so...
Question: How do I fix this error?
(I tried both 3.6 & 3.7)
Links to some good eclipse tutorials covering these kinds of topics are very welcome too!
THANKS!
maven-gae-plugin is in central repo so it should be found.
Did you set the path to your local repo? http://united-coders.com/phillip-steffensen/maven-2-part-3-configuring-eclipse-for-apache-maven-2-projects
I ran into this error, what worked for me was:
Comment the plugin
Import into eclipse
Uncomment the plugin
Discover an error in the plugin XML
Fix error found in the plugin XML
I am not certain, but it seems like this is a unclear error that something about the pom.xml is invalid.