JetBrain IDE project creation trouble - java

I was creating a new project in JetBrain IDE (IdeaIC-2016.1.2). While creating a new project SDk i choose the JDK option and when i want to select the path i was looking for JDK in Java folder but instead there were only JRE 1.8.0_31 and JRE 1.8.0_91 instead of JDK version? What could be the problem?

Related

How to make a Grails Maven project use Java 1.7 in GGTS?

I have a Grails 2.3.7 project which should use Java 1.7.
I am using the Spring GGTS IDE as development tool and it is configured to use a Java 1.7 JDK.
I created the project in GGTS and changed the source and target level to 1.7.
Then I generate a maven pom file with the create-pom command.
So far so good. The project is linked to use a JRE System Library of version 1.7.
Then I change the project to be a Maven project in GGTS. What happens now is that in GGTS, the project changes the JRE System Library to become of version 1.6. I can manually switch it back to a java 1.7 library but every time I do a "Maven update project", the 1.6 library is back.
What am I doing wrong?
By removing the jre 1.6 as installed jre from GGTS, the project will use my jre 1.7. But in the list of linked dependencies it is still labeled JRE System Library [Java-SE 1.6] even though it points to my 1.7 instance. This solved my build-issues even though it still looks wrong.

Choose Gradle JDK in IntelliJ

My system JAVA_HOME and PATH are pointing to JDK 7, but I want to use JDK 8 in project opened in IntelliJ. I changes settings in Project Structure and it works great in IDE, but unfortunately Gradle build run from IDE still uses JDK 7. How can I specify Gradle JDK in IntelliJ 13.0?

Eclipse Eclipse is running under 1.6, but 1.7 is needed

I have just installed WindowBuilder for Eclipse and java 1.7 JDK, but when I create a new JFrame in Eclipse, and try to open the "design-view" in WindowBuilder I get the following error: "Eclipse is running under 1.6, but the Java project has a 1.7 Java compliance level, so WindowBuilder will not be able to load classes from the project. Use a lower level of Java for the project, or run Eclipse using a newer Java version."
How to Resolve Incompatible Java version Error in Eclipse in mac?
You might have installed the Java 1.7 SDK but it looks like Eclipse is started with the older one (1.6).
The WindowBuilder is integrated into Eclipse and will use the same Java instance as Eclipse (that is the 1.6 version).
However your project will use Java 7. The WindowBuilder (Java 6) will be unable to load classes from the higher version which your project uses (Java 7).
What you need to do is:
Configure your eclipse to start with the newer (Java 7) version. This can be done in the Eclipse.ini file.
Which Eclipse you're running?
You definitely need to upgrade your Eclipse to a newer x64 Version to use Java 1.7.0

IBM Worklight - .war builder using wrong Java version

I've setup Worklight Studio to use JDK 1.6 in my Worklight project.
I also changed the "compilation compliance level" to 1.6.
Eclipse is started with jdk/jre 1.6.
Despite all of this, the war is generated with Java 1.7!!!
My JAVA_HOME and JRE_HOME variables are also set to my JDK/JRE 1.6.
I'm operating under Windows 7 (64 bit).
How can I tell Worklight to build the war with jdk 1.6, not the default Windows one?
In Eclipse, navigate to Window > Preferences > Java > Installed JREs. Make sure JRE v6 is the version that is to be used (also try to remove and re-add it, maybe it's some stuck configuration option...).
This is the JRE version Eclipse will use to generate the .war file in your Worklight project.
For good measure, delete your existing .war file before generating a new one after changing the above.

Grails requires jdk

I have installed several jre's and jdk's on my computer.
Today I set up grails version 2.3.4.
I have downloaded and installed the grails plugin on a new eclipse kepler.
However, when I start eclipse I get:
How to change to an jdk in eclipse?
I appreciate your answer!
UPDATE
As you can see the jdk should be properly configured:
you have to set the path of the eclipse-vm to a jdk (i.e. the vm with which eclipse is started) in the eclipse ini like described here.

Categories