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

"Unsupported major.minor version 51.0" in Netbeans

I know that the title is almost identical to other questions, but, I've not been able to resolve my problem with those answers. This is the problem: I have 2 almost identical projects (one has been cloned from the other with mercurial) and some…
Federico Nafria
  • 1,397
  • 14
  • 39
0
votes
2 answers

Mac jre/jdk 1.7 not working

Bear with me because I don't know all of the technical term but here is my problem: I am trying to use code from another person which I downloaded onto my computer (Mac OS X Lion). It is from a computer that uses JRE 1.7 and when I try to run it on…
user1801325
  • 101
  • 2
0
votes
1 answer

Comparing ENUMs in Java 6

I am trying to find best way to compare Enums in Java 6. Say, I have an ENUM of Ticket Types which can be associated with a Traveler. If there is a list of travelers, I would like to know the traveler with the highest class of travel. I can iterate…
aprajitha
  • 345
  • 1
  • 7
  • 18
0
votes
1 answer

Run small code snippet run with jdk 5 and rest of code with jdk 6

Is it possible to run small code snippet run with jdk 5 and rest of code with jdk 6? Have one code which is working fine with jdk 5. I am going to change it as per jdk 6 but currently don't have time to do this. So is there any way to execute 4…
user1041580
  • 209
  • 2
  • 6
  • 13
0
votes
1 answer

How to change text size for a Status Widget in GXT

I need to create a info message for a FieldSet which contains a grid. I am setting the message using: Status status = new Status(); status.setText("You can choose max 40 persons"); status.addStyleName("x-form-info-tip"); But in the output, the…
beebris
  • 55
  • 2
  • 9
0
votes
0 answers

Maven android build gives compile time errors as if it's building with -target=1.5

During my maven build I'm getting errors like this: [ERROR] /sandbox/mobile-apps/quickdroid/test/src/com/xxx/MyActivity.java:[14,21] java.util.LinkedHashMap.Entry has private access in java.util.LinkedHashMap I created a simple test project with one…
thepner
  • 479
  • 3
  • 13
0
votes
2 answers

Using JDK 6 style classpath with javac ANT compile task

Does anybody have an example of using JDK 6 style - only defining the directory and not list of each and every jar in the directory - classpath with an ANT javac compile task? We tried it like this…
adbdkb
  • 1,897
  • 6
  • 37
  • 66
0
votes
1 answer

This class does not support SAAJ 1.3

In trying to call a webservice from a portlet from Glassfish to a webservice hosted remotely on weblogic we are getting this error: Caused by: java.lang.UnsupportedOperationException: This class does not support SAAJ 1.3 at …
M Smith
  • 1,988
  • 15
  • 28
0
votes
2 answers

How to make JFrame transparent in JDK 1.6?

In JDK 1.7 I use setUndecorated(true); and setBackground(new Color(0, 0, 0, 0)); to make my frame transparent. This works perfectly but when I change the project to 1.6 this same code just makes the frame its original blue-ish color. I don't want to…
Zakukashi
  • 566
  • 1
  • 13
  • 29
0
votes
0 answers

Have jre7; JAR is jre6 compiled; can't run

I built a JAR in NetBeans, setting the Source/Binary Format to JDK6. So it's compiled to jre6. I can use the JAR (outside the IDE), but if I send it to a machine with jre7, I have to alter the environment variable to get it to execute from the…
0
votes
3 answers

Method argument of different types

I want to write method that would accept parameter of types a.A or b.B. Currently it's implemented: import a.A; import b.B; ... public void doSth(A arg) { SpecificClass.specificMethod(arg); } public void doSth(B arg) { …
bontade
  • 3,194
  • 6
  • 48
  • 75
0
votes
1 answer

Java 1.6 has runtime errors reading a file when 1.7 is fine

i have been working on an assignment on my own PC using JDK v1.7, and i have to submit my assignment on my uni's Unix computer with java version 1.6. All of my code executes fine on my machine, and when i SSH into my uni's computer and transfer my…
thorium220
  • 41
  • 1
  • 5
0
votes
1 answer

Is there any way to develop a Java 1.5 application using Cucumber-JVM?

Cucumber-JVM has dependencies on Java 1.6 My client's application runs on Java 1.5 and this can't be changed at the moment Does anyone know a way to use Cucumber-JVM to exercise my client's application?
Seb Rose
  • 3,628
  • 18
  • 29
0
votes
1 answer

not getting prompted for keypass while enerating a SSL certificate for tomcat

I am trying to enable SSL on tomcat and user the following command to generate my keystore /jdk1.6.0_23/bin/keytool -genkey -alias grc -keyalg RSA -keystore keystore -storetype pkcs12 this works fine and a keystore is generated, however in all…
Codrguy
  • 649
  • 1
  • 7
  • 17
0
votes
1 answer

Java Hello World App Does Nothing on Launch When Image Displayed

I've got a small "hello world" app I've created, using JFrame/JPanel, and it works flawlessly inside my IDE (Netbeans). I tested it with just drawing a string to the screen using Graphics.drawString(), and it worked perfectly both in the browser,…
BumbleShrimp
  • 2,150
  • 23
  • 42