From: Ali M. <so...@sy...> - 2004-05-21 11:01:53
|
Hi Alan, I think I did manage to generate the dll. Now I am trying to run the example programs. I am getting following when I run. C:\>java plplot/examples/x01 Plotting Options: < 1> win3 PLplot Win32 Window < 2> plmeta PLplot Native Meta-File < 3> ps PostScript File (monochrome) < 4> psc PostScript File (color) < 5> null Null device Enter device number or keyword: 1 *** PLPLOT ERROR *** Unable to open or allocate memory for font file Program aborted Please help Thank you -Ali ----- Original Message ----- From: "Alan W. Irwin" <ir...@be...> To: "Ali Muhammad" <so...@sy...> Sent: Tuesday, May 18, 2004 8:49 PM Subject: Re: [Plplot-general] newbie question > On 2004-05-18 18:23-0400 Ali Muhammad wrote: > > > Dear Alan, > > > > Thank you for the advice. It was very useful. It helped me understand the > > build process. I did manage to generate the dll and also managed to compile > > the example java files. Right now I am struggling with running these > > examples. > > > > C:\>java plplot.examples.x01 > > Native code library failed to load. See the chapter on Dynamic Linking > > Problems > > in the SWIG Java documentation for help. > > java.lang.UnsatisfiedLinkError: > > C:\plplot\plplot-5.3.0\sys\win32\msdev\plpdll: A > > ccess is denied > > > > Hi Ali: > > Sounds like you have made a lot of progress, and you are close to success. > > If that were Linux (which of course it isn't), I would say that error > message means the file name doesn't exist (wrong spelling or directory > location in config.java?), or it has the wrong permissions, or it was built > from the wrong source (plpdll should be built from plplotjavac_wrap.c), or > it wasn't built quite right for a native dll that can be dynamically loaded > by java. If the first three simple explanations don't apply, it is probably > time to hit the java native dll tutorials for Windows to find out exactly > what compile and link options you need for a dll loaded by the System.load > command. (That command is in PLStreamc.java, and you will note that it uses > libname, the variable you define in config.java.) > > Google found me some Linux java tutorials that mentioned System.load > so I assume there are also similar tutorials for Windows. > > Good luck getting this final step to work and documenting the steps you took. > > Furthermore, once you get java to work on Windows, I hope you can also give > me some advice on how to make a user-friendly interface. See my comments > about this in bindings/java/README.javaAPI. The truth is my java experience > is minimal and consists of rather mechanical extension of the java examples > based on what was done before. I inherited the hand-crafted interface from > somebody else, but I knew enough about swig so I could generalize that > hand-crafted approach quite easily with swig. So I am proud we have a Java > interface and want to maintain it, but that interface and making sure all > the examples work under Linux is the totality of my Java experience. Thus, > I am definitely open to advice from developers more expert than me in the > Java language. > > Alan > __________________________ > Alan W. Irwin > email: ir...@be... > phone: 250-727-2902 > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the PLplot scientific plotting software > package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the > Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ |