Java 2 SDK, Standard Edition v. 1.4

how do u completely install this version, just so i could get javac running cause its not running when i type it command prompt. i have win2k pro, and im very new with computers

Once you download the software, install (extract) it to a local directory and then set the PATH and CLASSPATH variables.
If you donot set the path variable, your system will not recognize javac or java commands
To set the Path variable:
1.right click on "My Computer" on your desktop and then click on properties.
2. select the advanced tab
3. click on the "Environment Variables" button.
4. under "System variables" scroll down and select PATH and click edit.
5. at the end ( or begning) add c:\<java installation root directory>\bin;c:\<java installation root directory>\lib;
6. click on and then ok.
This will make your system recognize teh javac and java commands.
To add the class path click on "New" under System Variables" and then add the following
Variable Name : CLASSPATH
Variable Value : c:\j2sdk1.4.1\lib\dt.jar;c:\j2sdk1.4.1\lib\htmlconverter.jar;c:\j2sdk1.4.1\lib\tools.jar;c:\j2sdk1.4.1\src.zip;
I installed java into j2sdk1.4.1 directory , if your directory name is different, change it. Also if you donot have src.zip and intsead you have src.jar change it in the above CLASSPATH
Venkat

Similar Messages

  • Focus issue with CardLayout (Java 2 SDK, Standard Edition 1.4.0_01)

    I am having an issue with focus and CardLayout with Java 2 SDK, Standard Edition 1.4.0_01. I have created a small sample application to illustrate my problem. In general, I am trying to create a "Wizard" that the user will enter information and then press a "Next" button to proceed to the next step.
    When the first card is displayed, the focus is on the first text field as expected.
    When I go to the next card by clicking "Next", the focus is not on the text field that has requested it (through the requestFocusInWindow method). The focus is on the "Cancel" button, which is the next component to receive focus after the "Next" button on that panel. I do notice that if I use my mouse to bring focus to the window the text field will gain focus.
    Similarly, when I proceed to the last card, the focus is not on the "Finish" button until the mouse moves over the window.
    Is there something I am doing wrong or is there a bug with focus and CardLayout?
    One other problem I have noticed is that the buttons no longer respond to the "Enter" key press and instead respond to the space bar. Any suggestions as to why this is the case?
    Thanks,
    S.L.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CardWindow extends JFrame implements ActionListener {
    public CardWindow() {       
    setTitle("Focus Problems with CardLayout");
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    cards = new JPanel();
    cardLayout = new CardLayout();
    cards.setLayout(cardLayout);
    cards.add(createFirstNamePanel(), "FirstNamePanel");
    cards.add(createLastNamePanel(), "LastNamePanel");
    cards.add(createFullNamePanel(), "FullNamePanel");
    getContentPane().add(cards,BorderLayout.CENTER);
    getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
    resetButtonPanel();
    pack();
    private JPanel createFirstNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your first name:");
    txtFirstName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtFirstName);
    return panel;
    private JPanel createLastNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your last name:");
    txtLastName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtLastName);
    return panel;
    private JPanel createFullNamePanel(){
    JPanel panel = new JPanel();
    lblFullName = new JLabel();
    resetTextOnFullNamePanel();
    panel.add(lblFullName);
    return panel;
    private JPanel createButtonPanel() {
    buttonPanel = new JPanel();
    btnPrevious = new JButton("< " + "Back");
    btnPrevious.setMnemonic('B');
    btnPrevious.addActionListener(this);
    btnNext = new JButton("Next" + " >");
    btnNext.setMnemonic('N');
    btnNext.addActionListener(this);
    btnCancel = new JButton("Cancel");
    btnCancel.setMnemonic('C');
    btnCancel.addActionListener(this);
    btnFinish = new JButton("Finish");
    btnFinish.setMnemonic('F');
    btnFinish.addActionListener(this);
    buttonPanel.add(btnPrevious);
    buttonPanel.add(btnNext);
    buttonPanel.add(btnCancel);
    buttonPanel.add(btnFinish);
    return buttonPanel;
    private void resetTextOnFullNamePanel(){
    lblFullName.setText("Your name is: " + getFirstName() + " " + getLastName());
    private void resetButtonPanel(){
    Component c[] = buttonPanel.getComponents();
    for(int i = 0; i < c.length; i++){
    c.setVisible(false);
    switch(iWizardStep){
    case FIRSTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case LASTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case FULLNAMEPANEL:
    btnFinish.setVisible(true);
    break;
    buttonPanel.validate();
    public void actionPerformed(ActionEvent e) {
    Object object = e.getSource();
    if (object == btnNext) {           
    btnNextPressed();
    } else if (object == btnPrevious) {           
    btnPreviousPressed();
    } else if (object == btnFinish) {
    System.exit(0);
    } else if (object == btnCancel) {
    System.exit(0);
    private void btnNextPressed() {       
    switch (iWizardStep) {
    case FIRSTNAMEPANEL:
    setFirstName(txtFirstName.getText());
    break;
    case LASTNAMEPANEL:
    setLastName(txtLastName.getText());
    resetTextOnFullNamePanel();
    break;
    iWizardStep++;
    resetButtonPanel();
    this.cardLayout.next(this.cards);
    switch (iWizardStep) {             
    case LASTNAMEPANEL:
    txtLastName.requestFocusInWindow();
    break;
    case FULLNAMEPANEL:
    btnFinish.requestFocusInWindow();
    break;
    private void btnPreviousPressed() {
    iWizardStep--;
    resetButtonPanel();
    this.cardLayout.previous(this.cards);
    public void setFirstName(String value) {
    firstName = value;
    public String getFirstName() {
    return firstName;
    public void setLastName(String value) {
    lastName = value;
    public String getLastName() {
    return lastName;
    public static void main (String[] args) {
    CardWindow c = new CardWindow();
    c.show();
    private CardLayout cardLayout;
    private JPanel cards, buttonPanel;
    private JTextField txtLastName, txtFirstName;
    private JLabel lblFullName;
    private JButton btnNext, btnPrevious, btnCancel, btnFinish;
    private String firstName = "";
    private String lastName = "";
    private int iWizardStep = 0;
    private static final int FIRSTNAMEPANEL = 0;
    private static final int LASTNAMEPANEL = 1;
    private static final int FULLNAMEPANEL = 2;

    Manfred,
    Thanks for your reply. I tried requestFocus() and it gives the same results. Also Sun's 1.4.0 API (http://java.sun.com/j2se/1.4/docs/api/) mentions the following with respect to the requestFocus() method in the JComponent class:
    Because the focus behavior of this method is platform-dependent, developers are strongly encouraged to use requestFocusInWindow when possible.
    That is why I used requestFocusInWindow.
    S.L.

  • RC4 and JavaTM 2 SDK, Standard Edition , v1.4

    Hello,
    I am new to Java Cryptography and wanted to find out if the new
    JavaTM 2 SDK, Standard Edition , v1.4 includes the 128 bit RC4 algorithm or do we need to download the RSA Security, Inc. JCE 1.2.1 compliant provider?
    Need information fast! Thanks.

    yes but it's really JCE 1.2.2 in v1.4
    http://java.sun.com/products/jce/index-14.html

  • How do I search the downloaded Java? Platform, Standard Edition 6 API?

    I am a newbie to Java (I had done some limited programming in C ++ years ago). I have downloaded the Java? Platform, Standard Edition 6 API Specification, and can view this in my Firefox browser. How can I search to certain classes in this documentation easily? For instance, if I want to ding out all of the operations available for String or System.out, etc, , is there a way that I can type in System.out, or String somewhere, and get a list of what is available?
    Thanks

    Brian_Rohan wrote:
    Here is the code that I compiled and it worked:Yeah, "args" there isn't part of the API. It's the name of the variable that is the first parameter to the main method defined there.
    The stuff between the parentheses is a list of declarations of local variables that form the parameter list to that method, to put it technically.
    The thing that's part of the API is the class String. In "String[] args", the bit on the left is the type of the variable, and the bit on the right is name of the variable. A name of something you define like that wouldn't be in the API. However, the name of the class String is.
    If you look at the import statements, you'll see if the name "String" is actually shorthand for a class defined elsewhere. There's this:
    import java.util.*;So you can know that "String" is either defined in the java.util package, in the "helloworld" package (which also wouldn't be in the API because you're defining in there using the package keyword), or in java.lang. (The "java.lang" package is automatically imported.)
    You could look in the API docs for java.util.String or java.lang.String to find the class definition. But I'll save you the time by letting you know that it's actually java.lang.String.
    Again I am new at this, what would args.length be?You'll see that the type of the "args" variable is "String[]". That means that it's an array of String objects. (The [] means arrays.) Arrays all have a field called "length". This also is part of the language, not the API, so it would be in a language guide, not the API.
    The value of args.length would depend on how you ran your program. When you run a program on the command line like this:
    java HelloWorldor this:
    java HelloWorld foo bar bazThe java virtual machine takes all the things after the class name and sticks them in an array of String. Then it looks for a static method named "main" in the HelloWorld class, and passes it that array. So in the first case above, args.length would be zero, and in the second case it would be three.
    By the way, when you post code, please wrap it in code tags. Highlight it, then click the "CODE" button above the text input box.
    Edited by: paulcw on Nov 4, 2009 6:35 PM

  • Unable to install Java 2 Platform Standard Edition Development Kit 1.4.2_11

    I am unable to install Java 2 Platform Standard Edition Development Kit 1.4.2_11 and NetBeans IDE 5.0 on Windows 98. I get the following message:
    Java 2 Platform Standard Edition Development Kit 1.4.2_11 cannot be installed on your computer because current account does not have sufficient privileges.
    I am trying to install at home, no network, and as far as I can tell, there is no way to give yourself "administrative privileges". Is Windows 98 not supported anymore?

    98SE is supported. See configuration requirements for the various versions.
    Try downloading Java and installing it, then go to the NetBeans site and downloading it and installing separately.

  • Will Java 2 SDK, Enterprise Edition 1.3.1 run on Windows 98?

    Will Java 2 SDK, Enterprise Edition 1.3.1 run on Windows 98?
    If so, would I still need to download Apache Tomcat?
    I'm trying to setup my desktop (currently running Windows 98) to test
    servlets and JSP's. What software should I download?
    Thanks

    I have a Windows 98 system. I just downloaded the j2se from the net and installed. Everything worked just fine.
    I did not install Tomcat.

  • Installing JavaTM 2 SDK, Standard Edition, v 1.4 Beta 3 (SDK) on a Mac

    I have downloaded JavaTM 2 SDK, Standard Edition, v 1.4 Beta 3 (SDK) for Linux [I hope that's the correct version for a Mac] about 5 times, but each time, I can't open the file, athough the file's size shows that it did download. Help!

    I have downloaded JavaTM 2 SDK, Standard Edition, v
    1.4 Beta 3 (SDK) for Linux [I hope that's the correct
    version for a Mac] about 5 times, but each time, I
    can't open the file, athough the file's size shows
    that it did download. Help!It is not the correct version. That is for Intel Linux systems. You need to wait until Apple or someone ports 1.4 to the Apple OS X.
    Chuck

  • Downloading/installing Java(TM) 2 SDK, Standard Edition 1.4.0_02

    Hope someone can help... after I download, I click on the exe file and it defaults to install on my C: drive.. unfortunately, this is my work laptop and there is not enough room on my C: drive... I do not see a way to change the setting to install it on my D: drive. Thanks, PP

    I download it onto my d: drive and it downloads the
    j2sdk-1_4_1-windows-i586.exe file.. onto my D: drive
    When I double click the exe to install, it does not ask me for a directory.. Install Shield Wizard extracts the files then a msgbox pops up and states:
    There is not enough space on the C:\ Drive to extract this package
    Please free up 36.58 MB and Retry
    Well I don't have 36.58 MB to free up and the only options it gives me is retry or cancel.... I saw in another forum that this has happened before, but the person said he found a solution elsewhere, but did not state what that solution was....
    Please Help! Thanks, PP

  • Java 2 Platform Standard Edition (J2SE) 5.0 Release 1

    I'm trying to use Shutterfly, an on-line photo service and am having problems. They recommended checking on my Java edition. I did at the Java check version site and got this report "You do NOT have the latest version of Java software.
    The latest version of Java software = Java Runtime Environment Version 5.0 Update 6." So I downloaded but when I tried to install, I got this message: "You cannot install J2SE 5.0 Release 1 Package on this volume. This volume contains a newer version of Java 1.5." OK, I'm stumped...according to Java I don't have the current edition, but can't install it because I have a newer version? Am I missing a critical step...would sincerely appreciate any help?

    According to http://developer.apple.com/releasenotes/Java/Java50Release4RN/index.html, you have J2SE 5.0 Release 4 installed. Where that fits in with Update 6, I don't have a clue. This might help, http://forums.macosxhints.com/showthread.php?t=47531.

  • Error Installing Java 2 Platform Standard Edition v 1.4.2 (J2SE)

    I tried to install J2EESKD-1_4-DR_WINDOWS-EVAL.exe
    I received the following email message:
    This program has performed an illegal operation and will be shut down.
    J2EESDK-1_4-DR-WINDOWS-EVAL caused an invalid page fault in
    module MSVCRT.DLL at 015f:780012b1.
    Registers:
    EAX=00000006 CS=015f EIP=780012b1 EFLGS=00010206
    EBX=00000000 SS=0167 ESP=00550000 EBP=0055000c
    ECX=004159b4 DS=0167 ESI=8164f690 FS=38ff
    EDX=7efeff52 ES=0167 EDI=8164f938 GS=0000
    Bytes at CS:EIP:
    ff 35 50 a1 03 78 ff 74 24 08 e8 03 00 00 00 59
    Stack dump:
    004029b5 00000006 004159b4 0055001c 004029fe
    00000006 00000000 00550048 00404cf8 004159b4
    8164f690 00000000 00000000 00000000 00000000
    00000000
    Please reply soon.
    Thanks,
    Sincerely,
    Egan

    I'm having the same problem installing Enterprise Edition.
    I'm installing it on 98se which I think may be one of the causes as this version of Windows is not supported.
    Any help would be appreciated as I don't fancy upgrading my OS (and computer) quite yet.
    I suppose I could partition my hard drive and convert to Linux!
    Dave

  • Which Java 2 Platform Standard Edition for Windows do I download?

    For SDK for Windows 32 bit,
    There are two options, one is Windows Offline Installation, Mult-ilanguage
    and Windows Installation, Multilanguage.
    Which one do I choose?
    Please reply soon.
    Thanks,
    Sincerely, Egan

    For offline installation you can download that file and keep it for further use and then install it any time you want.
    If you go for other one you need to keep in connected ti internet b'coz that is online installation. you don't get the sofware backup copy for futher use. so go for offline installation.

  • Java? Platform, Standard Edition 6 API Specification in PDF or Word format

    I found this help documentation about Java classes on this address http://java.sun.com/javase/6/docs/api/. Can I find the same documentation but in format I can look while I'm not connected on the internet (like PDF or word documents)?
    Thanks.
    P.S. - Sorry if this is posted in the wrong section

    Here you go:
    [Java SE 6 API Doc. Download|https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u10-docs-oth-JPR@CDS-CDS_Developer]
    doc. installation instructions: [http://java.sun.com/javase/6/webnotes/install/jdk/install-docs.html]
    Found on this page: [http://java.sun.com/javase/downloads/index.jsp]
    (html version though)

  • Installation of J2SE V1.4.2 and NetBeans Java 2 Platform, Standard Edition

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8. After this very long download, my ISP disconnected. I re-connected, but am unable to install the download. Please help.
    alinda78

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8.
    After this very long download, my ISP disconnected.
    I re-connected, but am unable to install the
    e download. Please help.
    alinda78

  • Installing Java 2 Platform Standard Edition v 1.4.2 (J2SE) problem

    I tried to install J2EESKD-1_4-DR_WINDOWS-EVAL.exe
    I received the following email message:
    This program has performed an illegal operation and will be shut down.
    J2EESDK-1_4-DR-WINDOWS-EVAL caused an invalid page fault in
    module MSVCRT.DLL at 015f:780012b1.
    Registers:
    EAX=00000006 CS=015f EIP=780012b1 EFLGS=00010206
    EBX=00000000 SS=0167 ESP=00550000 EBP=0055000c
    ECX=004159b4 DS=0167 ESI=8164f690 FS=38ff
    EDX=7efeff52 ES=0167 EDI=8164f938 GS=0000
    Bytes at CS:EIP:
    ff 35 50 a1 03 78 ff 74 24 08 e8 03 00 00 00 59
    Stack dump:
    004029b5 00000006 004159b4 0055001c 004029fe
    00000006 00000000 00550048 00404cf8 004159b4
    8164f690 00000000 00000000 00000000 00000000
    00000000
    Please reply soon.
    Thanks,
    Sincerely,
    Egan

    I dont know why the program is crashing, but either way.. you have the wrong program. your title says you want J2SE, yet the program says:
    J2EESKD-1_4-DR_WINDOWS-EVAL.exe
    get the j2se package, there won't be any EVAL on the name because J2SE is free!

  • Java 2 Platform Standard Edition wont install

    Error number: 0x80070725
    Description: Incompatible version of the RPC stub.
    Setup will now terminate
    whats a RPC stub how do i fix this problem?

    Hello little newbie...
    Sounds to me like you have a problem with your operatiing system...
    i had similar error last year... so i put in a new operating system..
    no more problems...
    but i digress,before you post a question, you might want to take advantage of the search function provided here in the forum.
    I did a search on RPC Stuband there were a fair number of explainations , so its up to you to do a search & read,read, read...
    (but methinks its your OS).
    M.

Maybe you are looking for