Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiversion JAR 1

Status
Not open for further replies.

acent

Technical User
Feb 17, 2006
247
US
Greetings,

I'm wrote a program in version 1.5 then packaged it into a JAR. All is well. The program works great!

That is, until I tried to take the program to one of my user's computer who has JRE1.4 installed. On his computer the same program produces a "Could not find main class. Program will exit." error.

I'm assuming this is because of the difference in the java versions. If so, how do I create a backwards compatible JAR? The program is not all that complex, it simply reads a couple files, and copies a file if necessary, so I don't think I'm using anything new from 1.5.

Any help is appreciated.

"God is a comedian playing to an audience too afraid to laugh."
-- Francois Marie Arouet (Voltaire)
 
Thanks. Worked like a charm!

"God is a comedian playing to an audience too afraid to laugh."
-- Francois Marie Arouet (Voltaire)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top