Results 1 to 13 of 13
  1. #1
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Post after installing jdk my programs are compiling but running??

    hello
    i have installed jdk-6u18...
    after it installed it showed that a latest version is already is installed.so i uninstalled the jdk-6u20from my lapy which was already installed.
    i have set all the path and classpath properly..
    again
    when i typed javac it showed everything correctly..
    but when i typed java it is showing some error as jvm.cnfg not found.
    i have not written all part of the error..just the last 2 words..


    then i wrote a simple prog to print hello..
    the prog compiled smoothly...
    but unable to run ..

  2. #2
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    plz help me with the errors...

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: after installing jdk my programs are compiling but running??

    I would uninstall all of it, and reinstall the latest from the oracle homepage. Try that and see what happens!

  4. #4
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    THANKS FOR REPLYING
    which one is the latest..and wt i have to download..do i have to download jdk and jre both??
    if yes which versions..plz provide a detail..

  5. #5
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default Re: after installing jdk my programs are compiling but running??

    the JRE = Java Runtime Environment. If you didn't install this then its no wonder you can't run a Java program.

    JDK = Java (software) development kit for writing and compiling Java.

    Here is the link:
    Java SE Downloads

    I would suggest you start with the JDK 7u1 + NetBeans Bundle.

    And going through one of these tutorials:
    The Java™ Tutorials
    Copyright 2003 Patrick Henry Winston

  6. #6
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    error 1723.there is a problem with this windows installer package.
    a dll required 4 this to install to complete could not be run.
    contact your sopport personnel or package vendor..

    this is the error showed..

  7. #7
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default Re: after installing jdk my programs are compiling but running??

    I think the download is corrupted? Try to download it again but from a mirror instead.

  8. #8
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: after installing jdk my programs are compiling but running??

    Sounds to me like your windows install has bigger problems. I trust you're up on the latest virus/malware definitions?

  9. #9
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    yes...my antivirus iz upto date..its norton internet security..

  10. #10
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    i had deleted java folder from program file from c drive..

  11. #11
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default Re: after installing jdk my programs are compiling but running??

    Did you run an uninstaller or just delete a folder? Either way, once there is no trace of java left, and you download the latest ire & jdk and install them, what happens?

  12. #12
    NModern is offline Member
    Join Date
    Jul 2010
    Posts
    22
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    the roblem is in JDK if you have installed it, you can't run program just double clicking on them. selecting java.exe as default program not helps also if you have already installed JRE. you can run your program writing "java -jar programname.jar" in command line.

  13. #13
    aumkar0406 is offline Member
    Join Date
    Dec 2011
    Posts
    10
    Rep Power
    0

    Default Re: after installing jdk my programs are compiling but running??

    my problemms with java installation has solved..
    thank u for helping me with this..

Similar Threads

  1. Running Java programs in windows 7
    By jonytek in forum New To Java
    Replies: 1
    Last Post: 02-09-2011, 04:45 AM
  2. hi the program is compiling but not running why
    By javastuden in forum New To Java
    Replies: 6
    Last Post: 09-21-2010, 09:14 AM
  3. Replies: 6
    Last Post: 04-20-2009, 04:34 AM
  4. Running 3 Java programs in sequence.
    By loktamu in forum New To Java
    Replies: 2
    Last Post: 11-23-2008, 06:50 PM
  5. Problem in running java programs
    By aravind in forum New To Java
    Replies: 0
    Last Post: 07-14-2008, 11:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •