in reply to Re^4: inline::java error
in thread inline::java error
I changed the import to "import java.io.*;"
and it made the pdf file!
However, it's empty..But, geez, I feel so close. Any thoughts on why it's not picking up the other 2 variables? If that is the problem..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: inline::java error
by tobyink (Canon) on Jul 14, 2012 at 21:13 UTC | |
I imagine the other two filenames are getting across just fine. You could add a few debugging statements to your Java to make sure (System.err.println(report_filename)). The problem is more likely to be at the Java end. Things to check:
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
| [reply] [d/l] |
|
Re^6: inline::java error
by Anonymous Monk on Jul 14, 2012 at 21:31 UTC | |
Just a blind suggestion from a passer-by: You should first make a stand-alone Java program that does what you want. Take the code you have in class PdfRecordGenerator, add a bare-bones public static void main(String[] argv) method that calls the real method (like you would in Perl). Muck around with it until you get it working. After that, remove the main method and try again through Perl. Besides, there's always System.out.println() to debug and check that everything from Perl gets passed correctly. | [reply] [d/l] [select] |
by cliffrubinmusic (Novice) on Jul 16, 2012 at 17:36 UTC | |
the code in the java, when run from the command line makes the pdf file, with the data in it. That code looks like this:
this works like a charm BUT, when I put this code inside inline::java, get ride of the main, it runs, but the pdf file is empty. Here's the code:
also, the print command at the end of the code won't print. Any suggestions? | [reply] [d/l] [select] |