Heh, answering myself.
I know that command line option is not so well debugged and I am not sure if this discussion board is a right place where to write this post, the changes I made is completely non-standart, but it can helps someone, maybe.
Anyway, now after some dirty steps I am finally able to run any of sketch I made before including libraries support from command line.
basic how to follows:
the line which caused the problem before is pointing to something called "library hashtables".. as mentioned before, it seems that there is some difference between running PDE and shell script processing, simply these hashtables are not created on startup as it is in GUI-ed version;
so dirty change no.1 in Sketch.java @ line 1415 I have changed:
Code:(file) importToLibraryTable(entry);
to
Code: new File("pathToLibraries")
..I am not very sure what an effect it brings to processing itself; but anyway, compiler can now continue to work with this cosmetic modification.
dirty change no.2
after recompiling I have made very awful hack to executable processing script, to point it right way to my personnel collection of libraries
in processing script I have added the line were the processing is looking for java classpaths:
Code:
libraries/*/library/*.jar \
this mod is causing that every time you run any sketch it will browse up all of your library folder, even if you dont load any of them (so it is extremely bad solution!)
optionaly on linux you can create a symlink to your libraries folder somewhere
and the last and best of all, award winning ugly hack no.3
now, when you try to fire up for instance opengl-based sketch it will throws that processing cant locate gluegen-rt or something like that, this means processing cant locate other library componets as a required dll-s and jnlib-s and so on, so my solution was to simply copy all of them needed to a processing root folder (this is very messy!)
and that is it, now all of the sketches are running smoothly without any problems
/////////////////////////////////////
this is tested on linux only and as you can see it is not really elegant way, but for a script punkers as I think I am is good enough.
>> if anyone has better solution please let me know, I am trying to track down where the problem begins and I believe that solution can be very trivial.
processing beta is dead! long life the processing!
best,
kof