Article View: borland.public.jbuilder.java.language
Article #19959Re: Deployment of .JAR = Class not found
From: Andrew Bennett
Date: Tue, 18 Nov 1997 00:00
Date: Tue, 18 Nov 1997 00:00
40 lines
1626 bytes
1626 bytes
On Tue, 18 Nov 1997 09:19:31 -0800, Frank Cohen <fcohen@inclusion.net> wrote: >Is there some trick to running .jar files on other computers? > >I installed JBuilder on 2 of my systems. I built a Java application on >the first system, used the deployment wizard to create a .jar file. >Copied that .jar file to second computer. From an MSDOS prompt I typed: > >c:\jbuilder\java\bin\jre c:\wms.jar > >JRE reports Class not found: wms.jar" > >I found no classpath setting in the autoexec.bat file of either system, >so I added this line to both system's autoexec.bat files: > >SET CLASSPATH=%CLASSPATH%;C:\JBUILDER\JAVA\BIN\; > >Any ideas on what I'm doing wrong? Yes. Your parameters to jre.exe are incorrect. Try: jre -cp wms.jar package.whatever.class In other words, put wms.jar on the jre's classpath command-line parameter, and tell it what class to start. Hope that helps. Andrew -- Andrew Bennett -> abennett@borland.com JBuilder info -> http://www.borland.com/jbuilder/ JBuilder newsgroups info -> http://www.borland.com/newsgroups/ **** Please don't post a reply AND send email. Do one. I'll see it. ****
Technical Details
Message-ID:
<347204dc.69205131@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3471CE23.214B@inclusion.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5763acb3f5c73e5 X-Google-Attributes: gidf74b3,public From: abennett@borland.com (Andrew Bennett) Subject: Re: Deployment of .JAR = Class not found Date: 1997/11/18 Message-ID: <347204dc.69205131@forums.borland.com> X-Deja-AN: 290555977 References: <3471CE23.214B@inclusion.net> Organization: None Newsgroups: borland.public.jbuilder.java.language