Results 1 to 6 of 6
- 11-24-2009, 02:52 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 9
- Rep Power
- 0
- 11-24-2009, 02:59 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Either your classpath is still incorrect or that package doesn't exist; btw, you can check the contents of your .jar file with an ordinary zip application.
kind regards,
Jos
- 11-24-2009, 03:07 PM #3
Member
- Join Date
- Nov 2008
- Posts
- 9
- Rep Power
- 0
The importing for the file is
I copied the jxl.jar straight into my C: drive so the classpath is C:\jxl.jar.Java Code:import jxl.Workbook; import jxl.WorkbookSettings; import jxl.format.Alignment; import jxl.format.Border; import jxl.format.BorderLineStyle; import jxl.write.*; import jxl.write.Number;
Any ideas what is wrong?
P.S. Just checked the jar file, I contains everything I need
- 11-24-2009, 04:32 PM #4
Member
- Join Date
- Nov 2008
- Posts
- 9
- Rep Power
- 0
OK, got it sorted, well my classpath still won't recognise it so have to put in the full classpath when compiling, thanks for the help
- 05-14-2012, 07:13 PM #5
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
Re: package jxl does not exist ??? any ideas
This works to me:
1-Change or set the CLASSPATH in Environment Variables:
* Open Explorer (Windows-E)
* Right-click on Computer
* Select Properties
* On the "Advanced" Tab select "Environment Variables..."
* On System variables window, Edit or Add a new variable named: CLASSPATH
* On Variable Value set the place where jxl.jar is, example: .;C:\YourPath\jxl.jar
2-Open a new CMD window and compile as usual.
@
- 05-14-2012, 07:38 PM #6
Re: package jxl does not exist ??? any ideas
Please don't post to old dead threads. The question was adequately answered 2½ years ago.
Moreover, the preferred way to do things is to set the classpath via the -cp flag on the command line or the Class-Path header field in the manifest file of an applet or application. Not by setting the system environment variable.
db
THREAD CLOSEDWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
package javax.servlet does not exist :>
By wildheart25c in forum Java ServletReplies: 2Last Post: 02-17-2010, 12:02 AM -
package java.text does not exist
By sknn in forum NetBeansReplies: 12Last Post: 02-03-2010, 03:14 PM -
The declared package does not match the expected package
By oneforall in forum EclipseReplies: 7Last Post: 11-09-2009, 07:51 AM -
package javax.servlet does not exist
By nikhil2jan in forum Java ServletReplies: 1Last Post: 01-04-2009, 04:32 PM -
package mj does not exist
By PzK in forum New To JavaReplies: 8Last Post: 12-03-2008, 10:30 PM


LinkBack URL
About LinkBacks


Bookmarks