Results 1 to 12 of 12
  1. #1
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Question creation for JAR file using Netbeans(a problem)

    i made a jigsaw game with java where i am using images saved in my hard disk.....now i want to make a JAR file of the program and want to distribute it,but when i tried to make the JAR,it doesnt run,probably because of the images which are not included in the JAR file...i want to know how to make those images embedded in code???

    my code have lines like this-

    i[0] =getImage(getCodeBase(), "IMG_00931(3)(2).jpg");

    how to make the JAR file that runs on other computers as well?

    thanks in advance....you all are doing great job.....

  2. #2
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Default Re: creation for JAR file using Netbeans(a problem)

    please reply urgently,i have to submit it as my project.....thanks in advance....

  3. #3
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default Re: creation for JAR file using Netbeans(a problem)

    urgently

    Your time constraints are your problem not ours.

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: creation for JAR file using Netbeans(a problem)

    i want to know how to make those images embedded in code
    I'm not entirely sure what it means to embed images in code. But if you are trying to put the images into the jar archive so that the whole thing can be run as one self contained unit, have a read of Creating a Jar File which addresses this. It is part of the Packaging Programs in Jar Files lesson of Oracle's Tutorial.

  5. #5
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Default Re: creation for JAR file using Netbeans(a problem)

    thanks for the reply pbrockway2.......i am trying....:)
    Last edited by Cosmos; 11-09-2011 at 05:45 AM.

  6. #6
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Default Re: creation for JAR file using Netbeans(a problem)

    Quote Originally Posted by Junky View Post
    urgently

    Your time constraints are your problem not ours.
    thanks for the reply.......your reply is soooooo valuable to me......

  7. #7
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default Re: creation for JAR file using Netbeans(a problem)

    2 ways to guarantee that you won't get help: state that your problem is urgent and making snide comments to those you want help from. Congrats you have done both!

  8. #8
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Default Re: creation for JAR file using Netbeans(a problem)

    Quote Originally Posted by Junky View Post
    2 ways to guarantee that you won't get help: state that your problem is urgent and making snide comments to those you want help from. Congrats you have done both!
    it wasnt me who commented in a rude manner....it was you who did that.....i just asked for your help...if you cant help,please dont even try to comment....let others do that.......

  9. #9
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,800
    Rep Power
    7

    Default Re: creation for JAR file using Netbeans(a problem)

    I was not being rude. I simply pointed out the imposing your time constraints on us is counter productive. People are less likely to give you help if you proclaim it is urgent. By doing so implies that you are more important than anyone else asking for help and that we should drop what we are doing and solve your problem immediately. Your response will be "No. I never meant that" In that case what was the purpose of stating that it is urgent in the first place? Of course the only point was to get a response quickly. Now, I have offered you some advice on how to improve your chances of getting help in the future. Or you can continue to whinge, complain and argue which will only reduce your chances of getting help in the future. The choice is yours. I know which one smart people will make.

  10. #10
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Default Re: creation for JAR file using Netbeans(a problem)

    i have posted that i need help urgently because "i really need it urgently".....i didnt get the reply for 24-30 hours after i have posted it....only after that i posted please reply urgently....i cant see any breaking of rules......i wanted the help because i have to submit it as my project.....what purpose will be solved if i get a reply after the date on which i have to submit it as my project....

    i am too a universal moderator of my university student portal and when anyone says that they want help urgently,we reply to them accordingly and never discourage them.....

    i am really sorry if i have hurt anyone's feelings......but i was not getting any reply here in this thread group(i.e. in Applet section) as well as in Networking section(where i have posted my query 3-4 days back,but no one replied to it)....only after that i wrote i need help urgently......sorry if any of my posts are not upto the mark....

  11. #11
    stchman's Avatar
    stchman is offline Member
    Join Date
    Apr 2011
    Location
    Saint Louis, Missouri
    Posts
    97
    Rep Power
    0

    Default Re: creation for JAR file using Netbeans(a problem)

    Quote Originally Posted by Junky View Post
    I was not being rude.
    Yeah right!!!

    Junky not meaning to be rude is like water not meaning to be wet.
    If you aren't programming in Java, well that's just too bad.
    I'd rather be using Ubuntu.

  12. #12
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: creation for JAR file using Netbeans(a problem)

    @stchman

    Please don't open up threads so that you can vent your displeasure at other people. It is annoying to notified that a thread one has contributed to has new content and go to the trouble of opening it and reading it only to find that the added post offers nothing to the technical substance of that thread.

Similar Threads

  1. Replies: 0
    Last Post: 03-30-2011, 04:40 PM
  2. Problem in File Creation
    By rajanerode in forum New To Java
    Replies: 1
    Last Post: 03-15-2011, 12:27 PM
  3. Replies: 0
    Last Post: 11-26-2010, 11:10 PM
  4. Problem in importing jar file in libraries of netbeans
    By dataprofiling in forum AWT / Swing
    Replies: 1
    Last Post: 03-30-2010, 12:30 PM
  5. Jar file creation
    By raghu9198 in forum New To Java
    Replies: 4
    Last Post: 01-11-2009, 04:40 AM

Posting Permissions

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