java-6

Java: When is Java 6 ready for end-user desktop application?

I am writing a desktop application written in Swing developed using Java 1.5. Some of the users seem to be using Mac, but I am interested in Java 6's scripting feature (Java 6 ships with Rhino). Java 6, although it came out almost 2 years ago, doesn't seem to be widely in use. I also hear Apple ships Java 6 only for Intel 64 Macs only. I...

Java 6 and JaxB 2.1

The original release of Java 6 came with JAXB 2, but I have been told that 'later' Java 6 releases ship with JAXB 2.1. Does anyone know what the first version of Java 6 to ship with JAXB 2.1 was? ...

Installing Java 6 on Mac OS

Is it possible to install the latest JDK on Mac OS 10.5? What are the best options, considering that the Apple-supplied version is 1.5? Update: I am trying to install JDeveloper 11, which requires JDK 6. ...

How can I prevent PermGen space errors in Netbeans?

Every 15-30 minutes Netbeans shows a "java.lang.OutOfMemoryError: PermGen space". From what I learned from Google this seems to be related to classloader leaks or memory leaks in general. Unfortunatly all suggestions I found were related to application servers and I have no idea to adapted them to Netbeans. (I'm not even sure it's the s...

A quick way to solve java.security.AccessControlException

I have an applet which have to read a file from server. But I receive the following exception java.security.AccessControlException: access denied (java.io.FilePermission \kb1.xml read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.Secu...

Where can I find an applet that requires Java 6?

I currently have Java 5 installed on Windows. I'm trying to test the way the new Java Kernal installs when my Firefox browser comes across an applet requiring Java 6. Unfortunately the applets I try fail to run or just run the Java 5 JVM. I have tried: http://jdk6.dev.java.net/plugin2/ http://www.psynixis.com/test/HelloJava6Applet.ht...

java.io.IOException: Job failed! when running a sample app on my osx with hadoop-0.19.1

bash-3.2$ echo $JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home bash-3.2$ bin/hadoop dfs -copyFromLocal conf /user/yokkom/input2 bash-3.2$ bin/hadoop jar hadoop-*-examples.jar grep input2 output 'dfs[a-z.]+' 09/04/17 10:09:32 INFO mapred.FileInputFormat: Total input paths to process : 10 09/04/17 10:09:33 INFO ma...

Upgrading a J2EE application to Java 6

With the upcoming end of life (EOL) of Java 5.0. We need to upgrade our enterprise application to work with Java 6. The application can be deployed on both WebLogic, WebSphere & JBoss. (It's up to the customer's choice) Does anyone have an experience with such an upgrade? What issues should we encounter? What pitfalls we should avoid? ...

Unicode version supported by Java 6

Anyone know the answer? According to http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp, it's 4.0 for 5. Has it been upgraded in 6? Link to reference would be much appreciated as well. ...

Executing Java 5 Code With Java 6

Is there any way I can run class files (i.e. with main as the entry point) on JDK 6 that were compiled with Java 5? ...

java 6 broke webstart application installation with error 'java.lang.Exception: cache failed for'

After upgrading to the latest java version (Java 6 update 13) a webstart application that was being used in production environments for many years, stopped installing with the following error: java.lang.Exception: cache failed forhttp://localhost:8080/ReactorStudio/studio/installer.jnlp at com.sun.javaws.Launcher.updateFinalLaun...

NetBeans gui design tool (matisse) seems to use Java 5 instead of Java 6

When trying to open a custom JPanel class in the NetBeans GUI design tool, I get the following error: Warning - Form loaded with errors Error in loading component property: [JPanel]->someScrollPane->somePlainJTable->autoCreateRowSorter No such property exists in the component. The offending code: somePlainJTable.setAutoCreateRowSorte...

How can I get Eclipse on OSX to use Java 1.6?

I just installed Java 1.6 on my OSX and everything works brilliantly, except that Eclipse refuses to start. It puts up a huge prompt from which I can't copy/paste, but it's clearly stating that it wants to be using Java 1.5 and can't find it anymore. I don't see anything in its configuration files about which version of Java it should b...

Eclipse 3.x unable to debug tomcat 5.5 with java 1.6.0_14?

Hi all! I'm trying to launch and debug tomcat 5.5 with a webapp in java 6. I have set up JAVA_HOME in the tomcat's eclipse configuration (in "replace environment" mode) but I get the following error: ERROR: transport error 202: gethostbyname: unknown host ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) JD...

Is Java bytecode compatible within different updates of the same version of Java?

Hello, this question is related to the the other topic discussed here: http://stackoverflow.com/questions/1266940/is-java-bytecode-compatible-with-different-versions-of-java but in this case would like to know whether compatibility is preserved within the same version but on different updates. For example, is bytecode generate by the com...

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 broke something on the university side of this. public class hello { public static void ...

send a mail from java5 and java6

I know similar questions have been asked many times befor, but I think this one slitly different :) I'm writing a maven report plugin which will send emails to a list of users. I now have the problem, that the code seems to be working fine when I run it with java5, but failes with java6. Actualy the plugin is writen in Groovy and uses t...

Specify Output Path for Dynamic Compilation

My dynamic compilation in Java 6 is working perfectly. However, I would like to change the output path. I have tried tons of things (I'll spare you) to no avail. Anyway, here's the working code String[] filesToCompile = { "testFiles/Something.java" }; JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); StandardJavaFileManager ...

Eclipse: export to .jar AND include resource files (ANT)

Hi Our project in eclipse approximately shows the following folders: application - src - JRE System Library [1.6] - Referenced Libraries - lib - rsc In our project, we would like to use File > Export... > Executable JAR Well that works fine, with some exception: If we want to run our application.jar, we still nee...

tutorial about xml handling in java 6

hi, i am getting little bit lost with all the XML handling methods in java, xpath, sax, DOM, DocumentBuilderFactory...different buzz words that i dont see how they relate... 1) so i am guessing my question is any one knows a good tutorial about handling XML in java 6?, i have found a few but they seem to be old. 2) i need to traverse...