JFreeReport
Hi,
Good Morning,
I am using jdk 1.6 and very new in JFreeReport. I have downloaded jfreereport-0.8.3 and put in to a directory named "jfree" in c drive. That is,
c:\jfree folder.
And I set the ClassPath of jfreereport in a batch file like the below-
set CLASSPATH =.;C:\jfree\jreereport-0.8.3.jar;C:\jfree\lib\*.jar
And put it in a folder named "report" in also c drive. That is,
c:\report folder. And in the same folder (report) I put a java code is given below-
import java.awt.Color;
import java.awt.geom.Rectangle2D;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import com.jrefinery.report.JFreeReport;
import com.jrefinery.report.util.log;
import com.jrefinery.report.preview.PreviewFrame;
import com.jrefinery.report.ItemFactory;
import com.jrefinery.report.ElementAlignment;
public class HelloWorld1
public HelloWorld1()
TableModel data = createData();
JFreeReport report = createReportDefinition();
report.setData(data);
try
PreviewFrame preview = new PreviewFrame(report);
preview.pack();
preview.setVisible(true);
catch (ReportProcessingException e)
Log.error("Failed to generate report ", e);
private TableModel createData()
Object[] columnNames = new String[] { "Column1", "Column2" };
DefaultTableModel result = new DefaultTableModel(columnNames, 1);
result.setValueAt("Hello", 0, 0);
result.setValueAt("World!", 0, 1);
return result;
private JFreeReport createReportDefinition()
JFreeReport report = new JFreeReport();
report.setName("A Very Simple Report");
TextElement t1 = ItemFactory.createStringElement("T1",new Rectangle2D.Double(0.0, 0.0, 150.0, 20.0),Color.black, ElementAlignment.LEFT.getOldAlignment(), ElementAlignment.MIDDLE.getOldAlignment(),null,"-","Column1");
report.getItemBand().addElement(t1);
TextElement t2 = ItemFactory.createStringElement("T2",new Rectangle2D.Double(200.0, 0.0, 150.0, 20.0),Color.black,ElementAlignment.LEFT.getOldAlignment(),ElementAlignment.MIDDLE.getOldAlignment(),null,"-","Column2");
report.getItemBand().addElement(t2);
return report;
public static void main(String[] args)
HelloWorld1 app = new HelloWorld1();
The problem is when I try to compile the above code, it gives 21 errors, for example--
C:\report\HelloWorld1.java:5: package com.jrefinery.report does not exist
import com.jrefinery.report.JFreeReport;
^
C:\report\HelloWorld1.java:6: package com.jrefinery.report.util does not exist
import com.jrefinery.report.util.log;
^
C:\report\HelloWorld1.java:7: package com.jrefinery.report.preview does not exist
import com.jrefinery.report.preview.PreviewFrame;
^
C:\report\HelloWorld1.java:8: package com.jrefinery.report does not exist
import com.jrefinery.report.ItemFactory;
^
C:\report\HelloWorld1.java:9: package com.jrefinery.report does not exist
import com.jrefinery.report.ElementAlignment;
Please help me to solve that kind of problems.
Thank u very much.
Khaled
Thank u
but I have set the ClassPath of jfreereport in a batch file like the below-
set CLASSPATH =.;C:\jfree\jreereport-0.8.3.jar;C:\jfree\lib\*.jar
And what do u mean by "path" and "to"
Similar Messages
-
How to add dynamic column in jfreereport
hi,
i am working on a project aboit accounting package.
i had created a report in jfreereport .. buti am facing the problem of dynamic column addition in that..
i have to create the number of column as per user given range that will from 2 to 365
i had generated column for that
that should be like
1 - 5 , 6 -10 , 11 - 15 , etc...
how can i represent that alll column in print preview i can't represent that report in horizontal fashion . is there any way to display it ..
this report has no bound in horizontal or verticle means i have any number of rows or columns..
pls help.
kamleshhi,
that means u have fixed columns right? ie 5 columns in a report
if it write, than u can find out how u can rename the columns with exiting
one.
that means while runing report u have to pass all the 5 columns to report
instead of the exiting columns (ie rename the columns that u want add
columns)
u have to search in code for renaming in the code ie jfreereport package.
i think u understood.
daya -
JFreeReport(By using Table Model)
Hi,
Good Evening
I got the sample coding for JFreeReport from
jfreereport-0.8.3-A4.pdf.I understand the coding.
But I couldnot understand What are the required libraries and how to add all in to my program.I didnot know how do set 'jfreereport-0.8.3.jar' file to my classpath. I couldnot understand it from the above pdf.So I got so many errors of "cannot find symbol".
I unzip all the contents of jfreereport-0.8.3 and put in to a directory Jfree.
And in C:\java\jdk1.5.0-05\bin I write the coding for HelloWorld.java
My coding is
import java.awt.*;
import javax.swing.table.*;
public class HelloWorld
public HelloWorld()
TableModel data = createData();
JFreeReport report = createReportDefinition();
report.setData(data);
try
PreviewFrame preview = new PreviewFrame(report);
preview.pack();
preview.setVisible(true);
catch (ReportProcessingException e)
Log.error("Failed to generate report ", e);
private TableModel createData()
Object[] columnNames = new String[] { "Column1", "Column2" };
DefaultTableModel result = new DefaultTableModel(columnNames, 1);
result.setValueAt("Hello", 0, 0);
result.setValueAt("World!", 0, 1);
return result;
private JFreeReport createReportDefinition()
JFreeReport report = new JFreeReport();
report.setName("A Very Simple Report");
TextElement t1 = ItemFactory.createStringElement(
"T1",
new Rectangle2D.Double(0.0, 0.0, 150.0, 20.0),
Color.black,
ElementAlignment.LEFT.getOldAlignment(),
ElementAlignment.MIDDLE.getOldAlignment(),
null, // font
"-", // null string
"Column1"
report.getItemBand().addElement(t1);
TextElement t2 = ItemFactory.createStringElement(
"T2",
new Rectangle2D.Double(200.0, 0.0, 150.0, 20.0),
Color.black,
ElementAlignment.LEFT.getOldAlignment(),
ElementAlignment.MIDDLE.getOldAlignment(),
null, // font
"-", // null string
"Column2"
report.getItemBand().addElement(t2);
return report;
public static void main(String[] args)
HelloWorld app = new HelloWorld();
So Please help me how can I set classpath,where and how can I add the needed libraries to my program.
Thank you so much,
Meena.Hi,
Good Morning,
I tried with your reply.
I first imported all my required packages .
I am using jfreereport-0.8.3.
But I got so many errors of "Cannot find Symbol".
Will you please help me ?
My code is:
import java.awt.Color;
import java.awt.geom.Rectangle2D;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import com.jrefinery.report.JFreeReport;
import com.jrefinery.report.util.log;
import com.jrefinery.report.preview.PreviewFrame;
import com.jrefinery.report.ItemFactory;
import com.jrefinery.report.ElementAlignment;
public class HelloWorld1
public HelloWorld1()
TableModel data = createData();
JFreeReport report = createReportDefinition();
report.setData(data);
try
PreviewFrame preview = new PreviewFrame(report);
preview.pack();
preview.setVisible(true);
catch (ReportProcessingException e)
Log.error("Failed to generate report ", e);
private TableModel createData()
Object[] columnNames = new String[] { "Column1", "Column2" };
DefaultTableModel result = new DefaultTableModel(columnNames, 1);
result.setValueAt("Hello", 0, 0);
result.setValueAt("World!", 0, 1);
return result;
private JFreeReport createReportDefinition()
JFreeReport report = new JFreeReport();
report.setName("A Very Simple Report");
TextElement t1 = ItemFactory.createStringElement("T1",new Rectangle2D.Double(0.0, 0.0, 150.0, 20.0),Color.black, ElementAlignment.LEFT.getOldAlignment(), ElementAlignment.MIDDLE.getOldAlignment(),null,"-","Column1");
report.getItemBand().addElement(t1);
TextElement t2 = ItemFactory.createStringElement("T2",new Rectangle2D.Double(200.0, 0.0, 150.0, 20.0),Color.black,ElementAlignment.LEFT.getOldAlignment(),ElementAlignment.MIDDLE.getOldAlignment(),null,"-","Column2");
report.getItemBand().addElement(t2);
return report;
public static void main(String[] args)
HelloWorld1 app = new HelloWorld1();
} -
Import the jar file of jfreereport to bluej
i'm having trouble importing the jar file needed to use the jfreereport in bluej.
as much as possible i don't want to type the SET CLASSPATH in the command window. is there a way to include the jfreereport jar file to be used in the bluej?You're doing privileged operations almost everywhere in this applet so you can't use the straightforward calls. At a minimum you need to put your applet in a jar, sign the jar and use AccessController.doPrivileged() to wrap the code which does the privileged operations, which is basically all of your code. In other words, you would need one to wrap your code in init(), one in start(), one in actionPerformed(), etc.
-
DefaultTableModel In JFreeReport
Hi,
I created a DefaultTableModel ,pushed all the database records in to the model,then set the model to jTable1 in NetBeans.I override needed methods includes the method getColumnName to get the headings.So I got the jTable with headings and datas clearly.
I used the same DefaultTableModel in my JFreeReport.But my report
contains only datas but not headings.
Why?
Will you please explain me ?
Will you please give the solution?
Thank you so much.
Meena.You don't create a new JTable, you just use the newly
created TableModel:
table.setModel( defTableModel );
I understood my stupid mistake!
The first time, jTable1 points to the JTable, which is on the JFrame. NetBeans placed it on the JFrame, gave it default falues, layout et.c.
When I write code
jTable1 = new JTable(myNewDefaultTableModel);That means, that I've lost pointer to jTable1 which is on the JFrame of MainForm class.
Now it points to the newly created JTable with new model, but it is somewhere in the memory. It is not on the JFrame...
That is why I do not see anything.
So I extended DefaultTableModel, overrided neccessary methods and everything works with jTable1.setModel(...);
Thanks!
It was very silly mistake -
How to Generate Statistic Graph in Report??
Hi, i am developing an questionnaire program together with 19 question... i am able to get value for each value..
Now my problem is how to generate a statistic graph whenever user can check their report ??
Can anyone help?? Thank you very much......
from bscsThe easy way is to use your values to set the width or height of an image dynamically in HTML, but you can only do bar charts using this method.
For real reports and measures have a look at
http://www.jfree.org/jfreechart/index.php
http://www.jfree.org/jfreereport/index.php -
Hi,
I am building a database application in Java and now i need to print some reports ....
I need to get the data from the database .. do some calculations , and then print in on paper.
I checked online and got some tools like JasperReports, jfreereports, ReportCat, etc. so I was wondering if somebody can suggest whats the best.
In my report I will have to print more than one table on one page.
for example:
if I have 4 Invoices. then i will have 4 tables .. one for each invoice.. and each table will contain
the elements for that Invoice.If all can't fit on one page then it needs to go next page.
I would like to do all this stuff in Java without using any reporting tool ... but I am not really sure how this can be
done .. can someone give me an idea ... as per how this can be done .. will really appriciate all the help.
Thanks in advance,
sandsouzaHi,
Can somebody please help me with this.
Thanks in advance
sandsouza -
Parameter problem in Crystal Reports for Eclipse
i m using cr4e-all-in-one-win_2.0.1. I had created .rpt file. In preview, parameters are working fine. when the application is deployed into tomcat server, the report is not asking for the parameter. i tried with properties but still it remains the same issue. need a help to resolve this.....
Thanks in advance.
Regards,
Ram
Edited by: Ramchan on Aug 21, 2009 3:21 PMDon,
Thanks for your suggestions. I will follow your instruction to connect to SQL Server Express 2008 database latelly. I can connect successfully with different Oracle databases (10g) in CR4E. I will try to connect MySQL database and Postgres database in CR4E to see if they can be successful or not. My project involves international entities with emphsizing in using OPEN SOURCE softwares (which means FREE - no license fees) in .NET platform for Oracle, SQL Server Express, MySQL and Postgres database servers. I am responsible for reports generation. I hope that CR4E can be connected successfully to SQL Server Express 2008 database server, otherwise I have to use JFreeReport/JFreeChart tools to do reports generation . -
JRE Crash with 1.5.0_13 related to printing & PDF export
Hi,
I'm having a problem : JRE 1.5.0 (updates 6, 10 and 13 tried) crashes under my software. The problem is encountered with printing / PDF exporting functionality through JFreeReport. Issue is encountered only with dualcore computers. Fortunately the issue isn't encountered with 1.6.0 anymore but I'd still be interested to find some workaround to make the software run with 1.5.0 also (It would be nice not to require users to have 1.6.0) Problem has been detected with both Win XP SP 2 and Vista.
First I was suspicious because we are using one JNI library but removing that didn't help so that shouldn't be the case.
After some searching I found a couple of JVM bugs that were marked as duplicates for http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6186524 . Those were related to 2D things and hence printing, fonts, exporting and with some cases dualcore computers were mentioned. However, that bug should be fixed in 1.5.0_10 but upgrading to 1.5.0_10 (or 1.5.0_13) didn't help so it can't be the actual bug.
Error log, if somebody can make up something: (This error log was got when running through Eclipse with JRE set to 1.5.0_13 but error has been encountered also when running straight with just one JRE (1.5.0_XX) installed to computer.)
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x762369e6, pid=5312, tid=5188
# Java VM: Java HotSpot(TM) Client VM (1.5.0_13-b05 mixed mode)
# Problematic frame:
# C [MSCTF.dll+0x69e6]
--------------- T H R E A D ---------------
Current thread (0x0b3f61d8): JavaThread "AWT-Windows" daemon [_thread_in_native, id=5188]
siginfo: ExceptionCode=0xc0000005, reading address 0x580e0e0e
Registers:
EAX=0x580e0e0e, EBX=0x00129f40, ECX=0x0b53f288, EDX=0x01300311
ESP=0x0b53f24c, EBP=0x0b53f250, ESI=0x0b53f288, EDI=0x00123970
EIP=0x762369e6, EFLAGS=0x00010202
Top of Stack: (sp=0x0b53f24c)
0x0b53f24c: 80004005 0b53f28c 76239ae4 580e0e0e
0x0b53f25c: 00152fe0 00123970 76236704 00140d70
0x0b53f26c: 013003f1 00000000 00000000 762367c8
0x0b53f27c: 001ba198 0b8400ec 00000000 580e0e0e
0x0b53f28c: 0b53f2d0 762391cd 00153118 00000000
0x0b53f29c: 00129f40 00123970 764d37c0 0b53f6b8
0x0b53f2ac: 764c5ac9 764d8f11 fffffffe 764d37c0
0x0b53f2bc: 762367f0 0b8400e4 0b53f2d8 7623689f
Instructions: (pc=0x762369e6)
0x762369d6: ff 55 8b ec 8b 45 08 85 c0 56 8b f1 89 06 74 06
0x762369e6: 8b 08 50 ff 51 04 8b c6 5e 5d c2 04 00 90 90 90
Stack: [0x0b500000,0x0b540000), sp=0x0b53f24c, free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [MSCTF.dll+0x69e6]
C [MSCTF.dll+0x9ae4]
C [MSCTF.dll+0x91cd]
C [MSCTF.dll+0x9bec]
C [MSCTF.dll+0x8e6f]
C [IMM32.DLL+0x3472]
C [USER32.dll+0x199cd]
C [USER32.dll+0x18e4c]
C [USER32.dll+0x18de1]
C [USER32.dll+0x19132]
C [USER32.dll+0x21a10]
C [USER32.dll+0x21ae8]
C [USER32.dll+0x21c03]
C [USER32.dll+0x23656]
C [ntdll.dll+0x60e6e]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WToolkit.eventLoop()V+0
j sun.awt.windows.WToolkit.run()V+69
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x0c077b28 JavaThread "export-worker--0" daemon [_thread_in_native, id=6032]
0x0c0779a0 JavaThread "Repagination-Worker" daemon [_thread_blocked, id=6016]
0x0c077818 JavaThread "Thread-20" [_thread_blocked, id=4740]
0x0bf45428 JavaThread "Timer-0" daemon [_thread_blocked, id=4456]
0x0bfee410 JavaThread "GC Daemon" daemon [_thread_blocked, id=4368]
0x0bfee288 JavaThread "RMI RenewClean-[192.168.1.155:49177]" daemon [_thread_blocked, id=5460]
0x00f718a0 JavaThread "DestroyJavaVM" [_thread_blocked, id=5212]
0x0bfcba50 JavaThread "TimerQueue" daemon [_thread_blocked, id=4704]
0x0b49d470 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2696]
0x0b4a6288 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=632]
=>0x0b3f61d8 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5188]
0x0b3f6050 JavaThread "AWT-Shutdown" [_thread_blocked, id=3368]
0x0103ef78 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=416]
0x0103e338 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1216]
0x0103d9b0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5592]
0x010333e8 JavaThread "Finalizer" daemon [_thread_blocked, id=4820]
0x01030e10 JavaThread "Reference Handler" daemon [_thread_blocked, id=4144]
Other Threads:
0x0102be10 VMThread [id=936]
0x00fd8ba8 WatcherThread [id=1316]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 2304K, used 1239K [0x03100000, 0x03370000, 0x035e0000)
eden space 2112K, 49% used [0x03100000, 0x03205da8, 0x03310000)
from space 192K, 100% used [0x03340000, 0x03370000, 0x03370000)
to space 192K, 0% used [0x03310000, 0x03310000, 0x03340000)
tenured generation total 29228K, used 24017K [0x035e0000, 0x0526b000, 0x07100000)
the space 29228K, 82% used [0x035e0000, 0x04d544d0, 0x04d54600, 0x0526b000)
compacting perm gen total 15616K, used 15552K [0x07100000, 0x08040000, 0x0b100000)
the space 15616K, 99% used [0x07100000, 0x08030000, 0x08030000, 0x08040000)
No shared spaces configured.
Dynamic libraries:
0x00400000 - 0x0040d000 C:\Program Files\Java\jre1.5.0_13\bin\javaw.exe
0x776b0000 - 0x777ce000 C:\Windows\system32\ntdll.dll
0x764b0000 - 0x76588000 C:\Windows\system32\kernel32.dll
0x76660000 - 0x7671f000 C:\Windows\system32\ADVAPI32.dll
0x777f0000 - 0x778b3000 C:\Windows\system32\RPCRT4.dll
0x76980000 - 0x76a1e000 C:\Windows\system32\USER32.dll
0x76b90000 - 0x76bdb000 C:\Windows\system32\GDI32.dll
0x76360000 - 0x7640a000 C:\Windows\system32\MSVCRT.dll
0x76b70000 - 0x76b8e000 C:\Windows\system32\IMM32.DLL
0x76230000 - 0x762f7000 C:\Windows\system32\MSCTF.dll
0x764a0000 - 0x764a9000 C:\Windows\system32\LPK.DLL
0x76720000 - 0x7679d000 C:\Windows\system32\USP10.dll
0x10000000 - 0x10017000 C:\Windows\system32\APSHook.dll
0x6d640000 - 0x6d7dd000 C:\Program Files\Java\jre1.5.0_13\bin\client\jvm.dll
0x752d0000 - 0x75303000 C:\Windows\system32\WINMM.dll
0x76a20000 - 0x76b64000 C:\Windows\system32\ole32.dll
0x76170000 - 0x761fc000 C:\Windows\system32\OLEAUT32.dll
0x75290000 - 0x752c8000 C:\Windows\system32\OLEACC.dll
0x75da0000 - 0x75dcc000 C:\Windows\system32\apphelp.dll
0x6d290000 - 0x6d298000 C:\Program Files\Java\jre1.5.0_13\bin\hpi.dll
0x75f60000 - 0x75f67000 C:\Windows\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 C:\Program Files\Java\jre1.5.0_13\bin\verify.dll
0x6d310000 - 0x6d32d000 C:\Program Files\Java\jre1.5.0_13\bin\java.dll
0x6d630000 - 0x6d63f000 C:\Program Files\Java\jre1.5.0_13\bin\zip.dll
0x6d000000 - 0x6d16a000 C:\Program Files\Java\jre1.5.0_13\bin\awt.dll
0x734b0000 - 0x734f1000 C:\Windows\system32\WINSPOOL.DRV
0x74b80000 - 0x74bbf000 C:\Windows\system32\uxtheme.dll
0x003e0000 - 0x003f8000 C:\Program Files\Hewlett-Packard\IAM\bin\ItClient.dll
0x76300000 - 0x76355000 C:\Windows\system32\SHLWAPI.dll
0x74f50000 - 0x750e4000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6000.16386_none_5d07289e07e1d100\comctl32.dll
0x74ec0000 - 0x74f46000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6000.16386_none_87e0cb09378714f1\Comctl32.dll
0x71cb0000 - 0x71cbc000 C:\Windows\system32\dwmapi.dll
0x76be0000 - 0x776ae000 C:\Windows\system32\shell32.dll
0x6d240000 - 0x6d290000 C:\Program Files\Java\jre1.5.0_13\bin\fontmanager.dll
0x6d4d0000 - 0x6d4e3000 C:\Program Files\Java\jre1.5.0_13\bin\net.dll
0x76200000 - 0x7622d000 C:\Windows\system32\WS2_32.dll
0x777e0000 - 0x777e6000 C:\Windows\system32\NSI.dll
0x755e0000 - 0x7561b000 C:\Windows\system32\mswsock.dll
0x75640000 - 0x75646000 C:\Windows\System32\wship6.dll
0x6d4f0000 - 0x6d4f9000 C:\Program Files\Java\jre1.5.0_13\bin\nio.dll
0x6d3d0000 - 0x6d3ef000 C:\Program Files\Java\jre1.5.0_13\bin\jpeg.dll
0x75360000 - 0x75398000 C:\Windows\system32\rsaenh.dll
0x75e20000 - 0x75e3e000 C:\Windows\system32\USERENV.dll
0x75e00000 - 0x75e14000 C:\Windows\system32\Secur32.dll
0x74a70000 - 0x74a7f000 C:\Windows\system32\NLAapi.dll
0x75800000 - 0x75819000 C:\Windows\system32\IPHLPAPI.DLL
0x757c0000 - 0x757f5000 C:\Windows\system32\dhcpcsvc.DLL
0x75ac0000 - 0x75aeb000 C:\Windows\system32\DNSAPI.dll
0x757b0000 - 0x757b7000 C:\Windows\system32\WINNSI.DLL
0x75790000 - 0x757b0000 C:\Windows\system32\dhcpcsvc6.DLL
0x727e0000 - 0x727e8000 C:\Windows\System32\winrnr.dll
0x76930000 - 0x76979000 C:\Windows\system32\WLDAP32.dll
0x727d0000 - 0x727df000 C:\Windows\system32\napinsp.dll
0x72070000 - 0x72082000 C:\Windows\system32\pnrpnsp.dll
0x727c0000 - 0x727cc000 C:\Windows\system32\wshbth.dll
0x767a0000 - 0x76928000 C:\Windows\system32\SETUPAPI.dll
0x75220000 - 0x75226000 C:\Windows\System32\wshtcpip.dll
0x728d0000 - 0x728d6000 C:\Windows\system32\rasadhlp.dll
0x6d1c0000 - 0x6d1e3000 C:\Program Files\Java\jre1.5.0_13\bin\dcpr.dll
0x6d5f0000 - 0x6d5f6000 C:\Program Files\Java\jre1.5.0_13\bin\rmi.dll
0x0b990000 - 0x0b9a1000 C:\Eclipse workspace\fenix\lib\ICE_JNIRegistry.dll
0x760f0000 - 0x76164000 C:\Windows\system32\COMDLG32.DLL
0x71610000 - 0x71617000 C:\Windows\system32\spool\DRIVERS\W32X86\3\SDNT5UI.DLL
0x0bac0000 - 0x0bad2000 C:\Windows\system32\spool\DRIVERS\W32X86\3\SDDM32.DLL
0x71130000 - 0x71145000 C:\Windows\system32\spool\DRIVERS\W32X86\3\ZSPOOL.dll
0x710e0000 - 0x710ea000 C:\Windows\system32\spool\DRIVERS\W32X86\3\ZGDI32.dll
0x70810000 - 0x70821000 C:\Windows\system32\MSVCRT40.dll
0x715d0000 - 0x715da000 C:\Windows\system32\spool\DRIVERS\W32X86\3\ZTAG32.dll
0x75650000 - 0x75658000 C:\Windows\system32\VERSION.dll
0x71060000 - 0x71080000 C:\Windows\system32\spool\DRIVERS\W32X86\3\SDDMUI.DLL
0x0bae0000 - 0x0bae7000 C:\Windows\system32\spool\DRIVERS\W32X86\3\ZLANG.dll
0x0bbc0000 - 0x0bbe4000 C:\Windows\system32\spool\DRIVERS\W32X86\3\SR32.dll
0x0bb70000 - 0x0bb7d000 C:\Windows\system32\spool\DRIVERS\W32X86\3\IMFNT5.DLL
0x71600000 - 0x71608000 C:\Windows\system32\spool\DRIVERS\W32X86\3\Imf32.dll
0x76410000 - 0x76494000 C:\Windows\system32\CLBCatQ.DLL
0x6de10000 - 0x6e033000 C:\Windows\system32\NetworkExplorer.dll
0x742c0000 - 0x74377000 C:\Windows\system32\PROPSYS.dll
0x76590000 - 0x7665f000 C:\Windows\system32\WININET.dll
0x777d0000 - 0x777d3000 C:\Windows\system32\Normaliz.dll
0x75f70000 - 0x75fb5000 C:\Windows\system32\iertutil.dll
0x759a0000 - 0x759b4000 C:\Windows\system32\MPR.dll
0x71940000 - 0x71952000 C:\Windows\System32\ntlanman.dll
0x75a50000 - 0x75aba000 C:\Windows\System32\NETAPI32.dll
0x71a00000 - 0x71a08000 C:\Windows\System32\drprov.dll
0x719d0000 - 0x719df000 C:\Windows\System32\davclnt.dll
0x734a0000 - 0x734aa000 C:\Windows\system32\cscapi.dll
0x707e0000 - 0x707e9000 C:\Windows\system32\LINKINFO.dll
0x6c460000 - 0x6c519000 C:\Windows\system32\spool\DRIVERS\W32X86\3\unidrvui.dll
0x6bdd0000 - 0x6be8b000 C:\Windows\system32\spool\DRIVERS\W32X86\3\mxdwdrv.dll
0x6c350000 - 0x6c365000 C:\Windows\system32\FontSub.dll
VM Arguments:
jvm_args: -Djava.library.path=c:/Eclipse workspace/fenix/lib -Xbootclasspath/a:C:\Eclipse workspace\fenix\rsrc\images\buttons;C:\Eclipse workspace\fenix\rsrc\images\buttons\general;C:\Eclipse workspace\fenix\rsrc\images\buttons\report
java_command: XXX
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files\Java\jre1.6.0_03\bin\client;C:\Program Files\Java\jre1.6.0_03\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Hewlett-Packard\IAM\bin
USERNAME=XXX
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 72 Stepping 2, AuthenticAMD
--------------- S Y S T E M ---------------
OS: Windows Vista Build 6000
CPU:total 2 (cores per cpu 2, threads per core 1) family 15 model 72 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnowext, 3dnow
Memory: 4k page, physical 1964736k(863916k free), swap 4159556k(2569432k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_13-b05) for windows-x86, built on Sep 25 2007 19:11:52 by "java_re" with MS VC++ 6.0This looks like [bug 6754141|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6754141] in the just-in-time compiler. If you have a support contract you can escalate this to get a fix in a jdk1.5.0 update. Alternatively, there do not seem to be any reports of this in jdk6, so you could try a recent jdk6 update (e.g., jdk6 update 17).
-
Hi All
I am doing a CS assignment and need to print some reports from an Access database. Does anybody know of some free or very cheep software that can do this?
I cannot spend ridiculous money on progs like Crystal reports since this is only a school assignment not a multinational enterprise project.
I hope someone can help me.
Hear from you soon.
ComlinkCheck out SourceForge.net and look for JFreeReport or iReport under the Java Foundry.
-
Dynamic Reports in java application
Hi,
I want to create dynamic reports in an java standalone application, I have downloaded the Jfreereport <http://sourceforge.net/projects/jfreereport>
I'm not sure, whether it could get data from a JDBC source. (or is there anyother solution to generate dynamic reports in a java application?).
Thanks in advance,
PayamI generate reports from a webserver ( Tomcat ) in PDF using iText ( www.lowagie.com/iText ). It works great. JFreereport is also using this iText and you shouldn't have any problems using JDBC. Try to read the tutorial first about iText first. This will give you an idea how JFreereport works.
- Dieter -
Hello
Anyone has java to pdf creation knowledge than please give us the feedback, if you know some readymade package please inform us
RegardsYou can use JFreeReport to format data from a TableModel (as in JTable) into a report that can be previewed on-screen, printed, or exported to PDF:
http://www.object-refinery.com/jfreereport/index.html
JFreeReport is free software, under the terms of the GNU LGPL.
Regards,
Dave Gilbert
www.object-refinery.com -
How to compile my files seperately.
Hi,
Good morning.
I am Meena.
I have finished my project by using NetBeans and MS-Access and JFreeReport.
will you please explain me something about the folowing.
When I click Build and clean or Build menu item from Build menu a executable jar file is created.When run the jar file It runs well.
So I send the jar file to my customer for trial use.
Then I make some changes in one of the .java file in my project.As usual I build it and run.Ok.
But need I have to send the whole jar file again to my customer to replace the old one?It is very tedious.
In my office ,they are using different environments they simply do this by compile the changed file .A file with .class is created.They just sent it to the customers.The customer just delete the old .class file and add the new one.
Problem is finished.
How can I acheive this in NetBeans.
Will you please explain me?
Thank you so much.
Meena.Meena,
You can unpack your project.jar file to get the class files.
jar -xvf project.jar
This will allow you to send only the modified class file to customer.
But the customer will need to update the JAR file using a command
like.
jar uf project.jar xxx/yyy/ModifiedClass.class
See
http://java.sun.com/docs/books/tutorial/deployment/jar/update.html
Maybe, you can send the customer a zip file containing only
the modified class file, and a BAT file containing the jar uf command.
Then customer has to unzip the modiifed class file and run your BAT
command.
Still not so convenient.
Is your JAR file size very large ? -
Import package help!!
import java.awt.*;
import javax.swing.JFrame;
import com.jrefinery.io.FileUtilities;
import com.jrefinery.report.JFreeReport;
import com.jrefinery.report.ReportProcessingException;
import com.jrefinery.report.io.ReportGenerator;
import com.jrefinery.report.preview.PreviewFrame;
import com.jrefinery.report.util.ExceptionDialog;
import com.jrefinery.report.util.ReportConfiguration;
import com.jrefinery.ui.ApplicationFrame;
import com.jrefinery.ui.RefineryUtilities;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.TableModel;
import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.sql.*;
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
public class IntrusionRateFrame extends JFrame implements ActionListener {
private TableModel data;
private JFreeReport report;
private String db;
private String dbpath;
public IntrusionRateFrame(String title) {
super(title);
setJMenuBar(createMenuBar());
setContentPane(createContent());
this.setSize(new Dimension(781, 446));
public JMenuBar createMenuBar()
JMenuBar mb = new JMenuBar();
JMenu fileMenu = new JMenu("File");
JMenuItem previewItem = new JMenuItem("Preview Report");
previewItem.setActionCommand("PREVIEW");
previewItem.addActionListener(this);
JMenuItem exitItem = new JMenuItem("Exit");
exitItem.setActionCommand("EXIT");
exitItem.addActionListener(this);
fileMenu.add(previewItem);
fileMenu.addSeparator();
fileMenu.add(exitItem);
mb.add(fileMenu);
return mb;
public JPanel createContent()
JPanel content = new JPanel(new BorderLayout());
content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
ADataModels adm=new ADataModels(connect());//get the table
this.data = adm;
JTable table = new JTable(data);
table.setRowHeight(26);
JScrollPane scrollPane = new JScrollPane(table);
content.add(scrollPane);
return content;
public void actionPerformed(ActionEvent e)
String command = e.getActionCommand();
if (command.equals("PREVIEW"))
previewReport();
else if (command.equals("EXIT"))
dispose();
System.exit(0);
protected void previewReport()
try
if (this.report == null)
URL in = getClass().getResource("Intrusion Rate Per Day.xml");
this.report = parseReport(in);
this.report.setData(this.data);
if (this.report != null)
PreviewFrame frame = new PreviewFrame(this.report);
frame.setLargeIconsEnabled(true);
frame.setToolbarFloatable(false);
frame.pack();
RefineryUtilities.positionFrameRandomly(frame);
frame.setVisible(true);
frame.requestFocus();
catch (ReportProcessingException rpe)
ExceptionDialog.showExceptionDialog("Error", "Unable to init", rpe);
private JFreeReport parseReport(URL templateURL)
JFreeReport result = null;
ReportGenerator generator = ReportGenerator.getInstance();
try
result = generator.parseReport(templateURL);
catch (Exception e)
ExceptionDialog.showExceptionDialog("Error on parsing",
"Error while parsing " + templateURL, e);
return result;
private ResultSet connect(){
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
dbpath="c:/system/systemdb.mdb";
db="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
db+= dbpath.trim() + ";DriverID=22;READONLY=true}";
Connection con2= DriverManager.getConnection(db,"","");
Statement s2=con2.createStatement(java.sql.ResultSet.TYPE_SCROLL_SENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
String sql2="SELECT Log_id, IP_Address, Host_Name, Port_Number, Port_Name, Date, Time, Log_Counted FROM Intrusion_Log ORDER BY Date AND Time";
ResultSet rs2 =s2.executeQuery(sql2);
return rs2;
}//end try
catch(Exception ex){
System.out.println("Error: " + ex);
}//end catch
return null;
my code is as above
i try to import the import com.jrefinery.io.FileUtilities;
package but when i compile it i got this kind of errors
^
.\IntrusionRateFrame.java:134: cannot resolve symbol
symbol : class ReportGenerator
location: class IntrusionRateFrame
ReportGenerator generator = ReportGenerator.getInstance();
^
.\IntrusionRateFrame.java:134: cannot resolve symbol
symbol : variable ReportGenerator
location: class IntrusionRateFrame
ReportGenerator generator = ReportGenerator.getInstance();
^
.\IntrusionRateFrame.java:141: cannot resolve symbol
symbol : variable ExceptionDialog
location: class IntrusionRateFrame
ExceptionDialog.showExceptionDialog("Error on parsing",
is that mean i had not import the package??
how do i import them if so??
thanksThe other way is to put the jar file inside the java_install_dir/jre/lib/ext folder. And just close the old dos prompt and start a new one. Classes will be automatically added to the classpath.
-
AUR for LibreOffice GIT (can't upload to AUR?)
I have created a PKGBUILD for LibreOffice that builds from the GIT master branch, but the AUR won't allow me to upload it, so I'm putting it here.
Source package: http://8bitboobs.com/stuff/libreoffice- … src.tar.gz
PKGBUILD:
# Maintainer: Maxwell Pray a.k.a. Synthead <[email protected]>
# Contributor: AndyRTR <[email protected]>
pkgbase='libreoffice-git'
pkgname=(
'libreoffice-common-git'
'libreoffice-base-git'
'libreoffice-calc-git'
'libreoffice-draw-git'
'libreoffice-gnome-git'
'libreoffice-impress-git'
'libreoffice-kde4-git'
'libreoffice-math-git'
'libreoffice-sdk-git'
'libreoffice-sdk-doc-git'
'libreoffice-writer-git'
'libreoffice-en-US-git'
'libreoffice-postgresql-connector-git'
'libreoffice-extension-pdfimport-git'
'libreoffice-extension-presenter-screen-git'
'libreoffice-extension-presentation-minimizer-git'
'libreoffice-extension-report-builder-git'
'libreoffice-scripting-beanshell-git'
'libreoffice-scripting-javascript-git'
'libreoffice-extension-scripting-python-git'
'libreoffice-extension-wiki-publisher-git'
'libreoffice-extension-nlpsolver-git'
pkgver=20121008
pkgrel=1
arch=(
'i686'
'x86_64'
license=('LGPL3')
url="http://www.libreoffice.org/"
makedepends=(
'apache-ant'
'beanshell'
'bluez'
'cppunit'
'doxygen'
'gconf'
'gperf'
'gstreamer0.10-base'
'hsqldb-java'
'imagemagick'
'java-environment'
'junit'
'kdelibs'
'libmythes'
'libwpg'
'mesa'
'perl-archive-zip'
'postgresql-libs'
'sane'
'unixodbc'
'unzip'
'vigra'
'zip'
depends=(
'curl>=7.20.0'
'dbus-glib'
'desktop-file-utils'
'gcc-libs'
'graphite'
'gtk2'
'hicolor-icon-theme'
'hunspell>=1.2.8'
'hyphen'
'icu>=49.1'
'lcms2'
'libgl'
'libjpeg'
'librsvg'
'libtextcat'
'libwpd>=0.9.2'
'libxaw'
'libxrandr'
'libxslt'
'lpsolve'
'neon>=0.28.6'
'nspr'
'orbit2'
'pango'
'python2>=2.7'
'redland'
'sh'
'shared-mime-info'
'translate-toolkit'
'ttf-dejavu'
'xdg-utils'
_gitroot=(
'git://anongit.freedesktop.org/libreoffice/core'
'git://anongit.freedesktop.org/libreoffice/help'
'git://anongit.freedesktop.org/libreoffice/translations'
_gitname=(
'libreoffice-core'
'libreoffice-help'
'libreoffice-translations'
_additional_source_url="http://dev-www.libreoffice.org/src"
_additional_source_url2="http://dev-www.libreoffice.org/extern"
source=(
"$_additional_source_url/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz"
"$_additional_source_url/18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz"
"$_additional_source_url/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz"
"$_additional_source_url/2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz"
"$_additional_source_url/2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz"
"$_additional_source_url/2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz"
"$_additional_source_url/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip"
"$_additional_source_url/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip"
"$_additional_source_url/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip"
"$_additional_source_url/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip"
"$_additional_source_url/3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz"
"$_additional_source_url/46d9f4cf8b145c21ce1056e116d2ce71-liborcus_0.1.0.tar.bz2"
"$_additional_source_url/48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz"
"$_additional_source_url/599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz"
"$_additional_source_url/6097739c841f671cb21332b9cc593ae7-libexttextcat-3.3.1.tar.bz2"
"$_additional_source_url/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip"
"$_additional_source_url/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip"
"$_additional_source_url/94e7f271e38c976462558b4278590178-libvisio-0.0.19.tar.bz2"
"$_additional_source_url/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip"
"$_additional_source_url/9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2"
"$_additional_source_url/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip"
"$_additional_source_url/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip"
"$_additional_source_url/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip"
"$_additional_source_url/af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz"
"$_additional_source_url/b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz"
"$_additional_source_url/b2db54b6e96287ac995d7ed654ace4fc-libmspub-0.0.3.tar.bz2"
"$_additional_source_url/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip"
"$_additional_source_url/3c0037fb07dea2f0bbae8386fa7c6a9a-libcdr-0.0.9.tar.bz2"
"$_additional_source_url/d197bd6211669a2fa4ca648faf04bcb1-libwps-0.2.7.tar.bz2"
"$_additional_source_url/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip"
"$_additional_source_url/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip"
"$_additional_source_url/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip"
"$_additional_source_url/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2"
"$_additional_source_url/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip"
"$_additional_source_url/fa6a2f85bd28baab035b2c95e722713f-liblangtag-0.2.tar.bz2"
"$_additional_source_url/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz"
"$_additional_source_url2/185d60944ea767075d27247c3162b3bc-unowinreg.dll"
'improve-vml-path-parsing-to-handle-repeated-commands.patch::https://gerrit.libreoffice.org/gitweb?p=core.git;a=patch;h=9cc362d8b210bfa06ad40e15dd3c8b37b10fa702'
'vml-import-only-apply-width-percent-attribute-if-non-zero.patch::https://gerrit.libreoffice.org/gitweb?p=core.git;a=patch;h=4dd8bb09dc4ac1a499a159a4c647475230170d71'
noextract=(
'0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz'
'185d60944ea767075d27247c3162b3bc-unowinreg.dll'
'18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz'
'1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz'
'2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz'
'2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz'
'2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz'
'3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip'
'35c94d2df8893241173de1d16b6034c0-swingExSrc.zip'
'39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip'
'3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip'
'3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz'
'46d9f4cf8b145c21ce1056e116d2ce71-liborcus_0.1.0.tar.bz2'
'48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz'
'599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz'
'6097739c841f671cb21332b9cc593ae7-libexttextcat-3.3.1.tar.bz2'
'798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip'
'8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip'
'94e7f271e38c976462558b4278590178-libvisio-0.0.19.tar.bz2'
'97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip'
'9f9e15966b5624834157fe3d748312bc-mdds_0.6.1.tar.bz2'
'a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip'
'ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip'
'ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip'
'af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz'
'b2371dc7cf4811c9d32146eec913d296-libcmis-0.3.0.tar.gz'
'b2db54b6e96287ac995d7ed654ace4fc-libmspub-0.0.3.tar.bz2'
'ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip'
'3c0037fb07dea2f0bbae8386fa7c6a9a-libcdr-0.0.9.tar.bz2'
'd197bd6211669a2fa4ca648faf04bcb1-libwps-0.2.7.tar.bz2'
'd8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip'
'db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip'
'eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip'
'f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2'
'f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip'
'fa6a2f85bd28baab035b2c95e722713f-liblangtag-0.2.tar.bz2'
'fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz'
md5sums=(
'0168229624cfac409e766913506961a8'
'18f577b374d60b3c760a3a3350407632'
'1f24ab1d39f4a51faf22244c94a6203f'
'2a177023f9ea8ec8bd00837605c5df1b'
'2ae988b339daec234019a7066f96733e'
'2c9b0f83ed5890af02c0df1c1776f39b'
'3404ab6b1792ae5f16bbd603bd1e1d03'
'35c94d2df8893241173de1d16b6034c0'
'39bb3fcea1514f1369fcfc87542390fd'
'3bdf40c0d199af31923e900d082ca2dd'
'3c219630e4302863a9a83d0efde889db'
'46d9f4cf8b145c21ce1056e116d2ce71'
'48d647fbd8ef8889e5a7f422c1bfda94'
'599dc4cc65a07ee868cf92a667a913d2'
'6097739c841f671cb21332b9cc593ae7'
'798b2ffdc8bcfe7bca2cf92b62caf685'
'8ce2fcd72becf06c41f7201d15373ed9'
'94e7f271e38c976462558b4278590178'
'97b2d4dba862397f446b217e2b623e71'
'9f9e15966b5624834157fe3d748312bc'
'a7983f859eafb2677d7ff386a023bc40'
'ace6ab49184e329db254e454a010f56d'
'ada24d37d8d638b3d8a9985e80bc2978'
'af3c3acf618de6108d65fcdc92b492e1'
'b2371dc7cf4811c9d32146eec913d296'
'b2db54b6e96287ac995d7ed654ace4fc'
'ba2930200c9f019c2d93a8c88c651a0f'
'3c0037fb07dea2f0bbae8386fa7c6a9a'
'd197bd6211669a2fa4ca648faf04bcb1'
'd8bd5eed178db6e2b18eeed243f85aa8'
'db60e4fde8dd6d6807523deb71ee34dc'
'eeb2c7ddf0d302fba4bfc6e97eac9624'
'f02578f5218f217a9f20e9c30e119c6a'
'f94d9870737518e3b597f9265f4e9803'
'fa6a2f85bd28baab035b2c95e722713f'
'fdb27bfe2dbe2e7b57ae194d9bf36bab'
'185d60944ea767075d27247c3162b3bc'
'82893e891aca9c2f04df6347253c1d04'
'c3f2473294124bd83e49328761c362ac'
install_from_list() {
# Create directories from .txt file.
for directory in $(grep '^%dir' "$srcdir/libreoffice-core-build/file-lists/$1_list.txt"); do
install -dm 755 "$pkgdir/${directory/\%dir}"
done
# Install files into pkg from the fakeinstall dir.
for file in $(grep -v '^%dir' "$srcdir/libreoffice-core-build/file-lists/$1_list.txt"); do
dirname="$(dirname "$file")"
# Check if directory has been already been created.
[[ -d "$pkgdir/$dirname" ]] || install -dm 755 "$pkgdir/$dirname"
# Move file from fakeinstall to $pkgdir.
mv "$srcdir/fakeinstall$file" "$pkgdir$file"
done
unzip_extension() {
# Unzip this extension to $pkgdir.
install -dm 755 "$pkgdir/usr/lib/libreoffice/share/extensions"
unzip -q "$srcdir/libreoffice-core-build/solver/unxlng"*"/bin/$1.oxt" -d "$pkgdir/usr/lib/libreoffice/share/extensions/$1"
build() {
# Manage the three GIT repositories.
cd "$srcdir"
for i in {0..2}; do
msg "Connecting to GIT server for ${_gitname[i]}..."
if [[ -d "$srcdir/${_gitname[i]}" ]]; then
msg2 "Updating local GIT repository..."
cd "$srcdir/${_gitname[i]}" && git pull origin
else
msg2 "Downloading GIT repository..."
git clone "${_gitroot[i]}" "$srcdir/${_gitname[i]}"
fi
msg2 "Cloning for build..."
rm -rf "$srcdir/${_gitname[i]}-build"
git clone "$srcdir/${_gitname[i]}" "$srcdir/${_gitname[i]}-build"
done
msg "Starting build..."
cd "$srcdir/${_gitname[0]}-build"
# Patches for better support for "inked" documents.
patch -p1 < "$srcdir/improve-vml-path-parsing-to-handle-repeated-commands.patch"
patch -p1 < "$srcdir/vml-import-only-apply-width-percent-attribute-if-non-zero.patch"
# Correctly set environment variables.
unset J2REDIR J2SDKDIR JAVA_HOME CLASSPATH EXTRAOPTS
. /etc/profile.d/jdk.sh || . /etc/profile.d/openjdk6.sh
[[ ! $ANT_HOME ]] && . /etc/profile.d/apache-ant.sh
# Create symlinks for external sources.
[[ -d "$srcdir/ext_sources" ]] && rm -r "$srcdir/ext_sources"
mkdir "$srcdir/ext_sources"
for source in "${noextract[@]}"; do
ln -s "$srcdir/$source" "$srcdir/ext_sources"
done
# Create symlinks for the "help" and "translations" repositories.
ln -s ../libreoffice-help-build/helpcontent2 "$srcdir/${_gitname[0]}-build"
ln -s ../libreoffice-translations-build/translations "$srcdir/${_gitname[0]}-build"
# Use the CFLAGS, but remove the LibO overridden ones.
for i in $CFLAGS; do
case "$i" in
-O?|-pipe|-Wall|-g|-fexceptions) continue ;;
esac
ARCH_FLAGS="$ARCH_FLAGS $i"
done
# Fix for python2.
export PYTHON=python2
# Configure LibreOffice with a Swiss Army knife of options!
./autogen.sh \
--disable-ext-mysql-connector \
--disable-fetch-external \
--disable-gnome-vfs \
--disable-kde \
--disable-mozilla \
--disable-verbose \
--enable-crashdump \
--enable-dbus \
--enable-evolution2 \
--enable-ext-nlpsolver \
--enable-ext-scripting-beanshell \
--enable-ext-scripting-javascript \
--enable-ext-wiki-publisher \
--enable-gio \
--enable-gtk3 \
--enable-kde4 \
--enable-librsvg=system \
--enable-lockdown \
--enable-mergelibs \
--enable-odk \
--enable-opengl \
--enable-split-app-modules \
--exec-prefix=/usr \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc \
--with-alloc=system \
--with-ant-home="/usr/share/apache-ant" \
--with-build-version="GIT-$pkgver ArchLinux build-$pkgrel" \
--with-external-dict-dir=/usr/share/hunspell \
--with-external-hyph-dir=/usr/share/hyphen \
--with-external-tar="${srcdir}/ext_sources" \
--with-external-thes-dir=/usr/share/mythes \
--with-java-target-version=1.5 \
--with-lang="" \
--with-max-jobs=${MAKEFLAGS/-j/} \
--with-num-cpus=${MAKEFLAGS/-j/} \
--with-system-beanshell \
--with-system-cairo \
--with-system-cppunit \
--with-system-dicts \
--with-system-graphite \
--with-system-headers \
--with-system-hsqldb \
--with-system-libs \
--with-system-libwpg \
--with-system-mysql \
--with-system-mythes \
--with-system-redland \
--with-unix-wrapper="libreoffice" \
--with-vendor="ArchLinux" \
--without-afms \
--without-fonts \
--without-myspell-dicts \
--without-ppds \
--without-system-apache-commons \
--without-system-boost \
--without-system-clucene \
--without-system-jfreereport \
--without-system-libcdr \
--without-system-libcmis \
--without-system-libexttextcat \
--without-system-liblangtag \
--without-system-libmspub \
--without-system-libvisio \
--without-system-libwps \
--without-system-mdds \
--without-system-mozilla \
--without-system-mozilla-headers \
--without-system-orcus \
--without-system-poppler \
--without-system-saxon \
--without-system-servlet-api \
$EXTRAOPTS
# Tell LibreOffice that the sources are already downloaded.
touch src.downloaded
# Build LibreOffice.
make
# Create fake installation directory to create split file lists.
mkdir "$srcdir/fakeinstall"
# Install LibreOffice to the fake installation directory.
make DESTDIR="$srcdir/fakeinstall" distro-pack-install
package_libreoffice-common-git() {
pkgdesc="Common files for LibreOffice, a productivity suite that is compatible with other major office suites."
depends=(
'libreoffice-langpack'
'hunspell>=1.2.8'
'python2>=2.7'
'neon>=0.28.6'
'nspr'
'libsm'
'redland'
'hyphen'
'graphite'
'icu>=49.1'
'lcms2'
'hicolor-icon-theme'
'desktop-file-utils'
'shared-mime-info'
'xdg-utils'
'orbit2'
optdepends=(
'libreoffice-langpack: Additional language support.'
'java-runtime: Adds java support.'
'libcups: Adds printing support.'
'gconf: Adds additional gnome support.'
'nss: Adds support for signed files/macros.'
'pstoedit: Translates PostScript and PDF graphics into other vector formats.'
'libmythes: For use in thesaurus.'
'beanshell: Interactive java; good for prototyping and macros.'
'vigra: C++ computer vision library, usable in Basebmp.'
'libmspack: Library for Microsoft compression formats for use in FontOOo.'
'libwpg: Library for importing and converting Corel WordPerfect(tm) Graphics images.'
'sane: For scanner access.'
'unixodbc: Adds ODBC database support.'
'gstreamer0.10-base: Some gstr-plugins to support multimedia content, e.g. in impress.'
'gtk2: For browser plugin.'
backup=(
'etc/libreoffice/sofficerc'
'etc/libreoffice/bootstraprc'
'etc/libreoffice/psprint.conf'
groups=('libreoffice')
provides=(
'go-openoffice'
'libreoffice-common'
conflicts=(
'go-openoffice'
'libreoffice-common'
replaces=(
'go-openoffice'
'libreoffice'
'openoffice-base'
install='libreoffice-common.install'
install_from_list common
# Configuration files.
install -dm 755 "$pkgdir/etc/libreoffice"
install -m 644 "$pkgdir/usr/lib/libreoffice/program/"{bootstraprc,sofficerc} "$pkgdir/etc/libreoffice"
install -m 644 "$pkgdir/usr/lib/libreoffice/share/psprint/psprint.conf" "$pkgdir/etc/libreoffice"
# Install dummy links.
cd "$pkgdir/usr/lib/libreoffice/program"
ln -sf /etc/libreoffice/{bootstraprc,sofficerc} .
cd "$pkgdir/usr/lib/libreoffice/share/psprint"
ln -sf /etc/libreoffice/psprint.conf .
# Move bash-completion files.
install -dm755 "$pkgdir/usr/share/bash-completion/completions"
mv "$pkgdir/etc/bash_completion.d/libreoffice.sh" "$pkgdir/usr/share/bash-completion/completions/libreoffice.sh"
rm -rf "$pkgdir/etc/bash_completion.d"
# Prevent conflicts.
rm -f "$pkgdir/usr/lib/libreoffice/program/classes/ScriptProviderForJavaScript.jar"
rm -f "$pkgdir/usr/lib/libreoffice/program/classes/js.jar"
rm -f "$pkgdir/usr/lib/libreoffice/program/services/scriptproviderforjavascript.rdb"
package_libreoffice-base-git() {
pkgdesc="GUI database front-end for LibreOffice. Allows creation and management of databases through a GUI."
depends=(
'libreoffice-common'
'hsqldb-java'
optdepends=('libreoffice-postgresql-connector')
provides=('libreoffice-base')
conflicts=(
'go-openoffice'
'libreoffice-base'
'libreoffice-common'
groups=('libreoffice')
replaces=('libreoffice')
install='update-desktop-database.install'
install_from_list base
package_libreoffice-postgresql-connector-git() {
pkgdesc="A PostgreSQL connector for LibreOffice."
depends=(
'libreoffice-base'
'postgresql-libs'
groups=('libreoffice')
replaces=('libreoffice')
provides=('libreoffice-postgresql-connector')
conflicts=('libreoffice-postgresql-connector')
# No file list for this package.
install -dm 755 "$pkgdir/usr/lib/libreoffice/program/services"
install -m 644 "$srcdir/fakeinstall/usr/lib/libreoffice/program/postgresql-sdbc.uno.so" "$pkgdir/usr/lib/libreoffice/program"
install -m 644 "$srcdir/fakeinstall/usr/lib/libreoffice/program/postgresql-sdbc-impl.uno.so" "$pkgdir/usr/lib/libreoffice/program"
install -m 644 "$srcdir/fakeinstall/usr/lib/libreoffice/program/postgresql-sdbc.ini" "$pkgdir/usr/lib/libreoffice/program"
install -m 644 "$srcdir/fakeinstall/usr/lib/libreoffice/program/services/postgresql-sdbc.rdb" "$pkgdir/usr/lib/libreoffice/program/services"
install -dm 755 "$pkgdir/usr/lib/libreoffice/share/registry"
install -m 644 "$srcdir/fakeinstall/usr/lib/libreoffice/share/registry/postgresqlsdbc.xcd" "$pkgdir/usr/lib/libreoffice/share/registry"
package_libreoffice-calc-git() {
pkgdesc="Spreadsheet application for LibreOffice."
depends=(
'libreoffice-common'
'lpsolve'
groups=('libreoffice')
replaces=('libreoffice')
provides=('libreoffice-calc')
conflicts=('libreoffice-calc')
install='update-desktop-database.install'
install_from_list calc
package_libreoffice-draw-git() {
pkgdesc="Drawing application for LibreOffice."
arch=('any')
depends=('libreoffice-common')
groups=('libreoffice')
replaces=('libreoffice')
provides=('libreoffice-draw')
conflicts=('libreoffice-draw')
install='update-desktop-database.install'
install_from_list draw
package_libreoffice-gnome-git() {
pkgdesc="Plug-in for LibreOffice that enables integration of Gnome and other GTK-based desktop environments."
depends=(
'gtk2'
'gtk3'
'libreoffice-common'
groups=('libreoffice')
provides=('libreoffice-gnome')
conflicts=('libreoffice-gnome')
install_from_list gnome
package_libreoffice-impress-git() {
pkgdesc="Presentation Application for LibreOffice."
depends=('libreoffice-common')
optdepends=('mesa: For the OGLTrans extension.')
groups=('libreoffice')
replaces=('libreoffice')
provides=('libreoffice-impress')
conflicts=('libreoffice-impress')
install='update-desktop-database.install'
install_from_list impress
package_libreoffice-kde4-git() {
pkgdesc="Plug-in for LibreOffice that enables integration into the KDE4 desktop environment."
depends=(
'libreoffice-common'
'kdelibs'
groups=('libreoffice')
provides=('libreoffice-kde4')
conflicts=('libreoffice-kde4')
install_from_list kde4
package_libreoffice-math-git() {
pkgdesc="Equation editor for LibreOffice."
depends=('libreoffice-common')
groups=('libreoffice')
replaces=('libreoffice')
provides=('libreoffice-math')
conflicts=('libreoffice-math')
install_from_list math
package_libreoffice-sdk-git() {
pkgdesc="Software Development Kit for LibreOffice."
depends=(
'gcc'
'gcc-libs'
'java-environment'
'libreoffice-common'
'make'
'sh'
'zip'
groups=('libreoffice')
provides=('libreoffice-sdk')
conflicts=('libreoffice-sdk')
install_from_list sdk
# Fix environment path for compatibility with openjdk6 and openjdk7.
sed -ie 's:\/usr\/lib\/jvm\/java-7-openjdk:$J2SDKDIR:' "$pkgdir/usr/lib/libreoffice/sdk/setsdkenv_unix."{sh,csh}
package_libreoffice-sdk-doc-git() {
pkgdesc="Software Development Kit documentation for LibreOffice."
arch=('any')
depends=(
'libreoffice-common'
'libreoffice-sdk'
groups=('libreoffice')
provides=('libreoffice-sdk-doc')
conflicts=('libreoffice-sdk-doc')
install_from_list sdk_doc
# Fix permissions.
find "$pkgdir/usr/lib/libreoffice/sdk/examples" -type f -exec chmod -x {} \;
package_libreoffice-writer-git() {
pkgdesc="Word Processor Application for LibreOffice."
depends=(
'libreoffice-common'
'libwpd>=0.9.2'
'libxml2'
optdepends=('libwpg: Library for importing and converting Corel WordPerfect(tm) Graphics images.')
groups=('libreoffice')
replaces=('libreoffice')
provides=('libreoffice-writer')
conflicts=('libreoffice-writer')
install='update-desktop-database.install'
install_from_list writer
package_libreoffice-en-US-git() {
pkgdesc="English (US) language pack for LibreOffice."
arch=('any')
provides=(
'openoffice-en-US'
'libreoffice-en-US'
'libreoffice-langpack'
replaces=('openoffice-en-US')
conflicts=(
'openoffice-en-US'
'libreoffice-en-US'
install_from_list lang_en_US
package_libreoffice-extension-pdfimport-git() {
pkgdesc="LibreOffice extension to import and modify PDF documents."
arch=('any')
depends=('libreoffice-common')
groups=('libreoffice-extensions')
provides=('libreoffice-extension-pdfimport')
conflicts=('libreoffice-extension-pdfimport')
unzip_extension pdfimport
package_libreoffice-extension-presenter-screen-git() {
pkgdesc="LibreOffice extension to provide more control over slide show presentations."
depends=(
'libreoffice-common'
'java-environment'
groups=('libreoffice-extensions')
provides=('libreoffice-extension-presenter-screen')
conflicts=('libreoffice-extension-presenter-screen')
unzip_extension presenter-screen
package_libreoffice-extension-presentation-minimizer-git() {
pkgdesc="LibreOffice extension to reduce the file size of presentations."
depends=(
'libreoffice-common'
'gcc-libs'
groups=('libreoffice-extensions')
provides=('libreoffice-extension-presentation-minimizer')
conflicts=('libreoffice-extension-presentation-minimizer')
unzip_extension presentation-minimizer
package_libreoffice-extension-report-builder-git() {
pkgdesc="LibreOffice extension to create database reports."
arch=('any')
depends=(
'libreoffice-common'
'java-environment'
groups=('libreoffice-extensions')
provides=('libreoffice-extension-report-builder')
conflicts=('libreoffice-extension-report-builder')
unzip_extension report-builder
package_libreoffice-extension-scripting-python-git() {
pkgdesc="LibreOffice extension to enable support for Python."
arch=('any')
depends=(
'libreoffice-common'
'python2'
groups=('libreoffice-extensions')
provides=('libreoffice-extension-scripting-python')
conflicts=('libreoffice-extension-scripting-python')
unzip_extension script-provider-for-python
package_libreoffice-extension-wiki-publisher-git() {
pkgdesc="LibreOffice extension to create Wiki articles on MediaWiki servers."
arch=('any')
depends=(
'libreoffice-common'
'java-environment'
groups=('libreoffice-extensions')
provides=('libreoffice-extension-wiki-publisher')
conflicts=('libreoffice-extension-wiki-publisher')
unzip_extension wiki-publisher
package_libreoffice-extension-nlpsolver-git() {
pkgdesc="LibreOffice extension for Calc: additional Solver engines for optimizing nonlinear programming models."
arch=('any')
depends=(
'libreoffice-common'
'java-environment'
groups=('libreoffice-extensions')
provides=('libreoffice-extension-nlpsolver')
conflicts=('libreoffice-extension-nlpsolver')
unzip_extension nlpsolver
package_libreoffice-scripting-beanshell-git() {
pkgdesc="LibreOffice extension for BeanShell script support."
arch=('any')
depends=(
'libreoffice-common'
'java-environment'
groups=('libreoffice-extensions')
provides=('libreoffice-scripting-beanshell')
conflicts=('libreoffice-scripting-beanshell')
install -dm 755 "$pkgdir/usr/lib/libreoffice/program/"{classes,services}
mv "$srcdir/fakeinstall/usr/lib/libreoffice/program/classes/ScriptProviderForBeanShell.jar" "$pkgdir/usr/lib/libreoffice/program/classes"
mv "$srcdir/fakeinstall/usr/lib/libreoffice/program/services/scriptproviderforbeanshell.rdb" "$pkgdir/usr/lib/libreoffice/program/services"
package_libreoffice-scripting-javascript-git() {
pkgdesc="LibreOffice extension to enable support for JavaScript."
arch=('any')
depends=(
'libreoffice-common'
'java-environment'
groups=('libreoffice-extensions')
provides=('libreoffice-scripting-javascript')
conflicts=('libreoffice-scripting-javascript')
install -dm 755 "$pkgdir/usr/lib/libreoffice/program/"{classes,services}
mv "$srcdir/libreoffice-core-build/solver/unxlngx6.pro/bin/"{js.jar,ScriptProviderForJavaScript.jar} "$pkgdir/usr/lib/libreoffice/program/classes"
mv "$srcdir/libreoffice-core-build/solver/unxlngx6.pro/xml/scriptproviderforjavascript.rdb" "$pkgdir/usr/lib/libreoffice/program/services"
update-desktop-database.install
post_install() {
update-desktop-database -q
post_upgrade() {
post_install
post_remove() {
post_install
libreoffice-common.install
post_upgrade() {
xdg-icon-resource forceupdate --theme hicolor
update-desktop-database -q
update-mime-database usr/share/mime > /dev/null 2>&1
post_install() {
post_upgrade
printf '%s\n' \
'LibreOffice is split into several packages:' \
'- libreoffice-common' \
'- libreoffice-{base,calc,draw,impress,math,writer}: Frontend applications.' \
'- libreoffice-{gnome,kde4}: Desktop integration plugins.' \
'- libreoffice-{sdk,sdk-doc}: SDK and documentation for the LibreOffice API and extensions (UNO components).' \
'In addition:' \
'- At least one libreoffice-langpack needs to be installed.' \
'- Install {hunspell,mythes,hyphen}-xx for spell checking.'
post_remove() {
post_upgrade
Last edited by synthead (2012-10-08 19:40:13)synthead wrote:
This is based off an official package: https://projects.archlinux.org/svntogit … ibreoffice
Also, splitting it into multiple files means that the (large) GIT repo would need to be downloaded and compiled per PKGBUILD (yeech).
Oh well, that was my opinion, but I can't say anything against the core team I thought this was a reasonable split, since there were three git repos. If you need all for one build, forget what I said.
PS: To upload a split-package to AUR create a meaningful global package description that mentions splitting, and use the mentioned workaround:
pkgname="AUR-name"
true && pkgname=(...) # the array
Last edited by progandy (2012-10-08 19:03:37)
Maybe you are looking for
-
When I use the usb cable it wont complete an update on itunes only with the fw cord. ANother strange thing is that when I run disk utility on it it always has to do a reapir . One tiome I saw it said it had to fix the header or something. ANY QLUES!
-
How to show php 'include' file in Design View?
Is it possible (in design view MX04) to show a php include file? It shows if it's <?php include('myPage.inc'); ?> but if its got the .php ext, <?php include('myPage.php'); ?> its doesnt show. Any way of making it show? Cheers. Os.
-
Hi all, A customer cannot install Xcelsius 2008 on XP Home 2002 with SP2, with Office 2003 installed. There error message are "Office XP application : Excel, Word, Outlook or Powerpoint must be pre-installed. Higher versions work fine". Anyone enc
-
Why do I get a black exclamation mark blocking a photo when I click on a thumbnail in iPhoto?
Why am I getting a triangle with a black exclamation mark when I click on theumbnails in iPhoto?
-
OC4J: error starting the preconfigured OC4J
When I try to deploy the Webcenter preconfigured 0C4J in jdev 10.1.3.2 this is the message I get. I am running Solaris 10 /export/home/oracle/jdevhome/extensions/oracle.adfp.seededoc4j.10.1.3.2.0/bin> /export/home/oracle/jdevhome//extensions/oracle.a