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
3 answers

StringBuffer object comparision

I have created two StringBuffer as follows StringBuffer buffer1 = new StringBuffer("Text"); StringBuffer buffer2 = new StringBuffer(buffer1); If Compare those StringBuffer with equals method then it returned false? if (buffer1.equals(buffer2)) …
Saravanan
  • 11,372
  • 43
  • 143
  • 213
0
votes
1 answer

Android SDK won't run-Windows 7 ultimate x64

Whenever I try to launch Android SDK, a cmd window just flashes and nothing happens. I have JDK version 1.6 and 1.7 installed. When I try to launch Android.bat from the tools folder, I get this: (broken link) Java.exe is in system32. I've been…
m1l4droid
  • 3
  • 2
0
votes
1 answer

java.io.NotSerializableException raised when JMX raises notifications

Hello recently I started working on a JMX bean implementation. I then publish the below bean, run JConsole, connect to the bean, register for notification. However when the notification is sent i get the following error: Apr 13, 2012 5:31:26 PM…
jonatzin
  • 922
  • 1
  • 13
  • 30
0
votes
2 answers

Building android on ubuntu 10.04- 32 bit

I am trying to compile Android for Ubuntu 10.04 32 bit system. I am following the guide on http://source.android.com/source/initializing.html But I get the following error: You are attempting to build with the incorrect version of java. Your version…
user489152
  • 907
  • 1
  • 23
  • 42
0
votes
2 answers

Run multiple string replaces with fewer calls to .replace()

I'd like to condence the following code into fewer calls to .replace(). It doesn't look like .replace() will do this. Am I right or am I just reading the documentation wrong? public void setBody(String body) { this.body = body.replace("“",…
Ben
  • 60,438
  • 111
  • 314
  • 488
-1
votes
1 answer

Why do multiple Oracle JDK binaries differ on different machines when installed from the same RPM?

We have a number of machines with the Oracle JRE and JDK installed from RPM on our RHEL 5.x system (e.g. java-1.6.0-sun-devel-1.6.0.26-1jpp.1.el5.x86_64 and java-1.6.0-sun-1.6.0.26-1jpp.1.el5.x86_64 ). I mounted the JVM directory and compared them…
-1
votes
2 answers

Error with weblogic upgrade from 10.3 to 12.1.1

I'm trying to upgrade weblogic 10.3 to 12.1.1 but I'm receiving the following error, could someone have an idea about this? I am not very clear about the error. I tried to upgrade first to 10.3.6 and I receive the same error
-1
votes
1 answer

Google Chrome version 91 causing legacy JSP with Struts to lose data and formatting

UPDATE IN ANSWER BELOW Is anyone else experiencing the newest couple versions of chrome causing issues with legacy Java applications? Just yesterday I needed to get the company's policy manager to allow downloading files from an internal unsecured…
Darrel Holt
  • 870
  • 1
  • 15
  • 39
-1
votes
3 answers

How to run old school Java programs with latest Java LTS 11?

I want to run Siemens LOGO Soft Comfort. dell@dell-Precision-M6400:~/Hämtningar/Logo 6.1/Linux/tools/Application$ ./LOGOComfort Unrecognized option: -Xincgc Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred.…
euraad
  • 2,467
  • 5
  • 30
  • 51
-1
votes
4 answers

Which version of Java 1.6 is the most stable?

Experts need some help in deciding stable java version. We are planing to move our application from java 1.4 to 1.6, Which version of Java 1.6 is stabler one.
Sujeet
  • 104
  • 1
  • 2
  • 10
-1
votes
2 answers

How to get the Date with offset taken into account from XmlGregorianCalendar?

i have an XMLGregorianCalendar in this form: 2019-06-24T18:18:55.007+02:00 How can i get the right date (with offset taken into account) in String like this : 24/06/2019 16:18 ?
NashBird99
  • 193
  • 2
  • 12
-1
votes
1 answer

ASCII Char remove not functioning

If a string contains any non-ASCII value, i need to to delete it. I have tried replaceAll mrthod which is working fine with jdk 1.8 and above. but i want to deploy the same on jdk 1.6 and is it not functioning. String Remarks2 ="hii:╘’i"; String…
Shreyas
  • 11
  • 3
-1
votes
1 answer

How to sort files by creation date using java 1.6

I have a folder with files in there, I have to sort those files by their creation date. So I want to sort from the oldest to the newest file by creation date. I saw many answers working with java nio but since I am working with java 1.6 I can not…
Matt Zdj
  • 59
  • 8
-1
votes
1 answer

Remove Bracket [*TESTABC*] along with content from String prefix in java

I am having string as below and want prefix to be removed [*TESTABC*] String a = "[*TESTABC*]test@test.com"; Expected result: test@test.com I tried below code but it is removing the bracklets only. I need to remove the inner content also. The…
Manan Kapoor
  • 675
  • 1
  • 11
  • 28
-1
votes
1 answer

Websphere 7.0 throwing 503 exactly after 180 seconds when the external service hasn't replied yet

I developed a struts2 application that writes the files to an external system (RESTful web service that has been written in PHP) which has to convert the files to TIFF and also scan these files. Here's the code snippet: HttpURLConnection conn =…