RE: running jar files
To execute a Jar file I would do c:\ java -jar jarfile.jar if I was trying to execute a specific class in a jar file I would do : c:\ java -cp jarfile1.jar;jarfile2.jar; com.lansa.web.admin.WebAdmin If that doesn´t work I would check if this class really exists in the jarfiles I have, and if I have the correct path. Anyways it seems that you are executing the correct class, but it does not get to another class that should be in the jarfiles that you have in your classpath. So, I would check if I had this class com.lansa.web.servlet in my jarfiles (the ones in my classpath). maybe it isn´t there, then you should head back to the download page or something. I dont know this product and I´ve never used it. It seems like you´re haveing problems with basic java stuff, really just pretty much off topic for this list. hope it helps, regards, [EMAIL PROTECTED] -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: 22. janúar 2002 16:25 To: Tomcat Users List Subject: running jar files I have some jar files, swingall.jar and lansa.jar How do I do the equivalent of: java -cp ./:./lansa.jar:./swingall.jar com.lansa.web.admin.WebAbmin which basically run manually the WebAdmin applet. I know it's an applet but there is a servlet equivalent. Sorry if this is too much of a basic question but after 3 days of trying just about every combination under the sun, am still getting nowhere, all I ever get is java.lang.NoClassDefFoundError... com/lansa/web/servlet Dom -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: running jar files
May be I wasn't too clear. actually something like: c:\ java -cp jarfile1.jar;jarfile2.jar; com.lansa.web.admin.WebAdmin works very well and am just trying to reproduce that under tomcat4. I've even extracted all the content of lansa.jar and swingall.jar and copied it under /webapps/lansa/WEB-INF/classes but no matter I always seem to get the dependency issue. I believe there's no classes missing cos I know those jar files work using jserve but it seem that tomcat can't find the required classes. Thanks Dom -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: 22 January 2002 16:36 To: Tomcat Users List Subject: RE: running jar files To execute a Jar file I would do c:\ java -jar jarfile.jar if I was trying to execute a specific class in a jar file I would do : c:\ java -cp jarfile1.jar;jarfile2.jar; com.lansa.web.admin.WebAdmin If that doesn´t work I would check if this class really exists in the jarfiles I have, and if I have the correct path. Anyways it seems that you are executing the correct class, but it does not get to another class that should be in the jarfiles that you have in your classpath. So, I would check if I had this class com.lansa.web.servlet in my jarfiles (the ones in my classpath). maybe it isn´t there, then you should head back to the download page or something. I dont know this product and I´ve never used it. It seems like you´re haveing problems with basic java stuff, really just pretty much off topic for this list. hope it helps, regards, [EMAIL PROTECTED] -Original Message- From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]] Sent: 22. janúar 2002 16:25 To: Tomcat Users List Subject: running jar files I have some jar files, swingall.jar and lansa.jar How do I do the equivalent of: java -cp ./:./lansa.jar:./swingall.jar com.lansa.web.admin.WebAbmin which basically run manually the WebAdmin applet. I know it's an applet but there is a servlet equivalent. Sorry if this is too much of a basic question but after 3 days of trying just about every combination under the sun, am still getting nowhere, all I ever get is java.lang.NoClassDefFoundError... com/lansa/web/servlet Dom -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]