how to import a jxl package?

I am using BlueJ IDE.

I downloaded a jxl package from internet.

I used next syntax to import my jxl package into my java file:

import jxl.*;

I stored this jxl package on my hard disk into:

c:\j2sdk1.4.2_13\src\

I always get this compilation error when I compile my file:

"package jxl does not exist".

How can I solve this problem? Thank you.

[396 byte] By [aditma] at [2007-11-27 0:14:42]
# 1

>I stored this jxl package on my hard disk into:

>c:\j2sdk1.4.2_13\src\

No, don't.

download jxl to another location (D:/tmp/ for example) then add the jar file to your classpath (via BlueJ IDE).

Alternatively, add this jar to c:\j2sdk1.4.2_13\jre\lib\ext\.

hth

java_2006a at 2007-7-11 22:00:33 > top of Java-index,Java Essentials,Java Programming...
# 2

Thank you very much for suport.

It still does not work.

I made a jar file from the package jxl.

I named this jar file as "jxl.jar"

Then I loaded this "jxl.jar" file into Tool/Preferences/Libraries.

In this way, I still have the same compilation error that I mentioned earlier.

If I store the "jxl.jar" file into " C:\j2sdk1.4.2_13\jre\lib\ext\ " ,then when I start BlueJ, BlueJ does not starting anymore, it blocks itself.

What should I do next?

aditma at 2007-7-11 22:00:33 > top of Java-index,Java Essentials,Java Programming...
# 3
Hi,Browse your jxl package and check jxl.jar. And add it to your classpath. bye for nowsat
AnanSmritia at 2007-7-11 22:00:33 > top of Java-index,Java Essentials,Java Programming...
# 4
Thank you very much guys, now it works.I did not know that the jar file already existed in my jxl package.It works super. 10x again
aditma at 2007-7-11 22:00:33 > top of Java-index,Java Essentials,Java Programming...