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

java 6 call string intern method a good idea at app start up?

good idea to call : "".intern(); in a enterprise app at start up (once, like in the first servlet initialization?) so all subsequent Strings that have empty string value are the same reference? and taking it further will there be significant gains…
tgkprog
  • 4,493
  • 4
  • 41
  • 70
0
votes
0 answers

Shaped JDialog: Dragging in JTextField causes window to move

I'm using a transparent (shaped) JFrame under Java 6 with Mac OS X. My system tells me that Translucency.PERPIXEL_TRANSLUCENT is supported. Although my system tells me that Translucency.PERPIXEL_TRANSPARENT is not supported, I found out it works…
trainrobbery
  • 500
  • 3
  • 14
0
votes
1 answer

Using JavaFX and Java 1.6 on Intellij

How can I configure my intellij IDE to point to JavaFX SDK ?
thiru_k
  • 847
  • 2
  • 12
  • 21
0
votes
1 answer

Check API problme when compiling Android (checkapi-current-timestamp)

I got the following error while compiling android source code for the first time on Ubuntu 12.04, I have not chenged the source code at all abd suggested command in error "make update-api" didn't help me repo sync source build/envsetup.sh lunch…
no0o0ob
  • 21
  • 2
0
votes
1 answer

Adding JDK dependencies to jboss 6

I am using JBOSS EAP 6.1 using JDK 1.6. I have registered all my dependencies as static module. I have dependencies on JDK apis. During deployment I am faced with following issue: java.lang.NoClassDefFoundError:…
Nabeel
  • 184
  • 2
  • 12
0
votes
1 answer

How to run a process from memory/RAM as the "current working directory"

In Java 6 on Windows, I am interested in performing the following task, but really not sure how to go about it. I want to take a zip file unzip its contents into a spot in memory/RAM Create a Java Process that will run a .EXE file that exists…
E.S.
  • 2,733
  • 6
  • 36
  • 71
0
votes
2 answers

Error in starting tomcat 5.0 from cmd prompt "The system cannot find the file -Djava.endorsed.dirs=."

I am executing a web app which is in tomcat 5.0 web app folder when i am trying to start tomcat 5.0 i am getting this error "The system cannot find the file -Djava.endorsed.dirs=. Below u can see the error i am…
saikiran
  • 2,247
  • 5
  • 27
  • 42
0
votes
1 answer

javax.persistence.PersistenceException in Hibernate

I have generated POJO's and corresponding hbm.xml mapping files from a database. I wanted to test whether this worked correctly so I created a simple HelloWorld that reads all the data in one Table and prints it. When I attempt to run this, a…
diestl
  • 2,020
  • 4
  • 23
  • 37
0
votes
2 answers

Java 6 | SOAP Webservice generating without embedding it inside some parameter

I am trying to integrate with some legacy application in which they already have defined their message format as well as data structure. Now we use Java 6 to publish our web service via following code: Endpoint.publish(urlString, new…
tarunkumar
  • 861
  • 2
  • 15
  • 30
0
votes
1 answer

Map of lists: collision of elements

I found a strange behavior of this Java code. I need to store a map with an integer as key (used to identify the entity) and a list of Article (basically a Java bean) so, I defined it in this way: HashMap> articles = new…
Andrea Girardi
  • 4,337
  • 13
  • 69
  • 98
0
votes
2 answers

Invalid memory access of location Java - AWT-AppKit Thread - launching Web Application

my configuration: Mac OS X 10.8.4 Processor 2.4 GHz Intel Core i7 Memory 8GB JDK 1.6.0_38-b04-436.jdk I think, but I am not sure, this error started to show up after a App Store Java Update... When I launch my web application, I keep getting this…
ahebert
  • 63
  • 8
0
votes
7 answers

SCJP Object Orientation Issue

I have a problem in understanding Question no.9 from Chapter Object Orientation from the SCJP book by K&B. Question: public class Redwood extends Tree { public static void main (String [] args) { new Redwood ( ) . go ( ) ; } void go ( ) {…
Wizard Sultan
  • 830
  • 7
  • 22
  • 45
0
votes
0 answers

build in Maven 2.2.1 with JDK 1.6 and JDK 1.7 what changes are needed in pom.xml

While building the project in Maven 2.2.1 as some of my projects are in JDK1.6 and some in JDK 1.7.I need to build the entire modules. What are the changes shall I need to make as I am getting the below error: [ERROR] BUILD FAILURE [INFO]…
0
votes
1 answer

MySQL 5.1.32-community and JDK 1.6.0_16

I have this real weird exception when issuing a basic SELECT, using MySQL 5.1.32-community from JDK 1.6.0_16 code. The conditions to repeat : at any place in my app, if i change the date of my OS (WindowsXP SP3) and after that hit some refresh…
hypercube
  • 958
  • 2
  • 16
  • 34
0
votes
1 answer

Exception in thread "AWT-EventQueue-0" Tower Defense (Componet.y is not visible)

I making a simple tower defense game, but for some reason i get a error on 'y' saying 'componet.y is not visible.' I can include any of the other classes if you need me to then just ask :). Here is the code: import java.awt.Color; import…