Questions tagged [java-7]

Java SE version 7 was released in 2011. The new features, in comparison to the version 6, include dynamic language support, compressed pointers, small language extensions, elliptic curve cryptography, new network protocols, the ability to use Strings as case values in a switch statement, and various system library extensions.

Oracle has two products that implement Java Platform Standard Edition (Java SE) 7: Java SE Development Kit (JDK) 7 and Java SE Runtime Environment (JRE) 7.

JDK 7 is a superset of JRE 7, and contains everything that is in JRE 7, plus tools such as the compilers and debuggers necessary for developing applets and applications. JRE 7 provides the libraries, the Java Virtual Machine (JVM), and other components to run applets and applications written in the Java programming language.

The following conceptual diagram illustrates Java component technologies:

Java component technologies stack

See for more information.

Java 7 Official Documentation: http://docs.oracle.com/javase/7/docs/api/

Java SE 7 Features and Enhancements

2995 questions
1
vote
2 answers

The type java.time.Duration cannot be resolved when using OkHttpClient v3.12.x on Java 7

I'm developing for a project which is compiled for Java 7. In this project I use OkHttpClient v3.12.13, which is compatible for Java 7 (as stated here). However these lines produces an error in the Eclipse editor: private static final OkHttpClient…
Ricky Sixx
  • 581
  • 1
  • 10
  • 25
1
vote
2 answers

Comparing two large lists in java

I have to Array lists with 1000 objects in each of them. I need to remove all elements in Array list 1 which are there in Array list 2. Currently I am running 2 loops which is resulting in 1000 x 1000 operations in worst case. List
Ravi
  • 49
  • 8
1
vote
0 answers

JDK 7 doesn't work with JMF image capture

I tried using the recent JDK release - JDK 1.7.0-ea with one of my java applications that uses JMF to capture facial image, but the motion image gets displayed at the back of the frame - on whatever application opened at the background or on the…
Olantobi
  • 869
  • 1
  • 8
  • 16
1
vote
2 answers

jdk7 call https url handshake_failure

jdk1.7.0_79 and okhttp 3.8 call https url failed main, WRITE: TLSv1 Handshake, length = 148 main, READ: TLSv1 Alert, length = 2 main, RECV TLSv1 ALERT: fatal, handshake_failure main, called closeSocket() main, handling exception:…
zhuguowei
  • 8,401
  • 16
  • 70
  • 106
1
vote
0 answers

On running Applet using applet viewer in Mac, got a few errors

While running an Applet through appletviewer. I used Sublime Text for writing the code and compiled it using "cmd+b". What can be the issue? Is it something related to the applet viewer in particular or related to syntax? I got the following error…
1
vote
3 answers

What and Why Java 6 & Java 7?

It's been a while when I received some of the subscription from free resource talking about the Java updates and many. I realized that Sun has been taken over by Oracle. And so Java is now in their control. Last info I received, is that Java 7 is…
gumuruh
  • 2,544
  • 4
  • 33
  • 56
1
vote
2 answers

Why do the valueOf/parse methods on the number classes reject valid numbers in Java 7?

Neither underscores: scala> java.lang.Float.valueOf("1_2_3.4_5_6") java.lang.NumberFormatException: For input string: "1_2_3.4_5_6" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1242) at…
soc
  • 27,983
  • 20
  • 111
  • 215
1
vote
2 answers

Java SE 7 installed, but string in switch not supported

I've recently installed Java SE 7 on my Ubuntu and tried to compile code with switch on string but couldn't do that. I compiled from command-line. Why? java -version java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b146) Java…
Oleksandr Bondarenko
  • 1,998
  • 1
  • 19
  • 22
1
vote
1 answer

what is best optimized way in Java to get latest (Descending Last-Modified) n files - without loading all files of a large directory

Aim is to get latest 100 files. Currently it is done by scanning all files - preparing a files list - and then apply sort+limit. this is very slow - in cases when directory is too large. So is there any way or API available which does this without…
RaviSam
  • 130
  • 1
  • 8
1
vote
0 answers

Unable to add/update Annotation in Java 7

I am trying to dynamically add Annotation in Java 7. But it fails to so. Could use some help. Following are the 2 ways I am taking. In both the approach, immediately after adding the new Annotation when I check, the class/field doesnt reflect it. 1.…
hdk.pnchl
  • 13
  • 1
  • 5
1
vote
0 answers

How to enable TLS 1.2 using SOAPConnection in Java 7

I'm trying to enable TLS 1.2 in a SOAPConnection in Java 7 running on Jboss 7.1. I have read that the property https.protocols works only whit HttpURLConnection: System.setProperty("https.protocols", "TLSv1.2"); I have found a lot of solutions that…
SPao
  • 11
  • 3
1
vote
2 answers

ISO 8601 Time Duration Parsing in Java 7

I am parsing the YouTube API v3 and trying to extract the duration which seems to be in ISO 8601 format. Now, there are inbuilt methods in Java 8, but that requires that I would have to bump the API level to 26 (Android O), which I cannot do. Any…
ssindher11
  • 168
  • 1
  • 7
1
vote
0 answers

Difference between InputStreamReader in java 1.6 and java 1.7

I have a issue with encoding conversion in java 1.7 but not in java 1.6. The code is like this: import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { String inStr =…
1
vote
1 answer

how can you combine date and sql time into a single date time in java?

Using java Calendar how can you combine the start date, day and starttime? For example: If the start date is 9/8/2020. The day is 2 and the start time is 8:00 AM then how can we obtain a java date that is 9/9/2020 8:00 AM. Here is my unsuccessful…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
1 answer

javax.xml.namespace.QName does not exist in Java 11

I have problems when trying to run Java classes that were generated automatically from a wsdl with the javax.xml.namespace.QName attribute, it was working correctly in Java 7 but when changing version it stopped recognizing. pom.xml
JJOC214
  • 11
  • 1
  • 1
  • 3