Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: jdk is not installed properly error..

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default jdk is not installed properly error..

    hi...when i run a java apps written by my friend on my pc i received some error in the attached img file... i am wondering how do i solve... i have download the lastest jdk installation software already....
    Last edited by bczm8703; May 31st, 2011 at 10:12 AM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: jdk is not installed properly error..

    What OS and what version of the JDK do you have?

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: jdk is not installed properly error..

    Quote Originally Posted by Norm View Post
    What OS and what version of the JDK do you have?
    OS: window 7 ultimate 64bit
    Jdk ver: ver 6 update 25

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: jdk is not installed properly error..

    How do you execute the program?
    Can you open a console window, change directories to the folder with the .jar file (I assume the program is in a jar file) and issue this command:
    java -jar <THE JAR FILE NAME HERE>.jar

    If there are any error messages on the console window, copy them (RC and copy) here.

  5. #5
    Member
    Join Date
    Mar 2011
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: jdk is not installed properly error..

    Quote Originally Posted by Norm View Post
    How do you execute the program?
    Can you open a console window, change directories to the folder with the .jar file (I assume the program is in a jar file) and issue this command:
    java -jar <THE JAR FILE NAME HERE>.jar

    If there are any error messages on the console window, copy them (RC and copy) here.
    the program has being compile into .exe file.. also i i just double click on it

  6. #6
    Member
    Join Date
    Mar 2011
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: jdk is not installed properly error..

    i did some test... i tried to run the same program on another com which OS is Win 7 Home 64bit and i just install the jre ver6 update 25 and everything could be run perfectly... is there any setting i have to do?? when i run the program on the win 7 home PC i run it as normal user so i dun think is the UAC fault...

  7. #7
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: jdk is not installed properly error..

    program has being compile into .exe file
    Then there must be third party software involved. I have No idea what that code does.
    What happens if you create a jar file and use the java -jar command?

Similar Threads

  1. Output not coming through properly
    By Camiot in forum What's Wrong With My Code?
    Replies: 6
    Last Post: May 16th, 2011, 09:25 PM
  2. how to run any installed application through my java application??
    By sgsamanthjain in forum Java Theory & Questions
    Replies: 1
    Last Post: April 1st, 2011, 08:17 AM
  3. my FileReader(i think) isn't performing properly..
    By weej25aya in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 21st, 2011, 10:06 PM
  4. Complete but not working properly
    By Noob101 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 12th, 2011, 03:17 PM
  5. Using 1.5 jre/webstart on a computer with 1.6 installed
    By qman32 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: January 27th, 2011, 12:29 PM