Dear Sunburned

When I first stated working with openJump I used launched the exe file -
this was OK, but I could not get the supplied Bat file running - main
class not found.  After some changes I did get it working (see below)
by removing references to the VERSION and PATH environment variables and
including the specific values into the Bat file- don't ask me to explain
why.

Geoff
===========================================
rem GOOD Batch
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%/jump-workbench-1.0.1.jar;%LIB%/jump-api-1.0.1.jar;%LIB%/xercesImpl.jar;%LIB%/xml-apis.jar;%LIB%/log4j-1.2.8.jar;%LIB%/batik-all.jar;%LIB%/xml-apis-ext.jar;%LIB%/pdf-transcoder.jar;%LIB%/js.jar
 




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

pause


==========================================

Sunburned Surveyor 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
>   

-- 
Geoffrey G Roy
Cadplan
129 Gloster Street, Subiaco WA 6008
Tel: (08) 9381 4870  Fax: (08) 9382 4459
Email: [EMAIL PROTECTED]
http://www.cadplan.com.au



-------------------------------------------------------------------------
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

Reply via email to