Note that there are some explanatory texts on larger screens.

plurals
  1. POClass Not Found Exception , though jar is present
    primarykey
    data
    text
    <pre><code>in my program package com.XSLTTransformation; import java.io.IOException; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import net.sf.jxls.exception.ParsePropertyException; import net.sf.jxls.transformer.XLSTransformer; public class XSLTTransformation { public static void main(String[] args) { Collection&lt;Employee&gt; staff = new HashSet&lt;Employee&gt;(); staff.add(new Employee("Derek", 35, 3000, 0.30)); staff.add(new Employee("Elsa", 28, 1500, 0.15)); staff.add(new Employee("Oleg", 32, 2300, 0.25)); staff.add(new Employee("Neil", 34, 2500, 0.00)); staff.add(new Employee("Maria", 34, 1700, 0.15)); staff.add(new Employee("John", 35, 2800, 0.20)); Map&lt;String, Collection&lt;Employee&gt;&gt; beans = new HashMap&lt;String, Collection&lt;Employee&gt;&gt;(); beans.put("employee", staff); XLSTransformer transformer = new XLSTransformer(); try { transformer.transformXLS("C:/Users/hussain.a/Desktop/malay/newprojectpocdetails/temp.xls", beans, "C:/Users/hussain.a/Desktop/malay/newprojectpocdetails/proovNYOutput.xls"); } catch (ParsePropertyException e) { e.printStackTrace(); } catch (InvalidFormatException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } </code></pre> <p>i find this error</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/jexl2/parser/Node at net.sf.jxls.transformer.XLSTransformer.transformWorkbook(XLSTransformer.java:269) at net.sf.jxls.transformer.XLSTransformer.transformXLS(XLSTransformer.java:221) at net.sf.jxls.transformer.XLSTransformer.transformXLS(XLSTransformer.java:201) at com.XSLTTransformation.XSLTTransformation.main(XSLTTransformation.java:27) Caused by: java.lang.ClassNotFoundException: org.apache.commons.jexl2.parser.Node at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) </code></pre> <p>i have placed the jar which has this class , i am not able to identify real prob</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload