The maximum classpath length that Java can handle depends on many factors, including platform and JDK implementation. As far as I can tell, the limit is usually undocumented, but can be as low as a few thousand characters. Additionally, elements beyond Java’s control, such as the shell, can also affect how many characters can safely be used in a classpath.
In practice, this means that the classpath you request can be truncated before the JRE processes it… and you might not find out until you get a very confusing ClassNotFoundException.
Launching with a ludicrously long classpath? Java might miss some of it!
If circumstances dictate an uncomfortably long classpath at launch time, there are a few ways to condense it without resorting to single-character symbolic links. Read more…
I couldn’t find a simple example that explicitly shows how to connect to DB2 from sMash, so I put one together. You can grab the resulting example sMash application using the zero command line like this:
1 2
zero modulegroup addurl http://soal.org/sMash/repo/
zero create db2App from soal:db2App
(On a side note, notice how I’m hosting a zero repository containing my app right here on soal.org! Read more…
DPC ended last weekend, so I’m a little late with my write-up. However, the event was sufficiently memorable to still be fresh in my mind.
Like the vast majority of attendees, I was massively impressed by the superb selection of talks and the attention to detail inherent in every aspect of the organisation of DPC ‘09. Big thanks to the Ibuildings folks for this. One example of the love they poured into the event is the conference introduction video, which was played on a large screen before the opening keynote. It included customized avatars for every speaker, including me… even though I was a very late addition to the speaker list!
Jonathan Lawrence and I will be presenting an introduction to WebSphere sMash at the Dutch PHP Conference on Friday. Here’s a quick overview of what we’ll be talking about:
Don’t hesitate to come chat with us between the talks, particularly if you’re curious about running PHP on the Java Virtual Machine or integrating PHP and Java code.
Last night I presented the Standard PHP Library at the PHP London User Group. The aim was to give an overview of the extension and to entice people into coming to TestFest, of which the London and Manchester incarnations will be focussing on SPL.
Thanks to all who attended! Here are the slides for those who couldn’t make it:
Today Ant and I did a quick demo of sMash at SAP Inside Track London 2009, an unconference organized by Darren Hague and Nigel James. The idea was to show how sMash could be used to rapidly script up situational web apps (aka “satellite apps”) that integrate with SAP and provide extra, peripheral functionality.
After the talk, Dennis Howlett fired a few questions at me on camera:
What a brilliant day and an great way to learn about SAP & meet SAP mentors!
I now have a few sMash apps sitting on my VPS, running on different ports. I wanted to be able to access each of them on their own subdomain – like this :
It took less than an hour to get this blog up and running on WebSphere sMash on a Virtual Private Server, starting from nothing at all. Here’s how you can get started too: Read more…