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

How to add JSplitPane between the JTabbedPane and its components?

This is my code given below as: theJTabbedPane.addTab(CODING, new javax.swing.ImageIcon(getClass().getResource("/com/sysvine/healthpractice/gui/images/tablet.png")), aPanelDiagIcd);//Constant.getTextBundle("5.การวินิจฉัย") …
0
votes
1 answer

Handle subclass of arraylist as an array

We have an Jersey REST-API annotated with Swagger annotations. The swagger UI works with the exception of one class. This class extends ArrayList. And I expect that this class is handled by swagger as an array. But this is not the case. It is…
thersch
  • 1,316
  • 12
  • 19
0
votes
0 answers

JRE 1.6 garbage collection fails to terminate threads

I've been developing my Java application on JDK6 and running under JRE 6 and 7. All worked fine. I had to get myself a new notebook recently, so I installed latest NetBeans with JDK7 and set project configuration to "Source/Binary Format: JDK 6".…
user3621424
  • 146
  • 1
  • 2
0
votes
0 answers

Sharing properties between web applications on tomcat

What would be the most efficient design pattern/coding practice to share services between two web applications, that access resources (properties files for example), without duplicating code in both web applications? Two web applications running on…
0
votes
1 answer

How do I assign JUnit output to a String?

I want to create bugs reports in my issue tracking software when unit tests fail. This means I need to save what normally is printed to my IDE's console when a test fails as a String. Thus far, I have the following code: @Rule public ErrorCollector…
JaneGoodall
  • 1,478
  • 2
  • 15
  • 22
0
votes
1 answer

TestNG blocks build of Netbeans 8 project (Java 6)

I'm developing a web project in Java 6 with Netbeans 8. I recently decided to switch from JUnit to TestNG in the most standard way possible: the TestNG library is automatically enabled when I add a TestNG Test Case to my Netbeans project ... ... And…
blagae
  • 2,342
  • 1
  • 27
  • 48
0
votes
1 answer

Shell execution of existing shortcuts works, but execution of new shortcuts fails. Why?

When executing a Windows shortcut in Java (and possibly .NET and other platforms), execution of an existing shortcut works without issue, but new shortcuts fail to execute regardless of settings, permissions, working directory, contents of the…
Charles Burns
  • 10,310
  • 7
  • 64
  • 81
0
votes
2 answers

Porting jdk1.6 compiled jar on android

is there any direct way to port the jdk 1.6 jar file in android project? We have ID card reader jar file and its dependent jar file which built using jdk1.6. is there any possibility use these jars as it is on android platform?
AmitK
  • 120
  • 1
  • 6
0
votes
2 answers

Read a file using URL

I am trying to read a file using URL in java. FileHelper.read(new File(getClass.getResource("TextFile.rtf"))) I am really confused with the below exception error: overloaded method constructor File with alternatives: (java.net.URI)java.io.File…
user1993412
  • 802
  • 2
  • 15
  • 29
0
votes
3 answers

How to return a subclass of parameterized return type whose parametric type is a subclass of the return type's parametric type?

The title sounds a bit complicated, but in fact the question is quite simple. I have the following method: AbstractClassA myMethod() {...} And I want to invoke it like this: ClassAImpl result = myMethod(); The problem…
Ori Popowski
  • 10,432
  • 15
  • 57
  • 79
0
votes
1 answer

Install and switch from Java 6 and 7

I'm new on mac and I need to install both Java 6 and Java 7. My Mac's version is Mac OS X Lion 10.7.5 (11G63) The problem is I have found already installed Java 7 and I need to install Java 6 and switch between them because I have some projects…
carlitos081
  • 645
  • 2
  • 7
  • 19
0
votes
1 answer

get client IP for webservice on java 6 embbeded http server

I am implementing web service on java 6 weight light (embbeded) HTTP server jax-ws-web-services-without-java-ee-containers - for testing purposes - I want to get the client IP for each request. I tried to declare web service context in my web…
Moro
  • 2,088
  • 6
  • 25
  • 34
0
votes
1 answer

Java 6 SPNEGO Kerberos

I have a server that hosts several java applets, and I want to force authentication to get to them. Right now I have NTLM enabled and it works. When I disable NTLM and enable Negotiate (SPNEGO), Java 6 client will get stuck at "Server returned HTTP…
0
votes
0 answers

upgrade java from 1.5 to 1.6 on tomcat 5

I want to upgrade java version to 1.6 from 1.5. but i want to keep my tomcat server intact that is to 5.5.9. I need to know what are the possible key areas where i might face issues after upgrading? Or what should be the compatibility test criteria…
user3378974
  • 159
  • 1
  • 7
  • 18
0
votes
1 answer

Java SE 6u28 not available within archives to download

Any idea why Java SE 6u28 is not available to download within official archives? Found on guy who is currently on this version.
udarakr
  • 536
  • 2
  • 6
  • 18