I just installed batik & fop on a linux machine.
I use it to export svg to pdf files.
The pdf export is successfull, but the java process don't die, and use a lot of memory.
Does anyone know where this problem comes from ? (I tried it before on a windows system, it worked fine)
This is a known issue with AWT. Once you start the AWT Event thread (which happens when you reference AWT) the only way to terminate the JVM is to call System.exit. If you can use JDK 1.4 you can use headless mode to avoid this issue. You can also just call System.exit before your 'main' exits.
You should have had the same problem with Windows.
-------------------------------------------------------
1. Here is the command line :
>>java -jar batik-rasterizer.jar -m application/pdf -d target.pdf target.svg
About to transcode 1 SVG file(s)
Converting target.svg to /home/restit/htdocs/svg/target_dir/target.pdf ... ... success
2. And the process list :
PID PPID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
10174 10171 restit 25 0 39808 38M 8764 R 99,9 1,9 0:47 /opt/IBMJava2-131/jre/bin/exe/java -jar /home/restit/htdocs/java/batik-1.5/batik-rasteriz
10176 10171 restit 25 0 39808 38M 8764 R 99,8 1,9 0:33 /opt/IBMJava2-131/jre/bin/exe/java -jar /home/restit/htdocs/java/batik-1.5/batik-rasteriz
10173 10171 restit 25 0 39808 38M 8764 R 50,5 1,9 0:30 /opt/IBMJava2-131/jre/bin/exe/java -jar /home/restit/htdocs/java/batik-1.5/batik-rasteriz
10175 10171 restit 25 0 39808 38M 8764 R 50,5 1,9 0:17 /opt/IBMJava2-131/jre/bin/exe/java -jar /home/restit/htdocs/java/batik-1.5/batik-rasteriz
10179 10171 restit 25 0 39808 38M 8764 R 49,2 1,9 0:23 /opt/IBMJava2-131/jre/bin/exe/java -jar /home/restit/htdocs/java/batik-1.5/batik-rasteriz
10177 10171 restit 25 0 39808 38M 8764 R 48,8 1,9 0:16 /opt/IBMJava2-131/jre/bin/exe/java -jar /home/restit/htdocs/java/batik-1.5/batik-rasteriz
10180 9909 restit 15 0 1076 1076 832 R 0,5 0,0 0:00 top
99
These process don't die !!!!!!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]