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
4 answers

Is it possible to do a 'find . -ctime n' in JDK7?

Is it possible to do a equivalent 'find . -ctime n' (Unix command) in JDK7? i.e. find all files based on last changed time? I had a look at the new FileVisitor/BasicFileAttributes/SimpleFileVisitor classes but I cannot see how it could be done.
Wayne
  • 914
  • 2
  • 13
  • 25
1
vote
1 answer

Future Object with mentioned timeOut is keep increasing for the next threads(timeOut is not applying for all the threads in the ThreadPool in Java)

The Worker Thread is Defined here with heavy task of 10 Seconds in run method import java.util.Date; import java.util.Random; import java.util.concurrent.Callable; public class WorkerThread implements Callable { private String command; private…
prudvi raju
  • 505
  • 1
  • 5
  • 19
1
vote
3 answers

How do we come to know that the thread has finished its execution?

I am using ExecutorService. Following is the code public class A{ public static void main(String args[]){ ExecutorService executorService = Executors.newFixedThreadPool(5); Runnable worker = new FileUploadThread("thread"); …
Pri_stack
  • 179
  • 1
  • 12
1
vote
3 answers

Why does Java compiler give "error: cannot find symbol" for LinkedList descendingIterator in the following code?

Why does this code: import java.util.*; class Playground { public static void main(String[ ] args) { List l = new LinkedList<>(); Iterator i = l.descendingIterator(); } } Generate this compiler…
JGFMK
  • 8,425
  • 4
  • 58
  • 92
1
vote
2 answers

Java programs in Linux Machine (UTC timezone) returning date in HDT timezone instead of UTC timezone

I have a linux machine in UTC timezone. [user@test packages]$ date +'%:z %Z' +00:00 UTC Running cat /etc/localtime also seems to indicate that my machine is in UTC timezone; [user@test ~]$ cat /etc/localtime f2UTCTZif2UTC UTC0 However calling…
Demeter P. Chen
  • 823
  • 1
  • 7
  • 16
1
vote
1 answer

How to replace the methode StageHelper.getStages() from java 1.7 to java 11

I am migrating an application which using JavaFX from Java 1.7 to Java 11. One of the error that I have is about the method StageHelper.getStages() which has disappeared. I did not find anything to replace it. Do you have a solution to replace this…
pacataque
  • 130
  • 12
1
vote
0 answers

Java 7 web service scheduler implementation suggestion

I know there are many frameworks for Scheduler as well as JDK's own Scheduler. I can't use any third party framework/API. The existing scheduler uses only Java API. It is as follows:- public class Timer implements Runnable { private Thread…
masiboo
  • 4,537
  • 9
  • 75
  • 136
1
vote
1 answer

Compare List of List in java

I have List>. List(1) : List List(2) : List List(3) : List ... & so on. Structure of MyOBj is: class MyObj { String name; String type; } I have to get name from MyObj, if type is same for any 2 entries…
madeeha
  • 156
  • 3
  • 11
1
vote
4 answers

Is it advisable to download and use JDK7?

I'm a first year engineering student and I use J2SE 1.3 (I know, shocking!) in college to write code and Java SE 6 at home to write code. I just visited the Java website to manually download Java SE 6 update 24 and read that JDK 7 developer access…
user693228
1
vote
3 answers

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure java 1.7_45

I have an https web page that I need to access and get some file, I am using Java 1.7_45 and apache httpclient 4.5.1 when I execute the client request I get the error(If I change to Java 8 it works, but I cannot change it to Java 8): I tried…
1
vote
2 answers

Change in RequestMapping method or post addition of Optional in Java 8 from Java 7

I have been trying to follow a tutorial and in which they are basically using java 7 and currently I am working on a java 8 environment so I would want to know what would be java8 version of the code that I am trying to work on - currently I am…
nightfury
  • 384
  • 6
  • 18
1
vote
3 answers

Convert Resultset into Map

I have query which will return two values(Column A and Column B) as below A B ------------ a aaa a aaa a aaa a aaa b bbb c ccc c ccc b bbb c ccc b bbb I am trying to create a java method(Java 7) which will fetch all these…
F0cus
  • 585
  • 3
  • 18
  • 52
1
vote
0 answers

JAVA 7 JSF inputFile ERROR javax.servlet.ServletException: UT010016: Not a multi part request

First of all a greeting and thanks in advance. The reason for my creating this thread is because of an error that it generates when trying to load a file with what I want is to capture a file, regardless of its extension, send it to the controller…
1
vote
1 answer

Java/Tomcat Open TCP Connections - Resource Monitor

Right now we are running into a problem where we have a bunch of "open TCP connections" on our Windows server's that are running a tomcat webserver. The Java code is doing a SOAP call to a vendor, and we see a lot of open connections in Resource…
mandelbug
  • 1,548
  • 5
  • 20
  • 32
1
vote
1 answer

Websphere 8.5 reboot breaks classLoader code

I have a JAVA application deployed on Websphere. This application is looking for a local WSDL file to do a SOAP request. However whenever the Websphere reboots which is nightly scheduled, this below line throws a NullPointer as it couldn't find the…
james2611nov
  • 473
  • 2
  • 10
  • 27