[NTLUG:Discuss] camelseye
Stephen Davidson
gorky at freenet.carleton.ca
Mon Sep 17 13:38:17 CDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Fred.
Thanks for sending me everything. You included the 'critical' piece, in
this case, the command line (which is not something I would have thought
to ask for)
About those java command line options;
- -cp [delimited file list] - the list of JAR (Java Archive Resource)
files containing the classes to execute. Similar in concept to DLL
files on MS or .so on *n*x. On *n*x platforms, the files are separated
by a ':'.
- -jar <filename> - the JAR file to execute. When used, a class name is
not needed, as the class with the 'Main Method' is specified in the Jar
file descriptor. Anything after the Jar file in this parameter is
apparently sent to the Command shell as a command to execute.
- - net.sf.camelseye.CamelsEye - The Fully Qualified Class with the Main
method to execute. When the class name in question is supplied, the
- -jar parameter is not needed. I don't believe that Java's behaviour is
defined when both parameters are supplied.
NOTE: Jar files themselves are not executables from a command shell on
many OSes, including Linux on most platforms. (Yes, they are executable
from some OSes, especially the Java Based ones, but others as well).
You might want to rearrange your command line a little bit, specifically
by dropping the '-jar' parameter;
java -cp
./lib/antlr-2.7.5.jar;./lib/commons-net-1.4.1.jar;./lib/forms-1.0.7.jar;./lib/ristretto-1.0-all.jar;./lib/CamelsEye.jar
net.sf.camelseye.CamelsEye %1 %2 %3 %4 %5 %6 %7 %8 %9
I suspect this might work better.
Regards,
Steve
PS: I am posting the solution to the list for future reference.
Fred wrote:
> On Mon, 17 Sep 2007 you wrote:
>
>> Hi Fred.
>>
>> What kind of Permission Errors? Btw, according to the documentation,
>> Camel does try to set up a Server Socket on Port 110 by default -- is
>> that not a privileged port?
>>
>> If you post the Error Message and/or the log (or send me offline), I
>> might be able to point you towards the cause of your difficulty, and
>> possibly a solution.
>>
>> - -Steve
>>
>
> OK, here 'tis:
>
>>From the camelseye directory:
>
> #java -cp -jar ./lib/antlr-2.7.5.jar;./lib/commons-net-1.4.1.jar;./lib/forms-1.0.7.jar;./lib/ristretto-1.0-all.jar;./lib/CamelsEye.jar net.sf.camelseye.CamelsEye %1 %2 %3 %4 %5 %6 %7 %8 %9
>
> Exception in thread "main" java.lang.NoClassDefFoundError: //lib/antlr-2/7/5/jar
> -bash: ./lib/commons-net-1.4.1.jar: Permission denied
> -bash: ./lib/forms-1.0.7.jar: Permission denied
> -bash: ./lib/ristretto-1.0-all.jar: Permission denied
> -bash: ./lib/CamelsEye.jar: Permission denied
>
>
> #ls -l camelseye
> total 136
> -rw-r--r-- 1 stevenssys users 520 2006-07-08 15:14 CamelsEye.bat
> -rw-r--r-- 1 stevenssys users 513 2006-07-08 15:14 CamelsEye-Console.bat
> -rw-r--r-- 1 stevenssys users 3520 2006-05-18 17:11 example.rls
> -rw-r--r-- 1 stevenssys users 7264 2006-10-26 20:40 history.txt
> drwxr-xr-x 2 stevenssys users 4096 2006-10-26 20:55 lib
> -rw-r--r-- 1 stevenssys users 1195 2005-12-23 02:56 LICENSE_ANTLR.txt
> -rw-r--r-- 1 stevenssys users 11358 2005-12-03 11:05 LICENSE_Apache.txt
> -rw-r--r-- 1 stevenssys users 1690 2004-10-10 14:11 LICENSE_Forms.txt
> -rw-r--r-- 1 stevenssys users 1674 2005-09-26 22:42 LICENSE_Ristretto.txt
> -rw-r--r-- 1 stevenssys users 1111 2004-10-31 13:25 LICENSE_Trayicon.txt
> -rw-r--r-- 1 stevenssys users 18011 2006-01-31 00:24 LICENSE.txt
> drwxr-xr-x 3 stevenssys users 4096 2006-10-26 20:52 Manual
> drwxr-xr-x 2 stevenssys users 4096 2006-10-26 20:52 Sample Rule Sets
> -rw-r--r-- 1 stevenssys users 51200 2006-01-15 14:20 TrayIcon12.dll
>
> #ls -l lib
> total 1616
> -rw-r--r-- 1 stevenssys users 435563 2006-01-15 14:20 antlr-2.7.5.jar
> -rw-r--r-- 1 stevenssys users 2238 2006-07-08 19:28 CamelsEye.ico
> -rw-r--r-- 1 stevenssys users 690676 2006-10-26 20:55 CamelsEye.jar
> -rw-r--r-- 1 stevenssys users 180792 2005-12-03 10:05 commons-net-1.4.1.jar
> -rw-r--r-- 1 stevenssys users 86828 2006-05-03 22:48 forms-1.0.7.jar
> -rw-r--r-- 1 stevenssys users 204828 2006-03-30 15:42 ristretto-1.0-all.jar
> -rw-r--r-- 1 stevenssys users 16323 2006-07-10 21:50 TrayIcon.zip
>
> #id
> uid=1001(stevenssys) gid=100(users) groups=16(dialout),33(video),100(users),1000(qtss)
>
>
>
>
>
> ____________________________________________________________________________________
> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFG7smYPtiPEDq7o8YRAgyfAKCEpmjyn0Iw36MVz72v7etq/i/TiACgiG75
kNpa6SAZeLnfMPiqd77bCBE=
=KOO4
-----END PGP SIGNATURE-----
More information about the Discuss
mailing list