jdk1.6

VB support in Java 6?

I was checking Java language history in wikipedia, and this paragraph caught my attention: The current version, Java SE 6 (December 11, 2006) — Codename Mustang — is bundled with a database manager, facilitates the use of scripting languages (currently JavaScript using Mozilla's Rhino engine) with the JVM and has Visual B...

Most useful or interesting new language features in Java 5 and 6?

I was looking through a code tutorial just now, and found something interesting -- the import static feature introduced in JDK 5: import static org.junit.Assert.assertEquals; public class AdditionTest { private int x = 1; private int y = 1; @Test public void addition() { int z = x + y; assertEquals(2, z); /* ^ this ...

unable to place breakpoints in eclipse

I am using eclipse europa (3.5) on windows vista home premium 64-bit using JDK 1.6.0_18 (32 BIT). Normally, I am able to put breakpoints just fine; However, for a particular class which is NOT part of the project (this class is inside a .JAR file (.JAR file is part of the project) ), although I have attached a source directory to this ....

Difference in DocumentBuilder.parse when using JRE 1.5 and JDK 1.6

Recently at last we have switched our projects to Java 1.6. When executing the tests I found out that using 1.6 a SAXParseException is not thrown which has been thrown using 1.5. Below is my test code to demonstrate the problem. import java.io.StringReader; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBui...

WebSphere Application Server 6.1 support for Java 1.6?

Hi, Can I use Java 1.6 with WebSphere Application Server 6.1? IBM's website says no. But I require Java 1.6 for a software application to be deployed and I cannot currently upgrade to Websphere 7.0, or use a different application server (WAS 6.1 is the org standard). what are my options? Thanks. ...

glassfish starts only from the netbeans IDE and not from the command prompt

i have installed the netbeans version 6.8 with glassfish version 3 on a redhat machine. the thing is that when i try starting/stopping the glassfish via the netbeans, it works fine, BUT when i try starting the glassfish via: ./asadmin stop-domain domain1 i get the error "GlassFish requires Java SE version 6. Your JDK is version 4...

Implementing generics for java 1.6

Hello guys... I'm trying to make this code generic: public final Object unwrap(Class arg0) { throw new UnsupportedOperationException(); } It comes from the Wrapper class (java.sql) and looks originally like this: <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException; ...

Javaw.exe problem with Eclipse 5.0

I've a problem with Javaw.exe process. I am developping an application relative to media acknowledgment using jdsk 1.6.0.11 & Eclipse 5 for Plugin Developpment. every time i want test my web cam (JUnit) then i've got a message : "Javaw.exe will close,we're sorry".Anyone can help me please?? ...

Upgrading RAD JDK Version to 1.6

Hi, I am using RAD for development. For my application i need to upgrade my JDK compliance to 1.6 from 1.4. I have installed jdk 1.6 and added it to my installed JRE's. Now in the JDK compliance still 1.4 is shown, what should be done to set the JDK compliance to 1.6? Thanks in advance. Cheers, Deena ...

How to run Jersey with the built in web server from Java SE 6?

I don't want to use Tomcat, Jetty or an Java EE 6 container to offer REST services but the built in web server. ...

Need JDK 1.6 u18 for Windows-7 64 -bit

Dear All, I need jdk 1.6 u18 for 64-bit operating system. I am using windows 7 64-bit Operating System and specific jdk version for 64-bit operating system is not available on sun download center. I will be thankful regarding any help. ...

configure Sun gc logging (JRE 1.6.0) with a rotating gc log

Is it possible to configure Sun gc logging (JRE 1.6.0) with a rotating gc log. currently I use the following hotspot options for logging: -XX:+PrintGCTimeStamps -verbose:gc -Xloggc:/gc.log -XX:+PrintGCDetails gc.log increases very fast and therefore I'd prefer to have a rolling one. ...

Scripting java : Create a class in a script file

Hello, I want to create a java class in a script file (javax.script). please help ...

ThreadLocal pondering (Or: Is sun's javadoc wrong?)

I've been reading about ThreadLocal, trying to understand how it works and why we need it. So far what I've been able to learn is the following: ThreadLocal class allows to hold 1 instance of an object at the thread level The instance is created by overriding initialValue() The instance is actually stored in the each thread's HashMap ...

Scripting java : import a class from an external file

I want to import a class that I already write in an external folder, for example : My class Example.java that is located in c:\class\Example.java to my script like using var importedClass = new JavaImporter("c:\\class\\Example.java"); or importClass("c:\\class\\Example.java"); this is in a script for ScriptEngine rhino how can I ...

XercesImpl in conflict with JavaSE 6's internal xerces implementation. Both are needed... what can be done?

Hi all, I am sure that I am not the first to encounter this conflict. The code that I have inherited does the following: org.w3c.dom.Document dom; // declaration javax.xml.validation.Schema schema; // declaration ... ... ... javax.xml.validation.Validator validator = schema.newValidator(); validator.validate(new DOMSource(dom)); w...

Maven not picking up JDK 1.6 bundled libraries

Hi, one of our classes use the bundled jaxb api of jdk 1.6. When I try to compile this using maven (JAVA_HOME is set to JDK 1.6 and it shows in the IDE that maven runs using JDK 1.6) I get a class not found error for the jaxb library. the class in question is present in rt.jar under JDK 1.6 lib folder. Any ideas??? ...

Import a class in Scripting java (javax.script)

Hello, I want to import a class that I made in my project, into my script I did this but it doesn't work: function doFunction(){ //Objectif Mensuel importPackage(java.lang); importClass(KPDataModel.KPData.KPItem); //ERROR HERE, this is my class that I want to import KPItem kpItem = kpItemList.get(0); System.out.println(kpItem....

Toolkit returns references to proprietary Sun APIs?

I just upgraded our project to JDK 1.6, and on compilation, I have a test class that implements java.awt.Toolkit and implements the methods to do nothing special (other than capture the call to the beep command). (This is an old test that should probably be rewritten in several ways (either mock it or wrap that functionality in a simpl...

GlassFish v3 JSESSIONID Multiple Subdomains and TLDs

We have one web application that is being built to serve multiple regional web site TLDs. In addition, the web application also supports thousands of dynamic subdomains. Examples include: www.example.com www.example.co.uk www.example.com.ar fred123.example.co.uk <== Thousands of this form fred123.p.example.us <== Thousands of this f...