The Eclipse website explains it pretty clearly and independently of what IDE you use. I created a webstart for an app that uses rxtx. The RXTXcomm.jar file is the same for all platforms but the libraries (.dll, .so, .jnilib) are different and must each be encapsulated in a jar file.
A few things to check if your app doesn’t work.
- Check that the native library jars contain the libraries at their root and not in a subfolder.
- Respect the case for the
os and arch fields.
- When you rebuild new jars don’t forget to sign and upload them to your webserver again.
- Check that you are using the correct version of Java. If your app only works with a certain version you can specify it in the jnlp file.
On GNU/Linux I can run javaws http://my.domain/codebase/mywebstart.jnlp to debug the application but on Windows the command line javaws doesn’t print any output to the console. I don’t know how to easily view System.out.println output from webstart applications on Windows.
Here is a Matlab implementation of the Douglas-Peucker polyline simplification algorithm. It takes a polyline and removes as many vertices as possible without changing the shape too much. This code is ported from the C++ version at SoftSurfer. I’ve included some sample data to test the function.
EDIT: I just found a Python implementation which is iterative rather than recursive, unlike the Matlab one. It’s based on a freely-licensed C++ implementation.
All places within a few hours cycling.
- Hest Bank, Morecambe promenade, Heysham. Easy walk or cycle from Lancaster.
- Sunderland Point. A little further South than Heysham. Cut off at high tide. Walk around the point and see Sambo’s Grave. View of Glasson Dock across the estuary.
- Morecambe Bay. Take a cross bay walk from Hest Bank to Grange over Sands. Plenty of these organised during Summer for charity. Don’t try to do it on your own.
- Warton Crag. Full of bluebells in spring. Nice view of the Bay.
- Arnside Knott. Great view of the Kent viaduct and the Bay.
- Ingleborough cave at Clapham. Gaping Gill and plenty of pot holes. Climb Ingleborough, rather windy. Friendly bunkhouse/café next to the National Trust car park.
- Capernwray Dive Centre. Lots of people in diving gear. Worth a quick look even if you don’t dive.
- Dent. Picturesque village out in the Yorkshire Dales.
- Barbondale. On the way to Dent, peaceful valley. Good for picnics.
- Elswick. Nice ice cream at Bond’s.
- Cockerham. Walling’s farm shop and ice cream parlour.
- The Lake District. Don’t stay around Windermere, explore some of the other lakes and tarns.
Sometimes Matlab exports figures as PDFs with the graph overflowing from the page. This can be fixed by using the orient landscape or orient portrait commands. Exporting to PDF from the command line can be done with print('-f1', '-dpdf', 'my-plot.pdf');.