Hi,
On those machines you do not have tools.jar in the classpath
ant neither JAVA_HOME/bin is in the search path, so JasperReports
cannot finf anything to compile.
I suggest you get the latest version of JasperReports and put
the jdt-compiler.jar in the classpath. Is much faster and it does
not work with temporary files on disk.
I hope this helps.
Teodor
Luca Bucci wrote:
> Hi, I have problem in developing with Jasper Report.
> On my notebook the application function without any problem, but on
> some computers I have found a problem when the application tries to
> generate the java temp file.
> It seems to me that on these computers the application cannot create
> anymore the file.
> The error type is reported on the attacched file.
> Thanks for the answer.
>
> Luca
>
>
>
> ----
> Email.it, the professional e-mail, gratis per te:clicca qui
> <http://www.email.it/cgi-bin/start?sid=3>
>
> Sponsor:
> Acquista videogames a prezzi imbattibili spediti direttamente a casa tua!
> Giochi e accessori PC, PS2, XBOX, G.CUBE, GBA che aspetti, clicca!
> Clicca qui <http://adv.email.it/cgi-bin/foclick.cgi?mid=2454&d=1-2>
>
>------------------------------------------------------------------------
>
>java.io.IOException: CreateProcess: javac -classpath ManagementStore1.0_03.jar "
>C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java" error=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:103)
> at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileRepo
>rt(JRAbstractJavaCompiler.java:152)
> at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
>DefaultCompiler.java:137)
> at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
>CompileManager.java:203)
> at src.GestioneFornitori$8.actionPerformed(GestioneFornitori.java:1407)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
>n Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
>ce)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>NESTED BY :
>java.io.IOException: CreateProcess: javac -classpath ManagementStore1.0_03.jar "
>C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java" error=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:103)
> at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileRepo
>rt(JRAbstractJavaCompiler.java:152)
> at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
>DefaultCompiler.java:137)
> at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
>CompileManager.java:203)
> at src.GestioneFornitori$8.actionPerformed(GestioneFornitori.java:1407)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
>n Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
>ce)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>NESTED BY :
>net.sf.jasperreports.engine.JRException: Error compiling report java source file
> : C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:128)
> at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileRepo
>rt(JRAbstractJavaCompiler.java:152)
> at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
>DefaultCompiler.java:137)
> at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
>CompileManager.java:203)
> at src.GestioneFornitori$8.actionPerformed(GestioneFornitori.java:1407)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
>n Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
>ce)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>Caused by: java.io.IOException: CreateProcess: javac -classpath ManagementStore1
>.0_03.jar "C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java" er
>ror=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:103)
> ... 27 more
>
>C:\Documents and Settings\Maria\Desktop\ms>java -jar ManagementStore1.0_05.jar
>Connessione creata
>Connessione creata
>Codice: 80 Nome: Marco
>Nome inserito: Marco
>stateChanged()
>getJTable
>getData
>Connessione creata
>select * from fornitore where eliminato = 0 order by nome
>stateChanged()
>Cliccato Modifica
>Connessione creata
>Indice Selezionato: 0Marco
>Codice: 80
>Select * from fornitore where cf = 80
>Connessione creata
>Connessione creata
>java.io.IOException: CreateProcess: javac -classpath ManagementStore1.0_05.jar "
>C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java" error=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:103)
> at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileRepo
>rt(JRAbstractJavaCompiler.java:152)
> at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
>DefaultCompiler.java:137)
> at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
>CompileManager.java:203)
> at src.GestioneFornitori$8.actionPerformed(GestioneFornitori.java:1407)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
>n Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
>ce)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>NESTED BY :
>java.io.IOException: CreateProcess: javac -classpath ManagementStore1.0_05.jar "
>C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java" error=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:103)
> at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileRepo
>rt(JRAbstractJavaCompiler.java:152)
> at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
>DefaultCompiler.java:137)
> at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
>CompileManager.java:203)
> at src.GestioneFornitori$8.actionPerformed(GestioneFornitori.java:1407)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
>n Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
>ce)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>NESTED BY :
>net.sf.jasperreports.engine.JRException: Error compiling report java source file
> : C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:128)
> at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileRepo
>rt(JRAbstractJavaCompiler.java:152)
> at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JR
>DefaultCompiler.java:137)
> at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Jasper
>CompileManager.java:203)
> at src.GestioneFornitori$8.actionPerformed(GestioneFornitori.java:1407)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
>n Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
>ce)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>Caused by: java.io.IOException: CreateProcess: javac -classpath ManagementStore1
>.0_05.jar "C:\Documents and Settings\Maria\Desktop\ms\singolo_fornitore.java" er
>ror=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.<init>(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at java.lang.Runtime.exec(Unknown Source)
> at net.sf.jasperreports.engine.design.JRJavacCompiler.compileClass(JRJav
>acCompiler.java:103)
> ... 27 more
>
>
|