Can you explain your problem in java programming terms?
Now that I know what a "Quine" is (I had to go look it up),
It's rather simple!
Write a program which reads a text file (the program itself)
which writes a text file (the new program), with the original file read in as a String.
Every time that you run it, it creates a String... within a String... within a String...
Your problem will be dealing with all of the Quotes (").