Ive downloaded and updated the cvs version of gallery remote using cygwin. Ive perused all the files Ive downloaded, however what do I do now to builld/install the cvs version. I currently have the 1.0 version downloaded as .exe with the self installer up and running using a win2k sp3 platform. Do I in the installed version directory copy over the files with the cvs version????
Thanks for your help.
Posts: 1479
OK, so now you have the CVS version, you can run Gallery Remote like a developer would: use 'ant' to build (this assumes you have Ant setup), 'ant run' to run, 'ant zip' to create a zip patch file that you can apply to the installed .exe version.
Posts: 26
Hey not to be rude, however could either tell me or provide a link of what I am supposed to do once I have Ant installed. I downloaded and installed all the jre, sdk, jre documentation, and ant makes and installed them. Now what??
Posts: 93
look in {ant folder}/docs/manual and opening index.html and look under the section called "installing ant" it has here:
I did the last two straight in the ant.bat file by adding the lines:
after
@echo off
of course replace those paths with the ones on your computer,
to add the bin directory to the path, either do that on the command line before calling ant by entering "set PATH=%PATH%;C:\path_to_ant\bin", or by editing the path variable in windows(how depends on your windows version)
then open a command window in the directory in which you downloaded the gallery_remote cvs files into and type the ant command you wish to run, ie "ant run" "ant zip" "ant jar" etc etc
Posts: 1479
Wow, thanks for the step-by step instructions, joel558!
Posts: 26
This is beginning to seem to much trouble than what it is worth.
I set the ant_home, java_home, and added the ant\bin directory to the path. Because Im running win2k, I even set these variable by hand under the system environment variables, because I noticed when I closed the command window, these variables set by use of the ant.bat file disappeared. Anyway, when running the ant.bat file, the script is choking when it reaches the following:
java.exe -classpath "A long classpath defined here!!" "-Dant=c:\ant: org.apache.tools.ant.Main
Buildfile: build.xml does not exist!
Build failed
I see the above statement is being called under the :runAntWithJikes section of the ant.bat file.
What exactly is going on, or does it even matter??
Posts: 1479
You have to run the ant.bat script from within the Gallery Remote directory (which you got from CVS); this is the directory that contains build.xml.
Please remember that running Gallery Remote from CVS is primarily useful for developers (who also usually already know how to use ant).
If you want to use beta drops, you can download the "bleeding Edge" builds from the website.
Posts: 26
Alright, I know Im like a bad toothache that wont go away, however, I am making some progress, thanks to your help.
Using the suggestion from last post, I am now receiving a compiling error that the jsx package does not exist. I did some research and see it is just basically a class that extends basic i/o for objects. Im not sure however where this library is located. I looked in the lib directory, however as expected is probably been precompiled in another lib module. I currently using jsk1.4.1_03.
Thanks
Posts: 1479
If you take a look in the lib/ directory (in the GR main directory), you'll probably notice that the size of the jar is 0.
This should now be fixed, so if you just cvs update that directory, you'll get the correct library.
Good luck, and thanks for sticking through this...
Posts: 26
Well you were definitely right about the file size. It jumped from 1 to 200kb. After updating the directory, I had no problems compiling the code. It seemed to run ok, without any problems. One last question -- it seems to run fairly well independently. If I dont apply it as a patch, what functionality would I lose. Thank you for the help
Posts: 1479
You can run GR independantly, using 'ant run', with full functionality. This is how I run most of the time.
Patching a version of Gallery Remote that you installed with InstallAnywhere has the benefit that it is launched and looks like a native Windows application.
Posts: 26
Just an academic exercise -- I make the .zip file using ant zip resulting in gallery_remote.zip
How do I apply the patch to the installed version 1.0.
I have the unxutil patch, however when I read the help description it seemed to describe scenarios I didnt have. Obviously Im missing a step.
Thanks :o
Posts: 93
I believe you just need to extract the files in the zip file into the directory that version 1.0 is installed in.
It will overwrite the old galleryremote.jar file and all the other updated files.
then you also need to edit the file "gallery remote.lax" which is in the directory that 1.0 is in. change line 15 to:
lax.class.path=GalleryRemote.jar;lax.jar;lib\jsx1.0.7.4.jar
you only need to do that once.
now you should be able run gallery remote using the "gallery remote.exe" file
Posts: 26
Thanks to everyone who helped me with this topic. It worked great in the end. Hopefully this very basic primer will also help other novices like me! 8)