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
13
votes
5 answers

\Java\jdk1.6.0_03\bin was unexpected at this time

Whenever I am starting my WebLogic server I am getting this error msg in my eclipse console: \Java\jdk1.6.0_03\bin was unexpected at this time. My m/c is a 64bit one.
Shantanu
  • 201
  • 2
  • 6
  • 15
12
votes
2 answers

Java 6 File Deletion

I am aware that this question is a raging duplicate of this question. However, I have now read that entire page twice, and some sections 3 times, and for the life of me I don't see how/where it is answered! So, on to my problem. I am at work and am…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
12
votes
1 answer

what is the role of "vm thread" in JDK 1.6

We are seeing lot of activity of this thread in our customer's system and hence would like to know what might be happening. any links, info, tutorials ? P.S : this is happening on Solaris 10 with JDK 1.6.0_23.
anjanb
  • 12,999
  • 18
  • 77
  • 106
12
votes
1 answer

Android SDK not found in Xamarin

I'm beginner of C# as well as Xamarin. I've installed Visual Studio and Xamarin but when I try to create a new project with Xamarin it shows me the following error in the output window. [I:sdk]: Looking for Android SDK.. [I:sdk]: Key…
vbvs
  • 173
  • 1
  • 1
  • 9
12
votes
3 answers

Specify Output Path for Dynamic Compilation

My dynamic compilation in Java 6 is working perfectly. However, I would like to change the output path. I have tried tons of things (I'll spare you) to no avail. Anyway, here's the working code String[] filesToCompile = { "testFiles/Something.java"…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
12
votes
2 answers

ANT script error after installing newer version of JDK on my system

After installing the newer version of the JDK 6 (1.6.0_41) from 1.6.0_37, I went into Eclipse and updated the Installed JREs in the Java section under the preferences menu. I then went into my ANT script to test some changes I made and when I tried…
Melinda
  • 1,501
  • 5
  • 25
  • 58
12
votes
3 answers

No com.sun.tools.javac in JDK7

I'm using JDK7 and Eclipse Indiago in Windows 7 64-bit. I set environment variable JAVA_HOME to F:\JDK7 and add %JAVA_HOME%\bin in path. It's my sample code: com.sun.tools.javac.Main m1 = new com.sun.tools.javac.Main(); m1.compile(source); Error I…
Michel Gokan Khan
  • 2,525
  • 3
  • 30
  • 54
11
votes
2 answers

Play framework - how to fix UnsupportedClassVersionError on JRE 6?

I was running my play app on OpenJDK 1.7. All was well and good until I tried to deploy to heroku, which only supports OpenJDK 1.6. I fixed the syntax to run on OpenJDK 1.6, however when I go to run it I get the following…
Erin Drummond
  • 5,347
  • 6
  • 35
  • 41
11
votes
5 answers

Old projects compatible with Java 7

My old projects use Java 6 (1.6), and I don't know when I update (Java 7), they can run fine ?
rebecca
  • 111
  • 1
  • 3
11
votes
1 answer

Operator '+' cannot be applied to Object and String

The following code: void someMethod(Object value) { String suffix = getSuffix(); if (suffix != null) value += suffix; [...] } compiles without errors in JDK 8 (using -source 1.6), but fails in JDK 6 with the error…
Grodriguez
  • 21,501
  • 10
  • 63
  • 107
11
votes
2 answers

Loading generic service implementations via java.util.ServiceLoader

I've stumbled upon some inconvenience the other day using java.util.ServiceLoader and some questions formed in me. Suppose I have a generic service: public interface Service { ... } I couldn't explicitly tell ServiceLoader to load only…
Kohányi Róbert
  • 9,791
  • 4
  • 52
  • 81
11
votes
2 answers

Closing a RandomAccessFile sometimes takes exactly 45 seconds

In my program, closing a java.util.RandomAccessFile sometimes takes exactly 45 seconds (well, almost exactly: between 44.998 and 45.003 seconds). The program creates and closes lots of small files. Usually closing the file is very quick (between 0…
Thomas Mueller
  • 48,905
  • 14
  • 116
  • 132
11
votes
1 answer

How does JDK 6 regexp compare with org.apache.regexp?

I'm interested in benchmarks and functionality? Is there are any reason to use Jakarta regexp?
yura
  • 14,489
  • 21
  • 77
  • 126
11
votes
4 answers

XercesImpl in conflict with JavaSE 6's internal xerces implementation. Both are needed... what can be done?

I am sure that I am not the first to encounter this conflict. The code that I have inherited does the following: org.w3c.dom.Document dom; // declaration javax.xml.validation.Schema schema; // declaration ... ... ... javax.xml.validation.Validator…
Yaneeve
  • 4,751
  • 10
  • 49
  • 87
11
votes
3 answers

Using default Providers/MessageBodyWriters in Jersey 2

Just starting with Jersey, I've been trying to reproduce the simple example in the latest Jersey documentation 'building responses'. This part, as far as I understand, should show how Response and ResponseBuilder can be used to easily return a…
Mark Tielemans
  • 1,528
  • 3
  • 20
  • 40