installing JDK 1.5.0_0 question

JAVA

    Sponsored Links

    Next

  • 1. time comparison
    I have two fields where the user enters time project was opened, and time project was closed. I want to calculate number of hours spanned between two times. The times are always inclusive of the same day, so all I really care about is time value (not date). Is there a class somewhere that allows for calculation of difference between two given times? Thanks in advance, Slash
  • 2. DPI for TIFF
    I am appending text and images to a BufferedImage. I am creating the BufferedImage like: byte[] imageData;//this is byte[] of a tiff image ImageInputStream iis = new ByteArrayImageInputStream(imageData); BufferedImage image = null; Iterator iter = ImageIO.getImageReaders(stream); ImageReader reader = (ImageReader) iter.next(); ImageReadParam param = reader.getDefaultReadParam(); reader.setInput(stream, false, true); image = reader.read(index, param); //Then I add some shapes and text to the bufferedimage via Graphics2D. //Then I compress as group 4 tiff and save. The problem I am having is that once I create the BufferedImage I loose the information about the dpi. Is there a way to make the dpi information to stay or to add it back in? Thanks, Jeff
  • 3. can't execute
    Hello i got a simpel program with a main methode but it wont execute import javax.swing.*; public class Frame_01{ public static void main(String[] args){ JFrame frame = new Jframe("Mijn eerste JFrame"); frame.setVisible(true); } } I don't know why it doesn't do it TIA Tom
  • 4. newbie with a beginner problem, help?
    I am playing a bit in java, pulled down the JDK from Sun, playing with my first program: public class MyFirstApp { public static void main (String[] args) { System.out.println("I Rule!"); System.out.println("The World"); } } I compile: c:\My_Data\java\Head_First>javac MyFirstApp.java c:\My_Data\java\Head_First> Note no error mesages I go to run: c:\My_Data\java\Head_First>java MyFirstApp.Class Exception in thread "main" java.lang.NoClassDefFoundError: MyFirstApp/Class What am I doing wrong? Thanks from the clueless. Talent on loan from Merck
  • 5. tomcat + Jboss
    Hi all I would like to ask how tomcat and Jboss operate if tomecat handle JSP and Servlet and JBoss handle EJB eg servlet(Tomcat) to EJB (JBoss) are there any special setting i need be4 i can do above action ? Thx a lot

installing JDK 1.5.0_0 question

Postby Fuddzy » Tue, 15 Feb 2005 02:54:52 GMT

Hello

I am learning Java as a hobby and currently using  j2sdk-1_4_2_05.
I note that Sun has made available a more recent version , namely JDK 
1.5.0_01.

Here is my question.
Must I un-install  j2sdk-1_4_2_05 and then install JDK 1.5.0_0
	or just install JDK 1.5.0_01 ?

Thanks
Fud

Re: installing JDK 1.5.0_0 question

Postby Knute Johnson » Tue, 15 Feb 2005 03:56:16 GMT



Fud:

You need to uninstall the old JDK and JRE.  Then you can install the new 
JDK (and JRE bundle).  I assume you probably are using a Winblows 
machine so you can also go into C:\Program Files\Java and delete the 
remnants of the old JDK and JRE directories.  If you are going to use 
any extras like JMF, JavaMail or JavaComm, you will have to reinstall 
those too.

-- 

Knute Johnson
email s/nospam/knute/

Re: installing JDK 1.5.0_0 question

Postby Ryan Stewart » Tue, 15 Feb 2005 14:22:34 GMT






That is completely wrong, but probably not a bad idea for someone just learning 
the language. It's perfectly fine to run two (or more) versions of Java side by 
side. Prior to Java 1.5, the SDK was not installed to Program Files by default, 
and any extra libraries will generally be as useable with 1.5 as they were with 
1.4. 



Similar Threads:

1.installing JDK 1.5.0_0 Solved

Knute Johnson wrote:

> 
> You need to uninstall the old JDK and JRE.  Then you can install the new 
> JDK (and JRE bundle). 

Thank You for the quick response......... I will do as you suggest.

Mucho Gracias

Fud

2.question about installing the latest sun jdk

I'm using Gnome on my feisty fawn server and am trying to install the 
latest version of the sun jdk.

Invoking konsole, I have su'd to root and am sitting in the directory 
where the install lives

Here is the command I use to start the install

./jdk-6u1-nb-5_5_1-linux-ml.bin

It comes back moments later with the following error:

The installer is unable to run in graphical mode. Try running the 
installer with the -console or -silent flag.

the -console option reports an error

The wizard cannot continue because of the following error: Invalid 
command line option: console is not supported (1001) (403)
WARNING: could not delete temporary file /tmp/ismp001/4909466
WARNING: could not delete temporary file /tmp/ismp001/6716087
WARNING: could not delete temporary file /tmp/ismp001/2549433

and the -silent option does nothing

At first I thought it was because I was using KDE, so I installed Gnome 
but to no avail.  I have even tried booting into failsafe Gnome but the 
results are the same.

I am able to run this fine on my feisty desktop version, and earlier 
installs of the server version had no issues.

What am I doing wrong and how can I get this fixed?  I have several 
packages that I need to install from Sun and they all come the same way.

Thanks

I am cross-posting this to both the Ubuntu group and the Java group in 
hopes that between responses from both, I can get a working solution.


Note:  The results are the same if I use just a terminal.

3.Compiler Bug?? (javac 1.6.0_0-internal)

Dear all,


I've recently started programming in Java and I'm having a problem
with the following class, which is not supposed to be particularly
meaningful as I've made it minimal to highlight the problem:

============================== START ================================
import java.util.Iterator;

public final class Error<T>
{
public final class Error<T>
{
    private final T t;
    public Error( final T t ) { this.t   = t; }
    private class ErrorIterator<T> implements Iterator<T>
    {
        public ErrorIterator( )   { }
        public boolean hasNext( ) { return true; }
        public T next( )          { return t; }
        public void remove( )     { }
    }
}
=============================== END =================================

When I try to compile this example I get the following error:

============================== START ================================
Error.java:11: incompatible types
found   : T
required: T
        public T next( )          { return t; }
=============================== END =================================

I'm using javac 1.6.0_0-internal.

Is this a known error? If so, is there a bug-fix I could download
somewhere?

Thanks in advance for your help.

Regards,


Marc van Dongen

4.Creating Directories when installing software JAVA JDK

I am using VISTA and there seems to be a feature that prevents creating new 
directories when installing software.  I am trying to install JAVA and it 
keeps on failing when it is time to create a directory.  Anyone have any 
information about this security issue and where I would change that option?
-- 
Mark

5.Installshield refuses to install Netbeans (with or without jdk 1.4.2)

Hello,

I want to install the latest Netbeans/jdk1.4.2 combination from Sun but
Installshield crashed with the message:

Error in Instructions. Invalid jvm file name specified in LAUNCH. Invalid
variable specification. Line number (5).

I did a search for all jvm.dll and java.exe already installed on my computer
(WinXP UK latest) and renamed them so they are not available anymore (maybe
it finds an old jvm but that's clearly not the case)


6. Multiple installs of JDK

7. so finally I have successfully downloaded and installed netbeans and the jdk from sun now

8. Vista - Be Sure UAC is On Before Installing JRE or JDK



Return to JAVA

 

Who is online

Users browsing this forum: No registered users and 67 guest