Maven was installed and was working just fine before with my previous versions of IntelliJ Idea.
I just installed the trial version on IntelliJ 13 and my existing maven project stopped working!
The error was:
No valid Maven installation found.
The easiest solution was to set the Maven Home Directory manually in your to your executable mvm location [/usr/local/maven] in my case.
Other solutions I came across needs a reboot.
Alternative solution here:
M2_HOME not being picked by IntelliJ Idea
Setting environment variable in OS X
Related
I am trying to setup Anypoint Studio 6.6 on my MacBook, I have been using it on windows and it works fine. I have installed Java 8 and Maven 3.6.3 and I have also set up the environment variables so I can use java and maven on the terminal and the works good. On preferences, the Installed JREs and classpath variables are all pointing to the JDK but when I try to run a project with maven, I get the error - There was an error running the studio:studio goal on project projectname.
I updated the settings.xml as instructed by the documentation https://docs.mulesoft.com/mule-runtime/3.9/configuring-maven-to-work-with-mule-esb, but I am still getting this error. How can I fix this please?
Those instructions are to set Maven to work with Mule. You also need to point Studio to your Maven installation, which I suspect you already did. For the error related to studio:studio, you should have pasted the complete error in the question, however I guess you need to add the plugins repository: https://stackoverflow.com/a/24557069/721855
I have a JavaFX app that I build with Gradle and Java 8. I recently got a new laptop and installed Java 10 JDK instead of Java 8 and didn't think it'd be a big deal. However, when I try to import the Gradle project into Intellij I get this error:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'MyProject'
Caused by: org.gradle.api.GradleException: Couldn't find Ant-JavaFX-library, please make sure you've installed some JDK which includes JavaFX (e.g. OracleJDK or OpenJDK and OpenJFX), and JAVA_HOME is set properly.
at de.dynamicfiles.projects.gradle.plugins.javafx.JavaFXGradlePlugin.addJavaFXAntJARToGradleBuildpath(JavaFXGradlePlugin.java:112)
More....
I have set JAVA_HOME in the Windows env vars to this path:
C:\Program Files\Java\jdk-10.0.1
How can I solve this problem?
Thanks!
Thanks for the comment feedback on this post I was able to find the problem. I first verified that the JDK 10 installation did drop off ant-javafx.jar into the lib/ dir in JAVA_HOME. It did..!
So it must be Gradle or Intellij.. right? Well there's only one super easy way to build a JavaFX gradle project at the moment and that's with javafx-gradle-plugin. Looking up the repo I can see the last release was a year ago! RED FLAG! Looking through the code I found a pathing check for a now defunct relative path that drops the verbatim error above.
So I submitted a Pull Request to the developer of the project and hopefully that resolves the issue..
That's here: https://github.com/FibreFoX/javafx-gradle-plugin/pull/128 .
In the meantime, I solved locally by copying ant-javafx.jar from it's real path at C:\Program Files\Java\jdk-10.0.1\lib\ant-javafx.jar out into C:\Program Files\Java\lib\ant-javafx.jar. Then I rebuilt the Gradle project and everything worked accordingly, confirming the solution in the PR above.
If you're building JavaFX apps with Gradle right now, you're likely to encounter this issue until the developer fixes it. He claims he's working on a brand-new plugin right now but the last release of this widely used plugin was over a year ago.
Thanks!
I'm switching from NetBeans to IntelliJ IDEA 13.0.2 for an existing JavaFX project and I've had very little trouble setting everything up, but I am missing one setting. I'm using the artifact from IntelliJ to build MSI and EXE installers. This works fine, but it always shows version 1.0 when I use the installer as well as in the name of the MSI and EXE files. How do I change this to the correct version number?
I'm an experienced (Java, Eclipse & Maven) developer, and have used a couple of frameworks thus far. Every time I'm trying to start with something new, it seems like there are about a zillion configuration possible for downloading and installing it.
I've looked here for instructions, and all the near pages, but they seem out dated, the Eclipse plugin path is invalid, and when I install the latest version I've found no the site (2.0.2), it says that I have a newer version installed.
Also, the Maven setup in most posts I've read seems obscure.
I'm using:
Windows 7
Eclipse x64 Indigo
JDK x64 1.6.0.24
Maven 3.0.3
And I don't recall installing the JavaFX.
What an I missing? Where can I read about the setup in order to start working with this framework?
JavaFX gets installed if you install the latest JDK 7 from Oracle (co-bundled).
You can find the Eclipse plugin here:
http://efxclipse.org/
If your're interested in Maven builds: I've recently released an initial version of Drombler FX, a modular RCP for JavaFX based on OSGi and Maven (POM-first):
http://puces-blog.blogspot.ch/2012/12/drombler-fx-building-modular-javafx.html
http://wiki.drombler.org/GettingStarted
I did tried efxclipse but it was not enough for me. I have also tried to give the path of javafx jar file to efxclipse
Window->Prefrences->javafx->"The path to javafx jar which is
jfxrt.jar"
. But nothing worked for me I don't know what was going wrong.
Then I just add the jfxrt.jar file to my Library and everything worked fine :-
1. Right click your JRE System Library
2. Build Path
3. Configure Build Path
4. Add External Jars
5. "The path to jfxrt.jar"
You can download jfxrt.jar file from this link.
Or
If you have already downloaded the latest oracle JAVA JDK you will find in this path
Extracted_oracle_jdk_folder/jre/lib/ext/jfxrt.jar
That's it everything should work fine.
Try e(fx)clipse at http://efxclipse.org/. I'm a netbeans developer, but heard a lot of good stuff about that plugin from my eclipse using friends.
I downloaded eclim, and according to the installation guide
it requires Eclipse Helios 3.6.x.
So, I went and installed that version of Eclispe manually because it is not at Ubuntu's repositories.
What happened next was that, when I tried installing eclim, it said that it cannot recognize the eclipse version that I have.
Do you have any suggestions of how to resolve this issue?
The Eclipse that you install manually is not usually on the path that Eclipse is installed to when using the software center. I had this problem too while trying to install eclim.
There are two ways to fix it.
You can specify where the new Eclipse is installed to from your manual installation. For example, I manually installed Helios to $HOME/eclipse. When the installer gets to the point where it asks for eclipse's path, I specified it as /home/username/eclipse, replacing username with my name of course. That should find the helios installation, and not the installation in /usr/lib/eclipse.
The second way to do it is to manually make and install eclim from the repositories. The guide for this is here, http://eclim.org/guides/development.html#development-build. That will work you through building eclim from the development build, which may be better anyway as there may be new features not in the release version. Be sure to specify the eclipse home files in the Ant command, like so, ant -Declipse.home=/where/you/installed/eclipseto
Hope this helped, and merry days using eclim. It's really great.