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

compile errors with junit

I am trying to get some code form a course to work on my current installation: eclipse 3.4.2, a project with jdk1.60_13, JUnit 4_4.3.1 but the JUnit types Theories and @DataPoint cannot be resolved. Also e.g. the replay() and verify() methods are…
Gerard
  • 13,023
  • 14
  • 72
  • 125
0
votes
1 answer

Invoke EJB3 deployed on JbossAS7.1 from oracle 11g stored procedure

As part of our application, we have a requirement to invoke a EJB3 SLSB method from Oracle 11g stored procedure. EJB3 app runs on JbossAS7.1, JbossAS7.1 supports remote lookup of EJB's using its on remoting API's. The Jboss client 7.1 jar is not…
SunilGiri
  • 71
  • 8
0
votes
1 answer

Which JDK to compile commons-dbcp-1.2.2 ? (problems with JDK5/6/7)

When I try to compile commons-dbcp-1.2.2 with JDK6/7 I get this error: org.apache.commons.dbcp.BasicDataSource is not abstract and does not override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper This is because…
Nicolas Raoul
  • 58,567
  • 58
  • 222
  • 373
0
votes
4 answers

How do I handle floating point value inputs for values greater than Float.MAX_VALUE

I have an api which takes a number as a String input and i need to get the Float value of the number. I currently use the Float.ParseFloat method to get the float value of my String number. According the java documentation of Float.ParseFloat, it…
Arvind Sridharan
  • 3,885
  • 4
  • 29
  • 54
0
votes
2 answers

Glassfish server jdk not found

I am going to setup glassfish with eclipse. Glassfish server has installed with eclipse but now when i tried to run any jsp , it shows this error. "GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server…
khan
  • 2,664
  • 8
  • 38
  • 64
0
votes
1 answer

Querying web app with java 6 bytecode on a tomcat running under Java 7

I have following scenario. My web app is in Java 6 bytecode and I deployed it on a tomcat which runs unders Java 7. I can query the web app via an java api. Now my question: Does is make sense to query the web app using java 6? Or does it only make…
Horace
  • 1,198
  • 2
  • 17
  • 31
0
votes
4 answers

How do I link a Java 1.5 class with a Java 1.6 class?

Using a Java 1.5 compiler, when I try to compile a java class that depends on a class that was compiled with Java 1.6, I get this error: in/javac Java15.java Java15.java:5: cannot access Java16 bad class file: ./Java16.class class file has wrong…
Jay Sullivan
  • 17,332
  • 11
  • 62
  • 86
0
votes
1 answer

Java 1.6 Applet and Mac OS X, is there an official issue here?

I'm developing an applet in Java 1.6 which is supposed (ofcourse) to run on Mac and PC. However people with Mac seems to all have Java 1.5 installed even due they keep thier software updated with the Mac update tool. This seems very strange to me…
Viktor Sehr
  • 12,825
  • 5
  • 58
  • 90
0
votes
2 answers

can we install 64bit jdk on 32bit CentOS

I have a 64bit jdk 1.6 installer . Can I install java on centos 5.8 32 bit using a 64 bit installer. If so what would be the command to achieve the same. TIA.
digvijay
  • 189
  • 1
  • 5
  • 16
0
votes
1 answer

Eclipse error - while creating backup for 'project-desc'

When I try to create a new Java project in eclipse indigo on Windows 7 I get the following error with a JDK 1.6: An error occurred while creating project. Check log for details. Reason: Problem while creating backup for 'project-desc' The system…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
1 answer

How to consume a web service in java which returns the data in json format

This is the first time i am posting here ,so pardon me if i go wrong somewhere My question here is : i would like to write a web service client in Java , that would consume json data from web service . Any pointers to begin with or reference…
0
votes
2 answers

jdk1.6 update 32 and JavaFX2.1 does work?

i am trying to create a embedded browser using the JavaFX2.1 by using jdk1.6 update 32 however it looks like that all the programs are not working because of jdk1.6u32. but at the requirement its clearly mention that JavaFx2.1 will work with the…
rbhawsar
  • 805
  • 7
  • 25
0
votes
2 answers

Ubuntu to install jdk1.6

I was trying to install jdk1.6 onto my Ubuntu 10.04. However, It looks like jdk1.6 is no longer available in Ubuntu repository(at least, i havent found it yet). In my case, I need to install jdk1.6 as my java version instead of openjdk. Could anyone…
Sam
  • 4,521
  • 13
  • 46
  • 81
0
votes
2 answers

Java version compatibility when working with different api in different version for same task

i wrote a applet for screen Capture for jre 1.7, jre 1.6 and jre 1.5. The applet has to use transparent background for it's window. But for translucency jre 1.7(graphicDevice window Translucency) and 1.6(awtutilities) uses different api and there is…
E V
  • 43
  • 1
  • 7
0
votes
1 answer

How to create a TCP/IP Socket connection pool on IBM WebSphere Application Server 8?

I have a situation where every request handled by my web-application that is deployed on IBM WebSphere Application Server 8 has to talk to a remote system via a Socket connection. Is possible to create a connection pool for the Socket connections in…
user1282545
  • 167
  • 4
  • 11