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

Java 6 G1GC - Repeated full GC

We have a Java application which is configured to use Java 6 with G1GC collector. Recently we observed that Full GC gets stuck in repeated attempts even though there is enough memory (per GC logs). Has anyone come across such scenario for Java 6…
Anmol
  • 3
  • 2
-1
votes
1 answer

Want to Build 2 Applications in 2 different jdk and then Run in 2 Tomcat servers

I have 2 separate applications to build (using maven command) and run in 2 different Tomcat servers. My 1st appl. should be built in jdk-6, while the 2nd appl. in jdk-7 and then deploy the .war file in Tomcat's webapps folder. I am currently…
Prosen
  • 72
  • 1
  • 11
-1
votes
1 answer

The constructor SQLException(String) is undefined

Using jdk1.6, there SQLexception(String s) is defined. But in my workspace it showing that SQLexception(String s) is undefined, please help.
nitincse
  • 1
  • 2
-1
votes
1 answer

SQL performance on PreparedStatement vs keeping an open connection

I'm writing a program that reads lines from a csv file, for each of these lines it checks against an different database for some additional data and it finally inserts the newly constructed data in a mysql DB. BufferedReader br = new…
Copernicus
  • 29
  • 1
  • 10
-1
votes
1 answer

How to change de jre enviroment on websphere 8.0?

I have an App on java, I've created the war file and I uploaded it on WebSphere 8.0 but when I run the app WebSphere shows this: Screenshot of errors These errors reference to: <% int proceso = (Integer) request.getAttribute("proceso"); …
Gesser
  • 1
  • 1
-1
votes
2 answers

Delete via HQL bulk operation with rollback

I'm looking for an eloquent way to delete multiple entities inside a transaction. Given a list of ids, I would like to throw an exception if the count of affected rows differs from the list count. Currently I use the below snippet, but it involves…
Andreas
  • 4,937
  • 2
  • 25
  • 35
-1
votes
1 answer

try with resource equivalent in java 6

I have a filter class for which I am using try with resources in java7. But I need to implement this in java6. I need help in writing the equivalent code in java6 for this: public final class YourContext implements AutoCloseable { private…
-1
votes
1 answer

Safe refactorings when migrating from Java 6 to Java 7

What are safe refactorings when migrating an application from Java 6 to Java 7? For example one can consider using the new diamond operator, the new automatic resource management a.k.a. try with resources, multi-catch functionality but are there any…
Adrian
  • 6,013
  • 10
  • 47
  • 68
-1
votes
1 answer

A matter in the method "transfer " in HashMap ( jdk 1.6 )?

the source code is like this: void transfer(Entry[] newTable) { Entry[] src = table; int newCapacity = newTable.length; for (int j = 0; j < src.length; j++) { Entry e = src[j]; if (e != null) { src[j] =…
CAFEBABY
  • 1
  • 3
-1
votes
1 answer

JAXB unmarshal won't work with JDK 1.6

Yes, this is a long boring posted question which is maybe very simple at the same time. :( I just calling a SOAP WebService interface implemented with .NET platform from Java. After the data received, converting it to java objects using…
lfree
  • 1,880
  • 3
  • 24
  • 39
-1
votes
1 answer

Error after upgrading android studio 1 to 2 , won't launch

when i try to lunch android studio after upgrade i get Android studio Ver. info Java_Home environment variables
Mohamed Elrashid
  • 8,125
  • 6
  • 31
  • 46
-1
votes
3 answers

Removing characters from left until another character appears. Need best way for this

I need to write an string utility function where i have to remove characters until another character appears. Here is the example, String inputString="a!a*!b7!123!a!"; String removeString="a!"; starting from the left of each character in…
Hari
  • 441
  • 6
  • 15
-1
votes
1 answer

Looking for a Docker Maven plugin that supports Java 6

So I wish to create a docker container from my Java 6, Maven project. I tried a whole bunch http://search.maven.org/#search%7Cga%7C1%7Cdocker%20maven%20plugin but everyone failed with either a Unsupported major.minor version 51.0 or Unsupported…
pookieman
  • 2,981
  • 2
  • 14
  • 8
-1
votes
1 answer

Eclipse will not run when JDK is specified in eclipse.ini

Eclipse will not run when I specify where the JDK is location on my machine. has this happened to anyone before? I've read similar answers to questions like this but they haven't been helpful. When I remove the path to the JDK it works fine. This is…
TrevDroid
  • 85
  • 3
  • 11
-1
votes
1 answer

convert a String date of format "dd/MM/yyyy HH:mm:ss" to * java.util.Date of format dd/mm/yyyy HH:mm:ss

/** * * Purpose: * * 1. Need to convert a String date of format "dd/MM/yyyy HH:mm:ss" to * java.util.Date of format dd/mm/yyyy HH:mm:ss and convert that to * java.sql.Date to send to database table column of type Date. * */ public class…
spiderman
  • 10,892
  • 12
  • 50
  • 84