Results 1 to 3 of 3

Thread: [RESOLVED] Having errors with my .jar files...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Location
    Ithaca, NY
    Posts
    145

    Resolved [RESOLVED] Having errors with my .jar files...

    Whenever I build my projects in netbeans to a .jar file they work fine on that machine. However, when I transfer them to another machine and execute them I get the following error:

    The main class cannot be found.

    I set the main class to the right one in netbeans before building it and like I said it works fine on the machine I built it on but not on others... what could be the problem?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Having errors with my .jar files...

    The class path, perhaps.

    Or perhaps a version conflict. Aren't you using JDK 1.6? Do the other machines have a 1.6 JRE, or do they have a 1.5 or 1.4?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2006
    Location
    Ithaca, NY
    Posts
    145

    Re: Having errors with my .jar files...

    Nevermind... the problem was with netbeans' jar builder. I switched to building jars with eclipse and they work fine.

Posting Permissions

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



Click Here to Expand Forum to Full Width