Questions tagged [jdk6]

For issues relating to setting up or using the Java Development Kit (JDK), version 6.

JDK or Java Development Kit is a set of tools that Oracle, formerly Sun Microsystems, provides for developing Java applications.

58 questions
1239
votes
45 answers

Android SDK installation doesn't find JDK

I'm trying to install the Android SDK on my Windows 7 x64 System. jdk-6u23-windows-x64.exe is installed, but the Android SDK setup refuses to proceed because it doesn't find the JDK installation. Is this a known issue? And is there a solution?
Simon
  • 5,703
  • 3
  • 16
  • 6
56
votes
4 answers

Does Android support JDK 6 or 7

I am new to Android development. Can I use my existing Java code developed using JDK 7 in Android? The functions use xerces dom and xslt and xpathapi. Currently when I installed Android Eclipse ADT environment these functions are not compiling. I…
user3084351
  • 561
  • 1
  • 4
  • 3
42
votes
6 answers

How to tell why a file deletion fails in Java?

File file = new File(path); if (!file.delete()) { throw new IOException( "Failed to delete the file because: " + getReasonForFileDeletionFailureInPlainEnglish(file)); } Is there a good implementation of…
Arne Evertsson
  • 19,693
  • 20
  • 69
  • 84
7
votes
3 answers

Prevent invalid date from getting converted into date of next month in jdk6?

Consider the snippet: String dateStr = "Mon Jan 32 00:00:00 IST 2015"; // 32 Jan 2015 DateFormat formatter = new SimpleDateFormat("E MMM dd HH:mm:ss Z yyyy"); DateFormat ddMMyyyy = new…
Farhan stands with Palestine
  • 13,890
  • 13
  • 58
  • 105
6
votes
1 answer

Using transparent window in both Java 6 and Java 7

I'm developing application in Java 6 (1.6.0_24) which using transparent JFrame to get disappearing animation. Here is my code: public static void slowDisappearWindowAction(Window source, int milisSlow, int milisFast) throws InterruptedException{ …
Demiurg
  • 347
  • 1
  • 4
  • 14
5
votes
2 answers

JDK6: when to use bundled JAX-WS implementation versus Project Metro

JAX-WS implementation bundled with JDK6 can be used to provide a web services server without any additional libraries. JVM will start with a WS server on a specified…
K F
  • 53
  • 1
  • 3
4
votes
3 answers

JDK6 libraries - compatibility with JDK7

Is JDK7 backward compatible with JDK 6? Specifically, if I have some jars compiled using JDK6, will I able to use them while developing in JDK7?
John Smith
  • 511
  • 1
  • 7
  • 14
4
votes
2 answers

Difference in Java Collection between JDK 6 and JDK8

I was wondering if the implementation of java.util.collections has changed between Java 6 and Java 8. I have this test that works fine in Java 6 but not in Java 8 Set types = new HashSet(); String…
Khalifa
  • 315
  • 3
  • 9
4
votes
2 answers

Unsupported Class Version during Maven build in Jenkins

I've seen a few of these questions on here, but none of the solutions/tips seem to be pointing me in the right direction. So I have 3 JDK's installed in the locations of "/opt/java/6", "/opt/java/7", and "/opt/java/8". All of these are set in the…
Antony
  • 153
  • 1
  • 2
  • 7
2
votes
5 answers

Convert days, minutes, hours to seconds in Java Using Duration object failing

Quiz duration is specified as days, hours and minutes each in integers. I am trying to convert combination of these to seconds. Below code I tried. but it always returns 0 seconds. I am using jdk 6 Integer hours = 3, days=4,…
stack_user60
  • 35
  • 1
  • 6
2
votes
2 answers

"Error: This Java instance does not support a 32-bit JVM." [1] "Please install the desired version."

I'm using Processing 1.5.1 for Mac OS X El Capitan and when I run some code on my app it displays that message. When I type java -version I get: java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833) Java…
Eric Reyna
  • 181
  • 1
  • 3
  • 13
2
votes
1 answer

Maven 3.2.5 doesn't work with JDK6

I have an issue and after many attempts don't know how to resolve it. I have Java/Maven project with JDK 6 and installed Maven 3.2.5 in Eclipse Luna Now I'm trying to run clean install command to create ZIP package but getting the following error…
Arsench
  • 179
  • 2
  • 4
  • 17
2
votes
1 answer

Java 1.6 HttpsURLConnection : java.net.SocketException: Connection reset

I,ve got a Problem here, I have some code that works perfect in 1.7 and above but once I switch to 1.6 I always get this error: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) I think the…
JoCoaker
  • 633
  • 9
  • 18
2
votes
2 answers

How to convert a date to dd.MM.yyyy format in Java?

How can I convert the date(Mon Jan 12 00:00:00 IST 2015) in the format MM.dd.yyyy or dd.MM.yyyy? I tried using the below approach String dateStr = "Mon Jan 12 00:00:00 IST 2015"; DateFormat formatter = new SimpleDateFormat("E MMM dd…
Farhan stands with Palestine
  • 13,890
  • 13
  • 58
  • 105
2
votes
2 answers

Maven site deploy issue

I am using the maven site-deploy command. I am using maven 2.2.1 with jdk 6. I get the following error: org.apache.maven.lifecycle.LifecycleExecutionException: Wagon protocol '' doesn't support directory copying at…
user518066
  • 1,277
  • 3
  • 23
  • 35
1
2 3 4