Re: Installation Problems

2010-08-19 Thread Thomas P Laford
Yes, I had to un-zip the JAR file into my applet's development directory, and then include those classes in my jar file when I created it. That solved half of my problem. The other half involved the fact that Java applets don't have permission to access stuff (files, databases, etc) on the lo

Re: Installation Problems

2010-08-12 Thread Bobby Kent
I'd think you need to specify a classpath that is accessible from the context of the browser's JVM, i.e. as URLs... Alternatively you could rebundle all the dependent jars into a single jar, Eclipse is capable of doing this kind of thing. On Aug 12, 2010, at 13:06, Thomas P Laford wrote: >

Re: Installation Problems

2010-08-12 Thread Nick Burch
On Thu, 12 Aug 2010, Thomas P Laford wrote: When I put my JApplet class in a JAR file with the five JAR files noted above, and try to run it in the appletview or IE7, it fails just like before Try unpacking all the jars, and including the class files. In many cases nested jars aren't used Ni

Re: Installation Problems

2010-08-12 Thread Thomas P Laford
OK. I found dom4j. My class path now has the following JAR files: poi-3.6-20091214.jar poi-ooxml-3.6-20091214.jar poi-ooxml-schemas-3.6-20091214.jar xbean.jar dom4j-1.6.1\dom4j-1.6.1.jar When I write my class as a JFrame, and run it as an application it wo

Re: Installation Problems

2010-08-12 Thread Thomas P Laford
Ok, I understand the dependencies, but where do I get org/dom4j/DocumentException? Thomas From: Nick Burch To: POI Users List Date: 08/12/2010 09:37 AM Subject: Re: Installation Problems On Thu, 12 Aug 2010, Thomas P Laford wrote: > Ok, I changed the code so it creates an applicat

Re: Installation Problems

2010-08-12 Thread Nick Burch
On Thu, 12 Aug 2010, Thomas P Laford wrote: Ok, I changed the code so it creates an application instead of an applet. When I run it, I receive the same error for a DIFFERENT class: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException http://poi.apache.org/overview.html#compon

Re: Installation Problems

2010-08-12 Thread Thomas P Laford
Ok, I changed the code so it creates an application instead of an applet. When I run it, I receive the same error for a DIFFERENT class: java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlException When I added "xbeans.jar" to my class path, the error changed to: java.lang.NoC

Re: Installation Problems

2010-08-12 Thread Nick Burch
On Thu, 12 Aug 2010, Thomas P Laford wrote: It really shouldn't be this much trouble to use POI should it? Well, you are using an applet... I'd suggest you try with a normal, non applet program first, and ensure everything works properly there. When you're happy with your code, then and only

Re: Installation Problems

2010-08-12 Thread Thomas P Laford
Still no success. As Ashish suggested, I updated the MANIFEST.MF file to include a class-path entry that included all the POI jar files. My MF file looked like this: Manifest-Version: 1.0 Class-Path: poi-3.6-20091214.jar; poi-contrib-3.6-20091214.jar; poi-examples-3.6-20091214

RE: Installation Problems

2010-08-12 Thread Thomas P Laford
Still no luck. I upgraded to IE7 (that's the approved version for my company) and that didn't fix the problem. I copied the six poi-*.jar files into the directory with my java/class files and that didn't fix the problem. I created a JAR file by typing "jar cf MyApp.jar *.class poi*.jar" and I

Re: Installation Problems

2010-08-12 Thread Ashish Dasnurkar
here is a thread that talks about Applet classpath and recommended way of setting classpath for 3rd party library referred by Applet (read the last reply on that thread) http://www.velocityreviews.com/forums/t152635-java-applet-classpath.html hope that helps.

RE: Installation Problems

2010-08-12 Thread Nick Burch
On Thu, 12 Aug 2010, Thomas P Laford wrote: Here's what I am using: IE6, JDK 6 update 21, POI 3.6. Is there something about JDK 6 update 21 that is incompatible with POI? I don't think so, however it's well known that java applets aren't ideal, and that old versions of IE are generally proble

RE: Installation Problems

2010-08-12 Thread Thomas P Laford
Alas neither solution worked. When I looked at the registry (as David suggested) there was no CLASSPATH entry for the Java VM (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM). In fact I searched and didn't find anything related to IE or Java that included a classpath. I tried Adrian's suggesti

RE: Installation Problems

2010-08-12 Thread Harrison, Adrian
In my experience "Program Files" causes a problem (because I think due to the space) in the classpath try "progra~1" instead -Original Message- From: David Fisher [mailto:dfis...@jmlafferty.com] Sent: 11 August 2010 19:17 To: POI Users List Subject: Re: Installatio

Re: Installation Problems

2010-08-11 Thread David Fisher
led without > any errors, but when I try to activate the applet using IE6, I still get > java.lang.NoClassDefFoundError: org/apache/poi/xssf/usermodel/XSSFWorkbook > > Thomas > > > > From: > David Fisher > To: > "POI Users List" > Date: >

Re: Installation Problems

2010-08-11 Thread Thomas P Laford
/usermodel/XSSFWorkbook Thomas From: David Fisher To: "POI Users List" Date: 08/11/2010 01:44 PM Subject: Re: Installation Problems Hi Thomas, > 1) I just downloaded poi-bin-3.6-20091214.zip to my Windows XP PC. > > 2) I unzipped the file into C:\Program Files\Java

Re: Installation Problems

2010-08-11 Thread David Fisher
Hi Thomas, > 1) I just downloaded poi-bin-3.6-20091214.zip to my Windows XP PC. > > 2) I unzipped the file into C:\Program Files\Java\ so there is now a > poi-3.6 folder > > 3) I added the following two entries to my CLASSPATH: You always need this first. C:\Program Files\Java\poi-3.6\

Installation Problems

2010-08-11 Thread Thomas P Laford
Hello, 1) I just downloaded poi-bin-3.6-20091214.zip to my Windows XP PC. 2) I unzipped the file into C:\Program Files\Java\ so there is now a poi-3.6 folder 3) I added the following two entries to my CLASSPATH: C:\Program Files\Java\poi-3.6\poi-ooxml-3.6-20091214.jar C:\Program