Wrox Programmer Forums
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2008, 12:44 AM
Registered User
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default about jar files.

dear friends,
i managed to make a jar file which include several class file, jpg file, gif files, icon file etc.
when i run my newly created jar file from the folder where all the files are kept it runs excellently. but if i copy, only this jar file to a new location, and run from this location the window frame open without any problem but the .jpg or .gif files is not shown on the label where it is supposed to be shown.
later i also checked whether the .jpg or .gif files been included in the jar file during the compression. when i decompressed it i found that this jar files is containing the .jpg and .gif files.
 
Old December 22nd, 2008, 11:47 PM
jomet
Guest
 
Posts: n/a
Default

Check the specified path is correct where you used the image files.
Is absolute path or relative?
My guess is you used some absolute path.
 
Old December 23rd, 2008, 03:38 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

The directory structure of your jar file and the path you've used for images would help us find the problem!
__________________
- Rakesh
http://iam-rakesh.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
JAR file sugarpalm157 Pro Java 1 August 23rd, 2007 08:27 AM
Need ldapfilt.jar and ldapjdk.jar minhpx J2EE 0 June 14th, 2005 10:27 PM
Choose all the JAR files by using FileDialog anand_indya J2EE 0 March 8th, 2005 10:01 AM
where is wml.jar mask95 All Other Wrox Books 1 August 19th, 2004 09:17 PM
Running Jar files in NetBeans Ibn_Aziz JSP Basics 0 May 17th, 2004 01:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.