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

Does java cryptography extensions(JCE) come bundled with the JRE?

I need to be certain that jce is available even in JRE environments out of the box. After furious googling I only managed to verify that jce comes bundled with the JDK after Java 1.4. Does the jce come bundled with the plain JRE download as…
jakee
  • 18,486
  • 3
  • 37
  • 42
0
votes
1 answer

500 http sessions result in low database connection utilization

We have an Alfresco server running on Tomcat6 and a look at the manager/html page tells us that there are approx. 500 active http session during an usual workday. Is it normal/expected that this kind of load only utilizes one of the 8 open…
tullo
  • 43
  • 2
0
votes
1 answer

java 1.6 SystemTray icon does not appear on windows startup

I have a Java 1.6 desktop application, started with javaw from a batch file on Windows XP. There is a .lnk link to this batch file, which is placed to windows Startup folder in order to start this application on every system boot. The application…
user183061
0
votes
0 answers

Set JVM heap space when I use javax.tools.JavaCompiler

I'm using the JavaCompiler APIs to compile some Java source code. However, I'm getting OutOfMemoryError exceptions. I tried to use the -Xmx1G options, but it does not work: java.lang.IllegalArgumentException: invalid flag: -J-Xmx1G at…
user803437
  • 13
  • 2
0
votes
2 answers

Android avd Manager and Sdk.exe not opening

Just a few days back my sdk and avd was working perfectly but now it has stopped opening at all . I tried running the exe file but only for a small fraction of time cmd windows opens and closes and nothing happens. My environment…
0
votes
4 answers

Java in bash at university fails with NoClassDefFoundError

I know there are many posts concerning NoClassDefFoundError, they all seem to be talking about jar files. While I'm comfortable with java in eclipse, I'm pretty lost as to why the simplest thing I can come up with is not functioning, unless they…
Maslow
  • 18,464
  • 20
  • 106
  • 193
0
votes
1 answer

Implementing threads over an existing code

I am not a thorough JAVA professional but have experience in Programming, none with threads though. I have an application code which currently does the following. Make connection with a DB Pull records from DB into a collection (Each record has an…
0
votes
2 answers

Compiling java 7 for java 6 with Eclipse

I need to compile a project for Java 6 to use with java 6 or 7 (I can't upgrade all of the computers in my life). I've been searching all over and found somewhat helpful stuff, but I'm rather new to java - I don't understand much of how to use the…
WarpSpeed
  • 3
  • 1
  • 4
0
votes
1 answer

Can I access to facebook API with native JAVA?

I want to access Facebook throught Java Native and post my wall. But I see it on Facebook API does not allow access to native Java for this area. (https://developers.facebook.com/docs/) This is Facebook's API Docs. Really, I'm on Facebook that can…
Jinwoo Kim
  • 93
  • 1
  • 9
0
votes
1 answer

modifying parameter prior to method invocation

I have a parameter called "server" in several methods: public synchronized Client getClientByStreamId(String streamId, Server server) { //some logic } public Client getClientByPublicSID(String publicSID, boolean isAVClient, Server server) { …
seba.wagner
  • 3,800
  • 4
  • 28
  • 52
0
votes
1 answer

Socket not Receiving Input in Java 7

I have run into an interesting issue trying to upgrade one of my applications from the Java 6 to Java 7. It is a simple Java socket program. It sends a command to a COM socket and receives a response. It works perfectly in a Java 6 environment, but…
Swop
  • 28
  • 4
0
votes
1 answer

Remove override annotation even though JDK Compliance has been set to 1.6

I have annoying problem with this override annotation, I have come to google to find a solution but I can't find any clue. I have set the JDK Compliance to 1.6 it has a default, but eclipse still ask me to remove the override, what should I do to…
Raditya Kurnianto
  • 734
  • 1
  • 16
  • 42
0
votes
1 answer

How can my thread get stuck in isConnectionReset (PlainSocketImpl)

Someone helping me with a hung Java server studied the thread dump and does not understand the following state : INFO | jvm 1 | 2009/08/30 18:11:46 | "103468119@qtp-2047706572-1" prio=10 tid=0x0000000041758000 nid=0x13d7 waiting on condition…
bmargulies
  • 97,814
  • 39
  • 186
  • 310
0
votes
1 answer

Multiple Classes with same FQN (ServiceLoader)

I am using java.util.ServiceLoader to create a lightweight plugin framework. I am currently wrestling with how to have multiple implementing classes with the same FQN. I would like to have two copies of the same plugin on the classpath and have…
mainstringargs
  • 13,563
  • 35
  • 109
  • 174
0
votes
2 answers

Sun Java 6 on Ubuntu

The java library I need (jpcap) only works on Java 6, it won't work with Java 7. Is it still possible to install Java 6 on Ubuntu? According to the Ubuntu Help: Oracle (Sun) Java 6 is no longer available to be distributed by Ubuntu, because of…
Shane
  • 461
  • 2
  • 8
  • 23