Results 1 to 6 of 6
  1. #1
    jafarmat is offline Member
    Join Date
    Jul 2014
    Posts
    3
    Rep Power
    0

    Default A Java Exception Has Occured ...on another machine

    Hello . Before i start i want to apologize because i know there was another thread with this problem , but i couldn't solve the problem and the post was from 2011.

    So , i have this java project in eclipse . I run it , everything is ok , even in cmd. I export it to a runable jar file , it works , but when i transfer and run it from another machine i get that little window saying "A Java Exception has occured".

    I have been reading on the internet , and i think the main cause is that the external libraries are not within the application . Again , this is what i think , it's 99% possible that i might be wrong and i'm sorry about that.

    In some posts , someone was talking about ANT and other things that i have never heard of , and i don't want to lose anymore time with this thing . If i have to go through this thing everytime i want to make an application in java , i might aswell go sell hamburgers at mcdonalds :))

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    19,990
    Rep Power
    32

    Default Re: A Java Exception Has Occured ...on another machine

    Probably something is missing from the jar if it works in the IDE and doesn't work outside it.
    To get more information about the problem, open a command prompt window and change directory to where the jar file is located and enter the command:
    java -jar THEJARFILENAME.jar

    Any error messages should show on the console window. Copy its contents and paste it here.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    jafarmat is offline Member
    Join Date
    Jul 2014
    Posts
    3
    Rep Power
    0

    Default Re: A Java Exception Has Occured ...on another machine

    I already did that (on local machine ) but it just runs , no error no warning no nothing :( . But when i asked some friends to test it they receive that error

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    19,990
    Rep Power
    32

    Default Re: A Java Exception Has Occured ...on another machine

    Hard to suggest any ways to fix it without error messages.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    jafarmat is offline Member
    Join Date
    Jul 2014
    Posts
    3
    Rep Power
    0

    Default Re: A Java Exception Has Occured ...on another machine

    i asked a friend to run it in cmd and this is what he got :

    C:\>java -jar Image.jar
    Error: Invalid or corrupt jarfile Image.jar

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    19,990
    Rep Power
    32

    Default Re: A Java Exception Has Occured ...on another machine

    Ok. Send him another one if the one he has is bad. Also Have him send you the bad one so you can examine it and see what the problem with it is.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 10
    Last Post: 04-29-2014, 05:30 PM
  2. A Java Exception Has Occured
    By supervegito in forum New To Java
    Replies: 9
    Last Post: 03-25-2013, 03:11 PM
  3. Java Exception Has Occured Problem Pls Help
    By Kobefernandez in forum New To Java
    Replies: 5
    Last Post: 01-07-2013, 03:01 AM
  4. Java Exception Has Occured
    By EdenC in forum Eclipse
    Replies: 9
    Last Post: 08-30-2011, 04:40 PM
  5. Java Exception Has Occured
    By EdenC in forum New To Java
    Replies: 12
    Last Post: 08-29-2011, 04:20 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
  •