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

Map Reduce: Wordcount don't make anything

I want to write my own word count example using MapReduce and hadoop v. 1.0.3 (I'm on MacOS) but i don't understand why it doesn't work Sharing my code : main: package org.myorg; import org.apache.hadoop.fs.Path; import…
Neptune
  • 607
  • 2
  • 8
  • 19
0
votes
1 answer

Java 6u16 stopped with no reason on Window Server 2008 R2 SP1

I have a Java application running on Window Server 2008 R2 SP1 (Under Copyright 2009) with JVM 6u16 x64, my program will write log in every 5 seconds to show it is still alive, however, the program itself has stopped writing log for 10 to 20 seconds…
0
votes
1 answer

Issues setting classpath in Java application to see Hibernate config file

I am trying to set-up the classpath for a Java application I wrote, and I'm a little stumped as to what I am doing wrong. I've taken a look at the Oracle Java 6 classpath documentation here:…
Chatoyancy
  • 143
  • 1
  • 17
0
votes
1 answer

Cannot get the real path of a file in the project folder

Within a jsp file i'm trying to navigate to load xml file. The location of the JSP file is /projectFolder/layout/applicationName/index.jsp the location of the xml file /projectFolder/data/files/myfile.xml The location of the project folder is…
Maro
  • 2,579
  • 9
  • 42
  • 79
0
votes
2 answers

JSP compilation fails on Weblogic 10.3 but works on Weblogic 10

I have below piece of code in one my JSP <%@ page language="java" import = "import com.ecc.SiteAdmin.servlets.*" %> This file compiles and works fine on Weblogic 10 with Sun JDK 5, but fails with below message on Weblogic 10.3 with JRockit…
Ravi Gupta
  • 4,468
  • 12
  • 54
  • 85
0
votes
1 answer

Two Integer resolved to the same hashcode in java (windows platform)

I got the issue that two integer resolved to the same hashcode in the testcase as below: public class Test { private final static Logger log = LoggerFactory.getLogger(Test.class); private final static LinkedHashMap map = new…
Gazit
  • 13
  • 2
0
votes
2 answers

Error message when opening a file

I just got a java project from a friend of mine but whenever i go to open it in net beans i get an error message saying that "Problem: the project uses the java platform called JDK_1.6 but this platform was not found solution: click resolve and…
0
votes
3 answers

Is JAVA DB compliant with Oracle 11 G?

I am using JAVA DB (Part of JDK1.7) for my development environment. We have Oracle 11g on our SIT environment. I was researching whether JAVA DB (Which is based upon Apache Derby) is compliant with Oracle 11g i.e. Will I need some changes in my…
Atul Kumar
  • 75
  • 1
  • 13
0
votes
1 answer

how to revert back to java 6?

I upgraded to java and set to following advance envirnment variables frrom windows UI(not by command prompt) JAVA_HOME = C:\Program Files\Java\jdk1.7.0_51 PATH = %JAVA_HOME\bin% when i do java - version it reflects the right java version as…
user3198603
  • 5,528
  • 13
  • 65
  • 125
0
votes
1 answer

Recursive JavaPlugin2_NPAPI.plugin after installing Java for OS X 2013-005

After installing Java for OS X 2013-005 update for Mavericks, I follow this Re-enable article to re-enable Java 1.6 but noticed something quite wrong. Problem is that whenever I verify Java with javatester, I always see empty box without anything.…
James
  • 305
  • 2
  • 11
0
votes
1 answer

GWT 2.6 - Java 6 conflict

I'm trying to migrate to gwt 2.6 in a project compiled using java 6 The project is made of a library based on gwt and a gwt application. When launching my app I get a "javascriptObject major.minor 51.0 exception" I know that it's because of gwt 2.6…
Adnane.T
  • 280
  • 1
  • 4
  • 13
0
votes
2 answers

How do I select my JDK version in CloudBees Jenkins?

I want to use 1.6 and I've configured it as my JDK version for my Jenkins job, but it keeps building with Java 7 instead. Why is this happening and how can I fix it?
0
votes
1 answer

Can the helloworld-spring-webapp from Jersey 2.5 examples be deployed on WebSphere 7 ?

I was able to deploy it on WebSphere Liberty 8.5.5 but not on 7. I understand that WebSphere 7 needs Servlet 2.5 and below. Updating POM with latest versions of Jersey & Spring with Java 6, still throws runtime errors.
0
votes
1 answer

How to add java plugin to firefox profile using selenium webdriver

I want to add java 6 plugin to firefox profile using java code and selenium. Please any one help how to add plugin to profile
user3016945
  • 265
  • 1
  • 6
  • 10
0
votes
3 answers

Valid TimeStamp difference between JDK 6 & JDK 7

Is the below statement valid in Java 7? Timestamp.valueOf("0000-00-00 00:00:00.000000"); because building the above code with JDK 1.6 works just fine but while doing the same with JDK 1.7 I am getting: Timestamp format must be yyyy-mm-dd…