On 2012-10-03 23:27+0100 Andrew Ross wrote:
> This [revision 12238] all still works fine for me with openjdk on Ubuntu.
>
> It still leaves the issues with running the examples using openjdk
> with Debian testing (but not with Ubuntu). Do the examples run fine
> with gcj?
Yes. test_noninteractive gives
java
Missing examples :
Differing postscript output :
Missing stdout :
Differing stdout :
I guess if openjdk works find on Ubuntu but not on Debian, and other
Debian java tool chains such as gcj also work fine at run time, we can
write off the openjdk on Debian run-time errors you observe as due to
some specific Debian packaging error for openjdk.
Of course, for gcj there is the long-standing issue of lots of build
warnings, e.g., (just to pick the the ones associated with x00.java)
/home/software/plplot_svn/HEAD/plplot_cmake_qt/examples/java/x00.java:55:
warning: The static field plplotjavacConstants.PL_PARSE_FULL should be accessed
directly
pls.parseopts( args, PLStream.PL_PARSE_FULL |
PLStream.PL_PARSE_NOPROGRAM );
^^^^^^^^^^^^^
/home/software/plplot_svn/HEAD/plplot_cmake_qt/examples/java/x00.java:55:
warning: The static field plplotjavacConstants.PL_PARSE_NOPROGRAM should be
accessed directly
pls.parseopts( args, PLStream.PL_PARSE_FULL |
PLStream.PL_PARSE_NOPROGRAM );
^^^^^^^^^^^^^^^^^^
2 problems (2 warnings)
After some experimentation I finally discovered the warnings are completely
squelched by
using this call to parseopts instead.
pls.parseopts( args, plplotjavacConstants.PL_PARSE_FULL |
plplotjavacConstants.PL_PARSE_NOPROGRAM );
but before we turn all our java examples into this form, is there a
way to shorten the name of the plplotjavacConstants names down within
each example to say pls_con?
I hope this result puts you on the track of completely solving these
warning messages while also using a short alias of the name of the
plplotjavacConstants namespace.
If you do find an aliased solution, please commit it to x00.java, and
I can do the rest of the editing of the java examples myself to help
take some of the PLplot load off you.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel