A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Executing a class in a Jar
Srihari Injeti
Ranch Hand
Joined: Jan 05, 2001
Posts: 31
posted
Nov 12, 2002 10:29:00
0
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
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
Nov 12, 2002 10:39:00
0
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
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
Nov 12, 2002 13:24:00
0
You may want to take a look at
this introduction to creating an executable JAR file
.
[
How To Ask Good Questions
] [
JavaRanch FAQ Wiki
] [
JavaRanch Radio
]
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Executing a class in a Jar
Similar Threads
ClassNotFoundException
org.hibernate.HibernateException: No TransactionManagerLookup specified
java.sql.SQLException: No suitable driver
how can we make a jar file
problem in developing jasper report in BEA workspace studio version 1.1 with weblogic server 10.0
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter