Results 1 to 2 of 2
  1. #1
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default Distributing .jar

    Hi, I am trying to distribute a small application. I use netbeans 6.9 to create this small application. I extracted the .jar file in different path but the same computer where the appplication has made and it runs fine. Then I try it in another computer, after I extract the .jar file and double click it is gives me message "Could not find main class. ..."

    What I am doing wrong?

    This is my first time to do this.

    Thanks,
    geje

  2. #2
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    I found out that one of the JDK or JRE is not properly installed. I uninstall both JDK and JRE, download the latest JDK in Netbeans site then install it again (JRE was installed automatically). After doing this the program runs.

    Thanks members, :)
    geje

Similar Threads

  1. Weird problem with distributing .jar
    By Cynot in forum NetBeans
    Replies: 3
    Last Post: 06-07-2010, 10:01 PM
  2. Weird problem with distributing .jar
    By Cynot in forum New To Java
    Replies: 4
    Last Post: 06-07-2010, 12:03 PM
  3. code migration problem in distributing system
    By sushil in forum AWT / Swing
    Replies: 2
    Last Post: 10-29-2009, 01:34 PM

Posting Permissions

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