jdk

using different java update versions | How does this affect the application?

Does any weird errors comes when the code is compiled with one Java version and if it is deployed on different versions? On our dev(Windows) machine, we are using JDK.1.4.2_13 and in QA (test) and Prod[Both are UX boxes] its JDK.1.4.2_9. Am not talking about the major versions, but the minor versions/updates! I agree its nice if it i...

Installing Drivers via a Java Applet

Just wondering if anyone has had any experience with installing hardware drivers via a Java Applet. I'm currently writing an applet that will be accessing some hardware and will be embedded into a web page. In order to make things easier for end users I would like to have it detect if the drivers are installed and if not install them. ...

Is there a way to update the JDK without manually downloading the new version?

I just got an Java update notification that Update 17 is out, so I ran the update and found that only my public JRE was updated. I still only have Update 16 of the JDK. Is there a way to have the latest JDK automatically when it's available? Of course, the update shouldn't get rid of old versions. That should be done manually since Ecl...

Why can't I find the API documentation for com.sun.* classes in rt.jar?

I found a scenario that uses com.sun.jndi.toolkit.UrlUtil class in a source cods. I can find this class in rt.jar in Standard Java Distribution. But I cannot find any API documentation for classes in this package. Why these classes are hidden? Are there any drawbacks in using those classes in my code? ...

eclipse jetty:run differs to cli mvn jetty:run

I have managed to track a problem where within eclipse I see no error, but anywhere outside eclipse the error exists. The error I get when run outside eclipse is LazyInitializationException from hibernate - caused by a ${entity.service.id} reference in the jsp. Outside eclipse I have tried jetty standalone, mvn jetty:run from the comma...

Eclipse on windows doesnt start

I usually do all my java development on linux, using fedora package manager setting up a development environment is easy and fast. Now I have to start using windows but I never used it for java development and im having a few difficulties having it setup. So I downloaded and installed thye java 6 JDK (just the standard edition, not the...

Whats the work of JDK and JRE?

Hi, I have a confusion that what JRE is doin on the Background and what does the JDK doing. ...

Any issues with JDK and Visual Studio on the same machine?

Is it ok to install the latest JDK to run IntelliJ-IDEA as well as have VS 2008 on the same machine? ...

Howto start eclipse in JDK?

Hi, I just installed a Maven plug-in into eclipse the first time. Now there is a message on eclipse startup, that i should start eclipse in jdk not jre to make Maven components run fine. There is a -vm arguement which I used in the eclipse.ini: -vm C:\Program Files (x86)\Java\ But the message is still there after restart. Now I tried...

Browsing the JDK docs more efficiently.

So far I've just been tacking "java 6" at the end of my class-name search queries in google, but sometimes I'm looking for classes that I don't know the name of, but are designed for what I want to do. Have any tips or tricks for browsing the JDK docs efficiently? ...

Eclipse - no Java (JRE) / (JDK) ... no virtual machine...

SOLVED! thanks to VonC I am trying to get Eclipse Galileo to re-run on my computer - i have run it before with no problems but now i keep getting this error: A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locat...

Is Java 1.6 the same as JDK 6 ?

I'm taking a computer science course and the syllabus says download java 1.6. I don't find a java 1.6, everything says JDK 6. When I googled java 1.6 I found this link: http://java.sun.com/javase/downloads/index.jsp Is this what he's refering to as java 1.6? I downloaded JDK 6 update 17 and netbeans 6.8. I'll email the instructor a...

Who is preventing the release of Java 1.7

I recently attended a talk by a Sun engineer Charlie Hunt regarding performance. The talk was interesting enough but one question was regarding release date of 1.7. He said it's delayed as there are parties who are refusing to sign off JSRs they own and thus preventing the 1.7 release. It apparently has something to do with the cost of ...

Where can I get a copy of JDK 1.0.2 JavaDocs?

I'm doing a bit of research for a blog post involving the evolution of a specific part of the Java API. To that end, I've been able to find JavaDocs going all the way back to JDK 1.1, but not to the original 1.0. Sun has removed any trace of JDK 1.0 JavaDocs from sun.com. I've Googled high and low, near and far, but cannot find anyt...

Eclipse will not start after uninstalling Java and reinstalling to a new location

I reinstalled the JDK tonight because of the embedded space in Program File... and now Eclipse blows up immediately when starting. Is there a config file that needs updating? I tried eclipse -clean with nu luck. Peace, Scott ...

When will invokedynamic be available in the standard JDK?

I'm eager to start working with dynamic languages on top of Java. How long before this is part of the standard JDK? ...

Looking for java source code from sun

I am pretty sure that this is a stupid question but after poking around on the sun page for about an hour I am completely confused. I want to get the source (.java NOT .class) files for this: sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream or more generally just the entire sun.net.www.protocol.https package. ...

How to extract ONLY the contents of the JDK installer

I just downloaded the Java SDK/JDK versions 5 and 6, and I just need the development tools (and some libraries) contained in the installation packages, I don't need to perform an installation and that's why I was only looking for a zip package at first (for Windows there is only an exe installation file), I only need to extract the conte...

How to split a string, but also keep the delimiters?

I have a multiline string which is delimited by a set of different delimiters: (Text1)(DelimiterA)(Text2)(DelimiterC)(Text3)(DelimiterB)(Text4) I can split this string into its parts, using String.split, but it seems that I can't get the actual string, which matched the delimiter regex. In other words, this is what I get: Text1 Tex...

why 48 bit seed in util Random class?

Why this class uses 48 bit seed in its linear congruence formula? I would have expected 32 or 64... I know it takes higher order bits when asked for 32 bit values. But why only 16 more additional bits? Was it a "random" choice? ...