Top "Java-7" questions

Java SE version 7 was released in 2011.

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

I'm compiling a project in Eclipse using m2eclipse. I set the JDK path in Eclipse like this: Windows-->…

java eclipse maven java-7 m2eclipse
Installed Java 7 on Mac OS X but Terminal is still using version 6

I've installed JDK 7u7 downloaded from oracle's website. But after installation, the terminal is still showing java version 6 $java -version …

java macos java-7
Recursively list files in Java

How do I recursively list all files under a directory in Java? Does the framework provide any utility? I saw …

java file recursion java-7 nio
How to set specific java version to Maven

On my machine I have two java versions installed: (1.6 and 1.7 installed manually by me). I need both of them for …

maven java-7 java-6
Create a Path from String in Java7

How can I create a java.nio.file.Path object from a String object in Java 7? I.e. String textPath = "…

string path nio java-7
Exception in thread "main" java.lang.UnsupportedClassVersionError: a (Unsupported major.minor version 51.0)

Possible Duplicate: unsupported major .minor version 51.0 I installed JDK7, a simple hello word program gets compile but when I run …

java exception java-7 unsupported-class-version
How to set IntelliJ IDEA Project SDK

I just installed IntelliJ IDEA and when I try to create my first Project it asks for me to set …

java intellij-idea java-8 sdk java-7
How do I use JDK 7 on Mac OSX?

I would like to use the WatchService API as mentioned in this link: http://download.oracle.com/javase/tutorial/essential/…

macos java java-7
How to enable TLS 1.2 in Java 7

I am trying to enable TLS 1.2 in my web app which uses JBoss 6.4 and Java 1.7. I have -Dhttp.protocols = TLSv1.2 …

java jboss java-7 tls1.2
What is the point of the diamond operator (<>) in Java 7?

The diamond operator in java 7 allows code like the following: List<String> list = new LinkedList<>(); However …

java generics java-7 diamond-operator