Re: running a .jar file with jre ??

From: Jim Cochrane (jtc_at_shell.dimensional.com)
Date: 02/15/04


Date: 14 Feb 2004 21:55:33 -0700

In article <slrnc2to0s.c8a.mvore@snowmass.mystic.ct>, Mike Vore wrote:
> Somehow the magic of how to run a Java program - a .jar archive with
> jre of java seems to have excaped me. I've tried adding -cp and
> -classpath as the man pages suggest, but I'm still missing something.
> I keep getting "class not found <class name>" errors.
>
> Any help will be appreciated ( The class does run under Wondez2000 )
> I'm trying to run this under Solaris-7.
>

Give people some more details about what class is not found, what the main
class is, what jar file or files you're using, how you've attempted to
start the java program (precisely what command line you used), precisely
what errors you get when you do this, etc., and people may be able to help
you.

-- 
Jim Cochrane; jtc@dimensional.com
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]


Relevant Pages

  • Re: How to update a jar file for one source file change?
    ... I'm new to java, so, I may get terminilogy wrong, bear with me. ... we've got a BIG jar file that includes thousands of classes. ... updated java source code was not being used. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... Go to Windows Explorer and navigate to any .jar file (perhaps in ... See it that will reset the file association for the jar files. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Running java programs from class files
    ... java -classpath /xyz/abc MyPackage.MyClass ... I think the most confusing part is the root business. ... I can get it to work if I put the jar file in the Class-Path: line in the manifest and put the jar file in the same directory as the program jar file but not from the command line. ...
    (comp.lang.java.programmer)
  • Re: Jar executable files open in Winzip or save as zip not jar
    ... The file Associations in Windows are fine. ... Windows, it runs with the java runtime application, and the application runs ... See it that will reset the file association for the jar files. ... it as a jar file. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: V5R3 System Printed Java Message
    ... I'm not a Java expert either, but it looks like Java can't find the ... So either your CLASSPATH variable is not ... the .jar file with Properties.class in it is missing. ... system properties: 'null' ...
    (comp.sys.ibm.as400.misc)