Executable JAR File but no Manifest

I have an executable JAR file that i did not create.  its for a demo of a trading application.

if i try to run it i get :  Failed to Load Main-Class Manifest attibute from xyz.jar

let me start by saying im not a developer but know just enough to be dangerous.

if i view the contents of the jar file with 'jar tf' i can see all the packages/classes and reference to META-INF\Manifest.mf

there is no presence of a manifest file in the directory structure of the provided CD.

is the anyway for me to figure out what the main-class value should be and 'hack' my own manifest or do i have to go back to the developer/provider?
kdegiglioAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CEHJCommented:
It may not be an executable one

try

java -classpath xyz.jar LikelyLookingClassName
0
 
kdegiglioAuthor Commented:
xp seems to think it is exeutable because the TYPE shows as "EXECUTABLE JAR FILE"

could that be misleading, or is it probably correct?

i will try the above with a few different classnames.  
is there any way to interrogate the jar for the presence of a main?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
objectsCommented:
grab jstart at http://www.objects.com.au/products/jstart
Use it to open your jar and it will tell you what main's are available.

> could that be misleading, or is it probably correct?

yes, thats just cause its a .jar
0
 
CEHJCommented:
>>could that be misleading

Yes. It always says that
0
 
CEHJCommented:
kdegiglio, can you tell us how you used that comment as the answer?
0
 
objectsCommented:
did jstart help u find any main()'s?
0
 
kdegiglioAuthor Commented:
the first link in the accepted answer allowed me to find the main class by greping
0
 
objectsCommented:
did u try jstart? am just looking for some feedback.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.