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
1 answer

Hadoop 2.7.4 namenode not starting : Unsupported major.minor version 52.0

I recently got into problem, while installing hadoop on single node machine. The error log for command bin/hadoop namenode -format STARTUP_MSG: java = 1.7.0_80 ************************************************************/ 17/08/22 21:03:56 INFO…
Azhar Husain
  • 141
  • 1
  • 9
1
vote
0 answers

Why ireport don't open the open dialog

I'm trying to open a report file with ireport 4.5.1. But the "open file" dialog does not appear. If i click on File -> Open the program is terminated immediately. When i click "Add Jar" in the classpath, the same happens. I have windows 10…
Roy
  • 11
  • 2
1
vote
1 answer

Use modena.css with JavaFX2 and Java 7

I am developing a JavaFX application. Unfortunately, I am restricted to Java 7, thus also restricted to JavaFX2. However, I would like to include the default theme from JavaFX 8 Modena. Hence, I downloaded the modena.css and put it into my…
dirkk
  • 6,160
  • 5
  • 33
  • 51
1
vote
0 answers

java.lang.ClassCastException: org.apache.log4j.Logger cannot be cast

I extended org.apache.log4j.Logger for implementing logging for method starts and exists. It works fine, when I don't set the loglevel for a class in my log4j.properties. When I set log4j.logger.de.martinm.tools.UniCredit.ExportOperator=INFO I get…
Martin Müller
  • 122
  • 3
  • 17
1
vote
2 answers

Timezone issue: convert to UTC if JVM timezone is in UTC

I am facing some issues because of timezone in our apps. We have some dependent services which send us EST time. We were in EST timezone so there were no any issues before. Recently, we moved to UTC time zone and started seeing the issue. For us, we…
user123475
  • 1,065
  • 4
  • 17
  • 29
1
vote
0 answers

Similar java code for following scala code

I have trouble using concat_list on a spark dataframe in spark 1.6.So I am planing to go with UDAF for concating multiple row values to one single row with comma seperated values Here's link! for the original post,I need the same code in java SE…
Yashwanth Kambala
  • 412
  • 1
  • 5
  • 14
1
vote
1 answer

spring data mongodb lookup with dbref

I am using MongoDB (3.4) with Spring Data. And I am getting incorrect results when I use lookup operation. The collection operation are as follows: @Document public class Employee { @Id String id; String name; @DBRef EmpAddress…
pkm
  • 43
  • 2
  • 7
1
vote
2 answers

replacement of lambda expression in java 1.7

timer.scheduleAtFixedRate(() -> sendTimeToAll(session),0,1,TimeUnit.SECONDS); This expression is used in java 8, how to write this in java 7 version
mahe
  • 963
  • 2
  • 7
  • 9
1
vote
2 answers

Not able to understand how to define a List of List in java

I want to understand the difference between the two definitions and why the correct one is correct and the wrong is wrong. The one showing me the compile-error List> arr2 = new ArrayList>(); The error it gave me :…
kumarmo2
  • 1,381
  • 1
  • 20
  • 35
1
vote
1 answer

Compare time from given date with two given time strings using Java

I have a method which takes the argument of two time strings Eg: t1 - 09:00 and t2 - 15:00 and a Date argument. I want to achieve to a solution where the given time from date is with or within the passed timeframe or not. Thanks in advance public…
1
vote
1 answer

Morphia ignores TypeConverter

i'm using morphia v1.3.2 with JDK7, i have documents represented by Objects and sub classes. after struggling for a while with morphia to make use of it's internal mapper i found a way to change the way a class is de/serialized according to their…
lacripta
  • 112
  • 3
  • 15
1
vote
0 answers

“Inconsistent stackmap frames” exception when trying to create a new object

I'm having trouble to write a Unit Test because I'm getting this exception when trying to create a new object of EquifaxDLPingRequest class. I've simplified the code just to show the problem: import org.junit.Test; import…
1
vote
2 answers

Is BigInteger.longValue() guaranteed to preseve the unsigned binary for 2^63 <= x <= 2^64-1?

What I want to do is storing a 64-bit unsigned integer as a Long type, preserving its interval binary representation. For example, I want to save 2^63-1 = 9223372036854775807 as it is (9223372036854775807) (∵ 2^63-1 <= Long.MAX_VALUE) and 2^63 =…
Naetmul
  • 14,544
  • 8
  • 57
  • 81
1
vote
1 answer

Convert lambda with method reference to function in Java 7

I'm working on an application which is working on Java 1.7. I need to rewrite some code which has been writing with Java 1.8 with SpringFramework. Unfortunately, I'm not familiar with a newer version and I don't know how to rewrite this code to work…
Lui
  • 594
  • 3
  • 10
  • 23
1
vote
1 answer

The relation between "precise rethrow" and final Exception

there are many question about java-7 feature "precise rethrow" and final Exception ex, i couldn't find clear answer for my question. what is the relation between "precise rethrow" and final Exception ? public static void main(String args[])…
Melad Basilius
  • 3,847
  • 10
  • 44
  • 81