Hi Sunburned, Your bat file looks like the standard one shipped with OpenJump. We know that one works, right? You must have broken the build process itself. This is very easy to do. Ant is a wonderful tool, but very unforgiving. One can easily spend days debugging the build script, but perhaps I'm preaching to the choir, and you already have. :-)
I had a thought about the Manifest hack that I created. There may be problems with it in OpenJump since I'm still building a single Jump.jar in SkyJUMP instead of the core and api jars. Does anyone know why Vividsolutions changed to building two jars? I couldn't see any advantage, and so I didn't change. I never change working code unless there is a clear advantage, and that goes for build scripts too. regards, Larry On 2/21/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: > I'm having a very difficult time getting the JAR files I've built from > OpenJUMP's CVS to execute. At first I tried to modify Larry Becker's > manifest file so that you could execute the program by double-clicking on > the JAR file. When I couldn't get that to work I let Ant create the default > manifest file and I tried to launch the program with a BAT file. > > I can't get either method to work. Java complains that it can't find the > main class. I've extracted my JAR file and verified that the main class, > JUMPWorkbench, exists and is in the appropriate location within the JAR. > I've double checked the classpath that I create in my BAT file. I can't for > the life of me figure out why this isn't working. (I must be missing > something obvious.) > > I haven't heard about any problems with the nightly build, so I'm guessing > there is nothing wrong with the code in the CVS repository. It's got to be > something that I'm doing wrong. > > I have pasted the contents of the BAT file below. I was hoping one of you > guys might be able to take a look and see if you can identify the problem > that I am having. > > Thanks a lot for the help. > > The Sunburned Surveyor > > BEGIN BAT FILE > > > > set LIB=../lib > > set > CLASSPATH=%LIB%/bsh-2.0b4.jar;%LIB%/Buoy.jar;%LIB%/Jama-1.0.1.jar;%LIB%/jdom.jar;%LIB%/jts-1.7.jar;%LIB%/openjump-ex-api-01.02.00.jar;%LIB%/openjump-ex-workbench-01.02.00.jar;%LIB%/xercesImpl.jar;%LIB%/xml-apis.jar > ;%LIB%/log4j-1.2.8.jar;%LIB%/batik/batik-awt-util.jar;%LIB%/batik/batik-dom.jar;%LIB%/batik/batik-svggen.jar;%LIB%/batik/batik-util.jar;%LIB%/batik/batik-xml.jar > > > REM Add extension directory to path, so extensions can put DLL's there [Jon > Aquino 2005-03-18] > > set PATH=%PATH%;%LIB%/ext > start javaw -Dlog4j.configuration=file:./log4j.xml -Xms256M > -Xmx256M -cp %CLASSPATH% > com.vividsolutions.jump.workbench.JUMPWorkbench -properties > workbench-properties.xml -plug-in-directory %LIB%/ext > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > -- http://amusingprogrammer.blogspot.com/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel