Results 1 to 12 of 12
- 11-07-2011, 06:33 PM #1
Member
- Join Date
- Jul 2011
- Location
- New Delhi,India
- Posts
- 56
- Rep Power
- 0
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.....
- 11-08-2011, 04:10 AM #2
Member
- Join Date
- Jul 2011
- Location
- New Delhi,India
- Posts
- 56
- Rep Power
- 0
Re: creation for JAR file using Netbeans(a problem)
please reply urgently,i have to submit it as my project.....thanks in advance....
- 11-08-2011, 04:29 AM #3
Re: creation for JAR file using Netbeans(a problem)
urgently
Your time constraints are your problem not ours.
- 11-08-2011, 04:48 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
Re: creation for JAR file using Netbeans(a problem)
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.i want to know how to make those images embedded in code
- 11-09-2011, 04:38 AM #5
Member
- Join Date
- Jul 2011
- Location
- New Delhi,India
- Posts
- 56
- Rep Power
- 0
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 04:45 AM.
- 11-09-2011, 04:39 AM #6
Member
- Join Date
- Jul 2011
- Location
- New Delhi,India
- Posts
- 56
- Rep Power
- 0
- 11-09-2011, 10:02 PM #7
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!
- 11-10-2011, 05:34 AM #8
Member
- Join Date
- Jul 2011
- Location
- New Delhi,India
- Posts
- 56
- Rep Power
- 0
- 11-10-2011, 05:45 AM #9
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.
- 11-10-2011, 09:24 AM #10
Member
- Join Date
- Jul 2011
- Location
- New Delhi,India
- Posts
- 56
- Rep Power
- 0
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-18-2011, 01:31 AM #11
- 11-18-2011, 08:28 AM #12
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
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
-
NetBeans incompatibility with an application: JVM creation failed
By Jonathan H. in forum NetBeansReplies: 0Last Post: 03-30-2011, 03:40 PM -
Problem in File Creation
By rajanerode in forum New To JavaReplies: 1Last Post: 03-15-2011, 11:27 AM -
Creation of ResourceBundle Object of propetirs file using only substring of file name
By kalwankark in forum Advanced JavaReplies: 0Last Post: 11-26-2010, 10:10 PM -
Problem in importing jar file in libraries of netbeans
By dataprofiling in forum AWT / SwingReplies: 1Last Post: 03-30-2010, 11:30 AM -
Jar file creation
By raghu9198 in forum New To JavaReplies: 4Last Post: 01-11-2009, 03:40 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks