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 4 of 4

Thread: Problem running .jar in Windows 7

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem running .jar in Windows 7

    Hello everyone, I am new here. I am having a problem running my executable jar file in windows 7. I created a program to open all of my applications from one interface. It runs in windows XP and Vista but not on windows 7. I use Netbeans IDE, built and created the jar file. The manifest file somehow was not edited so i edited it myself.
    I can run the jar file from the command line with java -jar (jar path), but when i double click the jar file i get the following error.

    Could not find main class
    (jar path)
    Program will not exit.

    Has anyone else her every encountered this problem. Does anyone know how I can fix this?


  2. #2
    Junior Member
    Join Date
    Jan 2011
    Location
    Việt Nam
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Problem running .jar in Windows 7

    Quote Originally Posted by SpiceProgrammer View Post
    Hello everyone, I am new here. I am having a problem running my executable jar file in windows 7. I created a program to open all of my applications from one interface. It runs in windows XP and Vista but not on windows 7. I use Netbeans IDE, built and created the jar file. The manifest file somehow was not edited so i edited it myself.
    I can run the jar file from the command line with java -jar (jar path), but when i double click the jar file i get the following error.

    Could not find main class
    (jar path)
    Program will not exit.

    Has anyone else her every encountered this problem. Does anyone know how I can fix this?
    Here for you:
    jarfix.rar
    contact: vudv@hotmail.com

  3. The Following User Says Thank You to vudv For This Useful Post:

    javapenguin (December 21st, 2011)

  4. #3
    Forum Squatter newbie's Avatar
    Join Date
    Nov 2010
    Location
    North Wales
    Posts
    661
    My Mood
    Stressed
    Thanks
    28
    Thanked 115 Times in 106 Posts
    Blog Entries
    1

    Default Re: Problem running .jar in Windows 7

    Unless a mod says otherwise, Id recommend highly that you don't follow the link vudv provided

    Here is the website of software called "jarfix", description seems to suggest it could fix your problem, but no guarantees.
    JarFix/index.html

    -Nothing personal vudv, Just a link to a .rar file with a post count of 1 seems a little suspicious
    Last edited by newbie; January 17th, 2011 at 03:55 PM.
    Please use [highlight=Java]//code goes here...[/highlight] tags when posting your code

  5. #4
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Problem running .jar in Windows 7

    The file is only about 22 KB. A little small to be virus infected.

Similar Threads

  1. Problem running Apache tomcat 6.0 using i.p. address
    By nakul in forum JavaServer Pages: JSP & JSTL
    Replies: 3
    Last Post: April 8th, 2010, 07:58 AM
  2. Under Windows OS, how to call *.EXE produced in Linux OS?
    By tony_lincoln in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 19th, 2010, 12:51 AM
  3. Overlapping windows? in a Jframe?
    By chronoz13 in forum AWT / Java Swing
    Replies: 6
    Last Post: November 21st, 2009, 12:01 PM
  4. Replies: 1
    Last Post: March 11th, 2009, 04:41 PM
  5. FileNotFound error while working with XML files in windows
    By ochieng in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: November 14th, 2008, 07:56 AM