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
8
votes
2 answers

how to set java version path to firefox in runtime

Please anyone help me to set java version path in Runtime. i installed two java versions in different directories.but i need to use java 7 compile code to execute appliction using java6 version. I need to set java 6 path for firefox browser could…
user3016945
  • 265
  • 1
  • 6
  • 10
8
votes
3 answers

Java 7 is 8x slower than Java 6 on some basic parsing tasks

I recently noticed a specific part of my code is running significantly slower since I updated to Java 7. Pretty surprising as Java 7 is globally faster than Java 6. The program is pretty large but I succeeded to extract a reproducible code to…
Maike
  • 148
  • 6
8
votes
4 answers

Tomcat: Trouble with SSL https connection on port 8443

We are having trouble with the https (port 8443) connection on an app that runs on Tomcat 7. The app is running fine on http (port 80) now. I have uncommented the "Define a SSL ..." section in the server.xml file and set all the property values (see…
user2526641
  • 319
  • 1
  • 4
  • 19
8
votes
2 answers

Collection safer than standard list with generic type?

I use generics in Java but it isn't so good as I thought public static void add(List l, Object o) { l.add(o); } public static void main(String[] args) throws Exception { List list = new ArrayList(); add(list, "1.23"); …
Kalamar Obliwy
  • 861
  • 2
  • 8
  • 13
8
votes
2 answers

Generic support for ISO 8601 format in Java 6

Java 7 has introduced support in the SimpleDateFormat class for ISO 8601 format, via the character X (instead of lower or upper case Z). Supporting such formats in Java 6 requires preprocessing, so the best approach is the question. This new format…
PNS
  • 19,295
  • 32
  • 96
  • 143
8
votes
3 answers

Java self type recursive type parameters and inheritance error in javac

Why does this code not compile? public class x { private void test() { handle(new ThingA()); handle(new ModifiedThingA()); } private , X extends T> java.util.List handle(X object) { …
Jesse
  • 3,751
  • 1
  • 21
  • 19
7
votes
3 answers

validateTree in Java 7.x doesnt work (in Java 6.x was fine)

My version of java is: Java Plug-in 10.3.1.255 Using JRE version 1.7.0_03-b05 Java HotSpot(TM) Client VM So when I had version 6.x everything was fine, after upgrading I've got this: Exception in thread "AWT-EventQueue-0"…
user1276830
  • 91
  • 1
  • 2
  • 3
7
votes
4 answers

What is the reason behind putting two jre, one in jdk and one outsite jdk in the java folder in Program files

I have see two jre in the java folder one in jdk and one outside jdk. Can you tell me the what is the reason behind having these two jre?
Naveen Chauhan
  • 2,026
  • 8
  • 33
  • 40
7
votes
4 answers

Unsupported Class Version Error

While trying to call an EJB made using NETbeans (using jdk1.7) from a client made using Eclipse IDE (using jdk1.6), I am getting following error- Exception in thread "main" java.lang.UnsupportedClassVersionError: stateless/TestEjbRemote :…
Rohit Elayathu
  • 629
  • 6
  • 12
  • 26
7
votes
1 answer

Set custom cursor when dragging external file into Swing app

I have a swing application into which I would like to import an external file by dragging the external file from windows explorer onto the application. I have this basic functionality working. However, I would like to change the default drag/drop…
agility
  • 79
  • 3
7
votes
4 answers

Unit testing finally blocks in Java 6

While reviewing my code coverage i noticed a lot of Unit tests fail to check finally blocks which try to close open InputStreams in finally blocks. One Example excerpt is: try { f = new BufferedInputStream(new FileInputStream(source)); …
fyr
  • 20,227
  • 7
  • 37
  • 53
7
votes
3 answers

OutOfMemory GC overhead limit exceeded to acquire lock on log4j Objects

Can anyone please help me to identify the exact are of problem. Is it either JVM, Log4j or something else in our application? We are running a multi-threaded application using JDK 1.6.0.24 on Solaris 10 (SUNW,Sun-Fire-V240) Server. Which has RMI…
Lokendra Chauhan
  • 367
  • 1
  • 6
  • 18
7
votes
8 answers

Installing Java 6 on Mac OS

Is it possible to install the latest JDK on Mac OS 10.5? What are the best options, considering that the Apple-supplied version is 1.5? Update: I am trying to install JDeveloper 11, which requires JDK 6.
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
7
votes
1 answer

How do i set up IntelliJ IDEA for android applications on a MAC

I see this post How do I set up IntelliJ IDEA for Android applications? and it looks great, except I can't find the JDK on my machine (MacBook Pro) I know I have java installed, from the command line I get this: TheThing:android bryce$ javac…
b-ryce
  • 5,752
  • 7
  • 49
  • 79
7
votes
1 answer

No idea annotations attached to the jdk

I have installed Java 8 to my IntelliJ Idea. I have added path to jdk in Idea. And when I start my project I see that message: no idea annotations attached to the jdk What I need to do to fix that?
Felay
  • 221
  • 3
  • 8