Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2009, 03:52 PM
Member
 
Join Date: Nov 2008
Posts: 9
Rep Power: 0
Macca07 is on a distinguished road
Default package jxl does not exist ??? any ideas
Hey, when compiling one of my .java files I get the message
"package jxl does not exist
import jxl.WorkbookSettings;"

I've changed the classpath so it'll point to the jar file but still nothing.

Any ideas?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-24-2009, 03:59 PM
Senior Member
 
Join Date: Sep 2008
Location: Voorschoten, the Netherlands
Posts: 930
Rep Power: 2
JosAH is on a distinguished road
Default
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-24-2009, 04:07 PM
Member
 
Join Date: Nov 2008
Posts: 9
Rep Power: 0
Macca07 is on a distinguished road
Default
The importing for the file is

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;
I copied the jxl.jar straight into my C: drive so the classpath is C:\jxl.jar.

Any ideas what is wrong?

P.S. Just checked the jar file, I contains everything I need
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-24-2009, 05:32 PM
Member
 
Join Date: Nov 2008
Posts: 9
Rep Power: 0
Macca07 is on a distinguished road
Default
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
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
package java.text does not exist sknn NetBeans 12 02-03-2010 04:14 PM
The declared package does not match the expected package oneforall Eclipse 7 11-09-2009 08:51 AM
package javax.servlet does not exist :> wildheart25c Java Servlet 1 10-30-2009 09:07 AM
package javax.servlet does not exist nikhil2jan Java Servlet 1 01-04-2009 05:32 PM
package mj does not exist PzK New To Java 8 12-03-2008 11:30 PM


All times are GMT +2. The time now is 02:20 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org