Larry,

I'm starting to suspect that it isn't my build file. I used the JAR tool
from the command line to build the a single JAR file from for OpenJUMP with
and without a provided manifest file. Java still complains about not finding
a main class if I execute the JAR created with the manifest, and if I run
the batch file on the JAR file created without the manfiest.

I'm going to download the nightly build now and see if it will work. I did
check the JUMPWorkbench class, and it still has a main method. :]

Thanks for your help.

The Sunburned Surveyor

P.S. - I find it odd that Vivid would move from a single JAR, to 2 jars, and
then back to a single JAR. Perhaps I am looking at the worng version of
JUMP. Maybe David or Ed will get back to us on this.



On 2/21/07, Larry Becker <[EMAIL PROTECTED]> wrote:

Sunburned,

  I have JUMP from November of last year and it had two jars, whereas
the version from 2004 that I still have has only one jar.

What to do next depends on what mods you made to the build file.  If
you started from scratch, there isn't much you can do.  If you made
changes to one that was working, diff the files and back out changes
until it starts working again.

regards,
Larry

On 2/21/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote:
> Larry,
>
> I checked out the latest version of JUMP, and I think it has only a
single
> JAR for the program. It was the older versions of JUMP that had 2 JAR
files,
> which is why OpenJUMP has 2.
>
> I think Vivid Solutions made the switch from 2 JARs to 1. I had asked
about
> the purpose for the 2 JARs before, and I think it had something to do
with
> the GUI code being pacakged in the "workbench" JAR, while to other code
was
> packaged in the "api" JAR.
>
> I could be wrong though.
>
> It sounds like my batch file is not the problem, but that my JAR files
are.
> I'm not sure what else to check, except for the fact that the main class
is
> in the right location in the JAR. Do you have any other suggestions?
>
> The Sunburned Surveyor
>
>
> On 2/21/07, Larry Becker <[EMAIL PROTECTED]> wrote:
> >
> > 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
> >
>
>
>
-------------------------------------------------------------------------
> 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

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