imported Jar Files

I have created a Java application using Eclipse.. To get functions to work, I needed to import external jar file.Within Eclipse its all working fine, but once I create the application to a Jar file to run in Windows, it does not work.It抯 having problems with the feature that would use functions from the imported jar file.

How do I get it to work outside of Eclipse? Any Hint or tips?

Thanks

Chris C

[426 byte] By [Coopera] at [2007-11-27 4:13:17]
# 1
Hint: classpath
cotton.ma at 2007-7-12 9:19:29 > top of Java-index,Java Essentials,New To Java...
# 2

yeah, I've checked the classpath and it states

<?xml version="1.0" encoding="UTF-8"?>

<classpath>

<classpathentry kind="src" path=""/>

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

<classpathentry kind="lib" path="C:/dom4j-1.6.1.jar"/>

<classpathentry kind="output" path=""/>

</classpath>

<classpathentry kind="lib" path="C:/dom4j-1.6.1.jar"/>

IS the correct location for the external jar.

Coopera at 2007-7-12 9:19:29 > top of Java-index,Java Essentials,New To Java...
# 3
This still does not work..Any tips? :-)
Coopera at 2007-7-12 9:19:29 > top of Java-index,Java Essentials,New To Java...
# 4

> This still does not work..Any tips? :-)

Well you need to set the classpath at runtime. I am not sure what Eclipse is doing with that XML snippet you provided. I can only guess something not good.

You might want to take a look at this thread http://forum.java.sun.com/thread.jspa?threadID=5171998 because the person is having the same general problem as you.

cotton.ma at 2007-7-12 9:19:29 > top of Java-index,Java Essentials,New To Java...