File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Executing a class in a Jar
Joined: Jan 05, 2001
Nov 12, 2002 10:29:00
I would like to execute a compiled class which is part of a jar from command line. The class has a main method.
Srihari Injeti<BR>SCJP2 MCP CIW
Joined: Sep 29, 2000
Nov 12, 2002 10:39:00
Create a manifest and get it into the jar also. The manifest is what gives the JVM a clue as to which class to look in to find the main method.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Dec 10, 2001
Nov 12, 2002 13:24:00
You may want to take a look at
this introduction to creating an executable JAR file
How To Ask Good Questions
JavaRanch FAQ Wiki
I agree. Here's the link:
subject: Executing a class in a Jar
problem in developing jasper report in BEA workspace studio version 1.1 with weblogic server 10.0
java.sql.SQLException: No suitable driver
org.hibernate.HibernateException: No TransactionManagerLookup specified
how can we make a jar file
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015