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 September 27th, 2007, 06:14 PM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default cant use jar file

Basically I have few files in one package in every one of them I worte:

"pack preyPackage;"

And I have some .jar file that I try to use. So I drag it into the oracle compiler, but I still couldnt use it. But if I delete the row:

"pack preyPackage;"

from each .java I able to use that .jar file.
my question is how can I still use that .jar file and package's all that other files..

Picture that shows the problem:
http://hwzone.co.il/community/index....ch=92107;image

Thanks.


 
Old October 9th, 2007, 11:48 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

First try adding the jar file to the class path of your project.

- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading xml file which is in a JAR file pradheepayyanar J2EE 2 December 26th, 2007 05:52 AM
import file from jar geek.shrek XSLT 3 November 9th, 2007 06:19 AM
JAR File Obfuscate Anandharaj Struts 0 September 26th, 2007 07:43 AM
JAR file sugarpalm157 Pro Java 1 August 23rd, 2007 08:27 AM
Accessing properties file outside jar file anand_indya J2EE 0 December 8th, 2004 06:34 AM





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