Re: Running Jini application Error "Failed to load Main-Class "
Dan Creswell <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
nishshanka wrote: > I'm running the sample code in tutorial in the javaworld web site. Link > for this file is shown below > http://www.javaworld.com/javaworld/jw-06-2002/jw-0628-jini.html?page=5 > > there are 11 step to run the sample program. step 9 I got this error > message. Can anyone please help me to resolve this problem. > > my %JINI_HOME% = "C:\java\jini2_1\" > my IP is 192.248.8.245 > and I have succesfully done all other 8 steps. > > and when i execute this line it will giving following error > > > C:\Documents and Settings\Agent>java > -Djava.security.policy=%JINI_HOME%\example\books\policy.all -jar > %JINI_HOME%\lib\reggie.jar http://192.248.8.245:8081/reggi > e-dl.jar %JINI_HOME%\example\books\policy.all \tmp\reggie_log public& > > > > Failed to load Main-Class manifest attribute from > C:\java\jini2_1\lib\reggie.jar > Yep so the above is all Jini 1.x related and I would imagine you have a 2.x release installed which is causing you the problems. The above is designed to start up Reggie - up to date information on that can be found in the package javadoc for com.sun.jini.reggie. Alternatively, if you used the Jini installer you could get Reggie up with launchall or you could grab a copy of the Blitz installer (http://www.dancres.org/blitz) and that'll build you some scripts including some to startup reggie etc. There are a myriad of other workarounds which escape my brain right now. Likely as not you'll hit more trouble with other command-lines potentially around which .jars are on the classpath etc so watch out for those too. It might just be easier to hit the Jan Newmarch tutorial instead as that's up-to-date. Hope that helps, Dan. -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]