jdk

"Error 1722" trying to install JDK to non-default location

I have problem with installing java JDK directly in C:. I was able to install in the "Program Files" folder. But for a development purposes, I need to install the JDK directly in the root of C. Problem is when I try to install it it set up gives "Error 1722. There is a problem with this Windows etc." But the setup installed without any...

How do I install older version of JDK on Mac?

I need to install JDK 5 for testing Amazon mechanical turk APIs (which is not fully compatible with JDK 6). On Apple's website, I can only find the latest JDK. Is there a way to get older versions of JDKs for Mac? ...

Remote VisualVM monitoring without JDK

I need to profile a Java process (Tomcat) on a remote server. I know I need to lunch jstatd on the server. The problem is I don't have JDK installed on the server. What do I need to run jstatd? Do I have to have the entire JDK? ...

Remove HTML remove aligment using Java

Hi All, I Have faces a issue with removeing alignment In HTML document. <html> <head> </head> <body> <p style="margin-top: 0" align="center"> Hello World </p> <p style="margin-top: 0" align="center"> Java World </p> </body> </html> My Issue is how to remove alignment of first paragraph with out ...

Eclipse just does not start up

I recently uninstalled and then reinstalled Java on my machine and ever since, Eclipse just does not start up. I find this weird, because I uninstalled a different version of Java from the one that I use. I modified the eclipse.ini file, by adding the following: -vm C:\Program Files (x86)\Java\jre1.5.0_15\bin\javaw.exe This made no d...

Fonts on OpenJDK vs. Sun JDK 1.6 [Linux Platform]

I noticed that the Fonts on OpenJDK vs. Sun JDK look different. Java JDK has a better font set that accompanies it. Does anyone know what package the 'font' is and how I can have it on OpenJDK installations? Thanks ...

help! apt-get erorr, after I trying install 'sun-java6-jdk' and jre unsuccessfully.

I try to install jdk and jre by using 'apt-get' command, but something wrong occured: ...... Reading package lists... Done Building dependency tree Reading state information... Done You might want to run `apt-get -f install' to correct these: The following packages have unmet dependencies: sun-java6-bin: Depends: sun-java6-jre (= 6.2...

Where can I find a particular version of the IBM JDK/JRE for Windows?

I'm trying to get a rather JDK-sensitive piece of Oracle software working with Websphere, and I need to find some particular versions of the IBM JDK to try. The problem is that IBM doesn't really make these readily available like Sun/Oracle does with theirs, and all the versions I've been able to get my hands on haven't worked for one r...

JDK contains src.zip but JRE doesn't

Just noticed that JDK contains src.zip with a set of java files. I checked JRE and didn't found it over there. Does it mean the JVM does not need these files in order to run my code? ...

The size of rt.jar is different between JRE and JDK

What I noticed is that rt.jar's size is different between JRE and JDK. It is bigger in JDK. Why is it so? ...

Why does IntelliJ import extra libraries from JDK 1.6 for a simple hello world program?

I'm new to Java and IntelliJ and I am just doing a simple "hello world" program. IntelliJ has about 10+ libraries from JDK 1.6 added to my project even though I'm not importing anything in my classes that would seem to need them. I created a new project from scratch. Some of the libraries are alt-rt.jar, charsets.jar, deploy.jar, dnsns....

Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so

In eclipse, I open a android project, click the layout xml file. then pop the dialog "Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/libmawt.so" and the file didn't be opened. How can I open the xml normally, it seems jdk6 is installed with error or the path is wrong. os is ubuntu 9.04. ...

Server VM needed but not available in JRE. Then what package do I need: JRE, JDK?

Hi there, This is the context: I've just developed an app that needs to be launched in SERVER mode (java -server). I'm using the JSE SDK (JDK) and I have no problems to run the app because the JDK has the Server VM. Now, I'm trying to create an installer that way people will be able to install this app in their computers. But at this po...

is it possible to proccess JSON responses with the JDK or HttpComponents only?

Hello, we are upgrading our web app to use Facebook's Graph API, which returns JSON responses. However we don't want to add dependecy to a JSON library unless we have no other choice. For server-side http requests we use Apache HttpComponents. Thus, my question is what are the classes (if any) in the JDK and/or in HttpComponents that I...

What is the relationship between the JLS, Java, and related technologies?

Java is the language, the JRE is the runtime environment, and the JDK are the development tools? The JLS is the spec that says that the JRE must do x,y,z, and therefore makes Java what it is? Are these views correct, and if not can someone enlighten me? Are there any things we think are Java but are not? I think I heard that about An...

How do I make Windows XP machine stop trying to use uninstalled Java JDK (1.6.0_13)

My Windows XP workstation at the office had several old versions of the Java JDK installed on it. Today I decided to install the newest Java JDK and uninstall the older ones. BIG MISTAKE APPARENTLY! I don't understand why, but XP seems to think that one of the removed JDK installations is the one that it wants to use. Not sure if it i...

Is it possible to run NetBeans and BlueJ on Mac OS X without incompatibility?

I would like to play around with the Java SE version of NetBeans on Mac, however I need to still have a running copy of BlueJ on my Mac for a school class. Is it possible to run the "JDK-only" BlueJ and the "Java SE" NetBeans together in harmony? ...

Calling Java varargs method with single null argument?

If I have a vararg Java method foo(Object ...arg) and I call foo(null, null), I have both arg[0] and arg[1] as nulls. But if I call foo(null), arg itself is null. Why is this happening? ...

Apple deprecates Java - what will happen?

In the latest ReleaseNote, Apple deprecates Java: I think, this will lead companies to switch from Apple to PC. Crossplattform Development will be much complicated in the future and a lot of cool applications will vanish from the OS X platform. I hope, the OnlinePetition of OpenJDK will be successfull. What do you think? Is it worth to...

Is it "safe" to develop for the JDK7 platform?

We have a project which (assumed) would be finished in 1-2 years. By then, the JDK7 (and hopefully the Java7 JCP spec) should be ready. But, I wonder, how probable is the "danger" that Oracle will make a "stupid" decision, which would make the JDK7 a less "attractive" platform then the existing JDK6? More specific, I'm afraid of scenar...