Questions tagged [java-6]

Java SE version 6 was released in December 2006. Use this tag for questions specific to this version of Java.

Java SE 6 was an evolutionary change over the previous version. It did not include extensive language or JVM changes, however such changes were planned for Java SE 7 which was supposed to be released much sooner. (See here for what changed in Java 6).

As a stop-gap to the much delayed Java 7, Sun (since purchased by Oracle) introduced Java SE 6 Update 10, which despite its modest version numbering, represented extensive improvements to the GUI capabilities of Java in order to support JavaFX and Sun's renewed attempt to make Java successful in the GUI arena.

Internally, Java is numbered with a "1." before the number, so it will report itself as "1.6.0_" with an update number at the end. Starting with version 6, Sun dropped the ".0" from its marketed version number, so instead of 5.0 as previously done, it was Java 6.

Only use this tag if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1391 questions
0
votes
1 answer

Hamcrest JDK7 migration

Hi I try to migrate project to java 7 (JDK1.7.0_21) from java 6. On one test I noticed failures. Update: I debugged the problem. I got to ReflectiveTypeFinder.findExpectedType. public Class findExpectedType(Class fromClass) { for (Class c…
Waldemar Wosiński
  • 1,490
  • 17
  • 28
0
votes
3 answers

Need to use two Java versions in one machine

My application will support only java 1.6 version and I need to execute all test cases using java 1.7 compiled class files code. My question how to reach above requirement... Is it possible to install both java 1.6 and java 1.7 versions in my…
user3016945
  • 265
  • 1
  • 6
  • 10
0
votes
1 answer

SEVERE: Servlet /SAIRAM-SERVICE threw load() exception java.lang.NoClassDefFoundError: javax/ws/rs/core/SecurityContext

I have written a simple Hello World restful web service. I have used the tomcat 6 and jdk1.6, and ID e Juno Service Release 1, jersey-core-1.0.2,jsr311-api-1.0,asm-3.1,jersey-server-1.0.2 jars included in my build path. when i run the server i am…
0
votes
1 answer

Does an open InputStream always create a leak?

Found this code at work and my lead dev said, "It could cause a memory leak." and acted like it was no big deal. InputStream is = ... GZIPInputStream zis = new GZIPInputStream(new BufferedInputStream(is)); someMethod(zis); No closing the input…
eimmer
  • 1,537
  • 1
  • 10
  • 29
0
votes
3 answers

Iterating over Java Lists - how do I recognise the final element?

I have a List for example { "in" , "out", "rec", "auth" } ... but the content of the list is not predictable. When iterating the list list how can we know we have reached last element? I want to apply different logic for the last element.
user2693404
  • 307
  • 1
  • 3
  • 9
0
votes
0 answers

The Android SDK may be missing the directory 'add-ons'

I installed android studio and JDK, and after create new project in android studio I see this alert: Cause: failed to parse SDK!
The Android SDK may be missing the directory 'add-ons'.
Consult IDE log for more details (Help | Show Log) This…
Peter
  • 89
  • 12
0
votes
1 answer

Runtime.getRuntime().exec(cmd, vars) is not working in Linux

When using final Map env = new HashMap(System.getenv()); env.put("ECLIPSE_PROJ_PATH", fileSelectedPath); final String[] envVars = SystemUtils.mapToStringArray(env); try { …
becks
  • 2,656
  • 8
  • 35
  • 64
0
votes
2 answers

Iterator differences between JDK 1.6 and 1.7

I'm having an issue with the same code running on two different versions of the JDK. The code basically has nested iterators on the same HashMap. The following is pseudocode. I've inherited this code... Iterator entries =…
fatlog
  • 1,182
  • 2
  • 14
  • 28
0
votes
1 answer

how to get the currently running thread in ExecutorService

I got a pool of threads using ExecutorService, this executorService will execute the runnable class I implemented, and now I'd like to get the currently running thread in this pool, how? Please help, thanks. Thread currThread =…
Ivy
  • 503
  • 1
  • 10
  • 23
0
votes
1 answer

Salesforce REGEX - Detect Chars not working as expected

I have the following situation in Salesforce: A certain fields contains one string. But this string char's all have a significant meaning. For instance, the string can look like: GHJKL where G, H, J, ... have a certain meaning which is being used…
Robin Wijnen
  • 123
  • 3
0
votes
1 answer

Unable to fetch platform android error

Okay, so I've set up cordova in my machine and everything works fine. D:\PhoneGap\apps\hello>cordova -v 3.1.0-0.2.0 I'm able to create a new project using the create command. And I've got the structure that's needed (www folder et all). But when I…
krishwader
  • 11,341
  • 1
  • 34
  • 51
0
votes
0 answers

javax.xml.stream.XMLStreamException on Java 6 but not Java 5

Previously, my application was run on Java 5, I used StaxUtil to read XML and everything is OK. I'm trying to upgrade my application to Java 6 but it keeps throwing this exception Failed to update internal…
Minh Khoi
  • 115
  • 2
  • 12
0
votes
1 answer

How to run EWS Java API with Java 6

I am using EWS Java API to connect Exchange Server. The Java version in my compile and runtime environment is 1.6.0_26. When the application starts, it gives an error and the program exits. It says that Unsupported major.minor version 51.0. So isn't…
0
votes
0 answers

Java Plugin Web after install JDK

I have installed the jdk, I can compile files .java and execute any java command in the command line, but I when try view an applet in the browser this not work. Any idea how to solve this problem? I use ubuntu, JDK6 and chrome (or firefox). The…
victorpacheco3107
  • 822
  • 3
  • 10
  • 32
0
votes
1 answer

SSL On apache tomcat 6

I have an web application which i want to make secure with the use of SSL. I am using JDk1.6,Apche tomcat6 running on windows 32 bit system can anyone please give me a link or proper documentation or any sort of help regarding SSL secure socket…