cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse jar file - errors

Newbie

Eclipse jar file - errors

Hi Everybody,



I'm using Eclipse as an IDE to program Pro/Engineer jlink Api.

When I click on a jar file, created using eclipse, I get this error
"Could not find the main class. Program will exit"

Any idea why I get this? This is only for things created using Eclipse.
My existing jar using jbuilder works fine.

Thanks,

Arvin



2 REPLIES 2
Highlighted

Eclipse jar file - errors

Arvin,
Just a shot in the dark, but J-Link does not support compressed jar
files.
Check your Eclipse preferences.

Rod Blesener
Highlighted

RE: Eclipse jar file - errors

Hi Arvin,

You'll need to create a manifest file within the jar file which specifies which class file bundled in the jar should be the main class. (since there could be multiple main()'s in the jar). If you're using the Eclipse Export wizard there's an option to create one automatically with a pull-down list of possible classes for you to select. I'm assuming this is for a asynchronous J-Link application since a synchronous one wouldn't even need a main class.

Gary Hoffman
Solar Turbines Incorporated
Telephone: (858) 694-6961
E-mail: -

In Reply to:

Hi Everybody,



I'm using Eclipse as an IDE to program Pro/Engineer jlink Api.

When I click on a jar file, created using eclipse, I get this error
"Could not find the main class. Program will exit"

Any idea why I get this? This is only for things created using Eclipse.
My existing jar using jbuilder works fine.

Thanks,

Arvin



Announcements
Message from Brian Thompson (PTC General Manager and DVP) regarding Creo Business Continuity plans.