Where to get the SDK for Intellij iDEA for Scala? - scala

I've never used Intellij before or even heard of SDK's, but on the page that describes how to setup it says you need an SDK, and in the tutorial it was 1.6 (java version 1.6.0_37). Where do I download or find this? I've looked all over and all I find is a Java JDK version 6, and can't find any references to SDK's at all.

Java version 6 is actually 1.6, so you are right in getting the Java SDK 6. You can really get Java 8 I would think

Related

Xtext 2.7 and JDK version

I tried to find information about which level of JDK is recommended for Xtext. To my regret I did not found official requirements regarding JDK level. My question is which level of JDK shall be used for xtext ?
1.8 or 1.7 or 1.6
Thank you in advance
Alexander
In comparision to Java 8 Java 5 and Java 6 didn't bring real syntax extension. I don't know exactly which version is required for Xtext 2.7, but I recently read something about Xtend (which comes with Xtext). The document said that Xtend lambdas will compile to Java8 lambdas if one wants it. Otherwise it still compiles to Java 5.
From this information I would derive that Xtext needs at least Java 5.
There is no "recommended" level, use whatever makes sense for your project. Xtext 2.7 works with anything form Java 5 to Java 8.
Xtext 2.8 will require at least Java 6.

Where can I download Groovy Grails Tool Suite version 3.5.1 for Windows?

The download page at SpringSource (http://spring.io/tools/ggts/all) doesn't seem to make previous versions of GGTS available, but I want to have this version to be able to toggle between the Groovy 2.0.7 and Groovy 2.1.8 compilers.
As a potential solution, I searched for mirrors, but was unable to find any. In addition, I also checked GitHub for the GGTS source for this release so I could compile it myself, but I didn't find that either.
You can change the version directly in the URL so this one should work:
http://download.springsource.com/release/STS/3.5.1/dist/e4.4/groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-win32-x86_64.zip
I hope that helps.
The GGTS 3.5.1 32bit version is here:
http://download.springsource.com/release/STS/3.5.1/dist/e4.4/groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-win32.zip
It has grails-2.3.8, tomcat 6 and 7.

How to add JDK 7 in compiler list in eclipse

I have installed the JDK7 on my machine and I want it to add in the list of compiler
I have tried adding JDK 7 in the list of installed JRE but it is still not appearing in the list of compiler compliance level.
Could any one tell me how can I add JDK 7 into new compliance level.
Eclipse uses its own compiler (see What is the difference between javac and the Eclipse compiler?), so you won't find it if you use an old version of Eclipse (as probably your RSA is based on). Java 7 support is available for Eclipse 3.7.1 or higher (at the moment current stable is 4.2).
However, if you want to keep that version of Eclipse, you can create a new Builder using your JDK7 as base. To do this, go to Project and add a new Builder specifying where the javac is and the other options.
Look also at this question: Eclipse 3.5 and Java 7
Looks like you have to use the 3.8 version of eclipse to get Java 7 support. But I noticed that some later versions of 3.7.x might have it too.
See this for features:
http://www.eclipse.org/jdt/ui/r3_8/Java7news/whats-new-java-7.html

Different Java developer and program versions?

I've installed JDK7 java version and selected version 7 as the JVM in Eclipse. The version of compiler remains being 1.6 and it doesn't shows a greater version.
Is it correct?
Thanks
Current version of Eclipse (3.7) does not support compiling Java 7 sources yet. The support is coming in 3.7.1 update soon. You can run your application with Java 7 JRE, but there is no support for compilation at the moment.

The java class is not found in JDK 5 environment .. not in JDK 6

I developed one stand-alone distributable JAR file using NetBeans 6.9 IDE.My application works fine in JDK 1.6 environement. But, in JDK 1.5 I get error "The java class is not found: .". Please suggest what could have gone wrong.In JDK 5 environment java bin path is present in PATH variable.
THe problem is that you use some class, which has been added in java 1.6. If you want to run your code on java 1.5 you can't use this new class. So, you have choice:
Restrict your users from using java 1.5
Rewrite your code only using JDK 5.
Java 6 class files are not compatible with Java 5.
In your IDE, you need to set the "target" option to "Java 5" to force the compiler to create Java 5 compatible class files (which will also work in Java 6).
[EDIT] It's also possible that you used a class which is only available in Java 6. Please edit your question and show us the complete error message.