Re: Installing BCE for users?

20 views
Skip to first unread message

Ashok Hariharan

unread,
Jan 29, 2013, 5:11:46 AM1/29/13
to Samar Ayesh, bungeni...@googlegroups.com
Sure there is the IZPack installer ...

http://bungeni-editor.googlecode.com/svn/BungeniEditor/trunk/BungeniEditorClient/installer/

(Actually I need to update it since we split up the configuration access into a different folder .. )

Basically you download and install IzPack (http://www.izpack.org)

copy the installer folder into the izpack folder .

create a folder called base within the installer folder and copy everything generated in the dist folder of bungeni editor into base.

and then you can simply run  ..\bin\compile in the installer folder to generate the installer package.

See the manual of IzPack on how to customize the installer ...

Ashok


On 29 January 2013 12:51, Samar Ayesh <smr....@gmail.com> wrote:
Hello Ashok,

Is there a software that can take BCE project jar file and generate a desktop application that can be installed on other computers for lawyers to use ?

--
 ___________________________
 Samar Ayesh

Samar Ayesh

unread,
Jan 29, 2013, 5:29:10 AM1/29/13
to bungeni...@googlegroups.com, Samar Ayesh
Great, I will try it

Ashok Hariharan

unread,
Jan 29, 2013, 5:48:08 AM1/29/13
to bungeni...@googlegroups.com, Samar Ayesh
You will have to make some adjustments to the script i..e you will have to copy in the config folder (since its not part of dist ) and adjust the path to it in the configs.xml of the editor .

Also the current setup assumes everythign is installed in one folder structure (including the configs, the workspace ) .

But this is problematic on windows 7 since the user doesnt have write access to "program files", so the installer should put the binaries into "program files" and prompt the user where they want to setup the workspace and the config folder.

Ashok

--
You received this message because you are subscribed to the Google Groups "bungeni-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bungeni-edito...@googlegroups.com.
To post to this group, send email to bungeni...@googlegroups.com.
Visit this group at http://groups.google.com/group/bungeni-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Samar Ayesh

unread,
Jan 29, 2013, 7:42:58 AM1/29/13
to bungeni...@googlegroups.com, Samar Ayesh
Now I did download and install IzPack (http://www.izpack.org
it's here >>  C:\Program Files (x86)\IzPack

"copy the installer folder into the izpack folder ."
  where is the Installer folder ?


On Tuesday, January 29, 2013 12:11:46 PM UTC+2, Ashok Hariharan wrote:

Ashok Hariharan

unread,
Jan 29, 2013, 7:48:59 AM1/29/13
to bungeni...@googlegroups.com
On 29 January 2013 15:42, Samar Ayesh <smr....@gmail.com> wrote:
Now I did download and install IzPack (http://www.izpack.org
it's here >>  C:\Program Files (x86)\IzPack

"copy the installer folder into the izpack folder ."
  where is the Installer folder ?



On Tuesday, January 29, 2013 12:11:46 PM UTC+2, Ashok Hariharan wrote:
Sure there is the IZPack installer ...

http://bungeni-editor.googlecode.com/svn/BungeniEditor/trunk/BungeniEditorClient/installer/

(Actually I need to update it since we split up the configuration access into a different folder .. )

Basically you download and install IzPack (http://www.izpack.org)

copy the installer folder into the izpack folder .

create a folder called base within the installer folder and copy everything generated in the dist folder of bungeni editor into base.

and then you can simply run  ..\bin\compile in the installer folder to generate the installer package.

See the manual of IzPack on how to customize the installer ...

Ashok


On 29 January 2013 12:51, Samar Ayesh <smr....@gmail.com> wrote:
Hello Ashok,

Is there a software that can take BCE project jar file and generate a desktop application that can be installed on other computers for lawyers to use ?

--
 ___________________________
 Samar Ayesh

Samar Ayesh

unread,
Jan 30, 2013, 3:56:26 AM1/30/13
to bungeni...@googlegroups.com, Ashok Hariharan, Ahmad Hajissa Hamo
what I did is the following:
1- downloaded IzPack and installed it to my computer (C:\Program Files (x86)\IzPack) 
2- copied installer folder into IzPack folder (C:\Program Files (x86)\IzPack\installer)
3- generated base folder that contains BungeniEditorClient dist
my config.xml contains the following >>

 <config name="birzeit-configs"
    title="Act Bungeni Development"
    folder-base="../../BungeniEditor_configs/birzeit_configs"
    receiver="org.bungeni.editor.input.FSDocumentReceiver"
     default="true" 
    />

So I copied BungeniEditor_configs folder into IzPack (C:\Program Files (x86)\IzPack\BungeniEditor_configs) 

Now I ran bin\compile.bat and cmd window started then disappeared .. what is generated ? Is there any mistake that I made??

Ashok Hariharan

unread,
Jan 31, 2013, 4:07:51 AM1/31/13
to Samar Ayesh, bungeni...@googlegroups.com, Ahmad Hajissa Hamo
Are you doing this :

http://izpack.org/documentation/getting-started.html#first-compilation

You have to run it from the command line (not double click from explorer )

Samar Ayesh

unread,
Jan 31, 2013, 4:32:22 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh, Ahmad Hajissa Hamo
I copied installer folder into IzPack folder .. or should I copy it's content into bin?
because install.xml is there and the command says:" ..\bin\compile install.xml -b . -o install.jar -k standard"

Ashok Hariharan

unread,
Jan 31, 2013, 5:15:12 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh, Ahmad Hajissa Hamo
no .. it should be like this :

izpack
  |
  +--installer <== install.xml is here
         +-- base  <== the contents of dist are in here

then from the installer folder you run :

..\bin\compile.bat install.xml

Samar Ayesh

unread,
Jan 31, 2013, 5:38:09 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh, Ahmad Hajissa Hamo
I attached a screen shot for cmd .. there's an error that I can't fix .. may be it's a path problem !!
izPack.jpg

Ashok Hariharan

unread,
Jan 31, 2013, 6:03:47 AM1/31/13
to bungeni...@googlegroups.com
Do you have a folder called "base" within installer ?

Samar Ayesh

unread,
Jan 31, 2013, 6:08:50 AM1/31/13
to bungeni...@googlegroups.com
OOh , I have it with in IzPack folder 

Samar Ayesh

unread,
Jan 31, 2013, 6:14:36 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
Thanks Ashok , now I generated install.jar ..
I can download it to any pc so as to have BungeniEditor there?


On Tuesday, January 29, 2013 12:11:46 PM UTC+2, Ashok Hariharan wrote:

Ashok Hariharan

unread,
Jan 31, 2013, 6:16:16 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
Yeah ,  you will need to install openoffice 3.3 for it to run

Ashok

Samar Ayesh

unread,
Jan 31, 2013, 6:18:26 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
yes and java jdk

Ashok Hariharan

unread,
Jan 31, 2013, 6:21:35 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
You just need a java 6 jre -- the JDK is not required.

Ashok

Samar Ayesh

unread,
Jan 31, 2013, 6:28:26 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
ok

Samar Ayesh

unread,
Jan 31, 2013, 6:46:34 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
after installing install.jar installer folder is generated
how to start bungeniEditor? 


On Tuesday, January 29, 2013 12:11:46 PM UTC+2, Ashok Hariharan wrote:

Ashok Hariharan

unread,
Jan 31, 2013, 7:34:15 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
You will see win.vbs .. just run that script

Ashok Hariharan

unread,
Jan 31, 2013, 7:34:27 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
You can double click from explorer

Samar Ayesh

unread,
Jan 31, 2013, 7:38:07 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
Yes I tried to do that but nothing happened !

Ashok Hariharan

unread,
Jan 31, 2013, 7:41:22 AM1/31/13
to bungeni...@googlegroups.com, Samar Ayesh
It means startup is failing ...something is missing ...

1) did you ship it with the config folder ?
2) can you install it in my documents and see if it works from there ?

Samar Ayesh

unread,
Feb 2, 2013, 3:00:48 AM2/2/13
to bungeni...@googlegroups.com, Samar Ayesh
Yes I copied config folder and edited config.xml for it ...
I uploaded it here 

Ashok Hariharan

unread,
Feb 4, 2013, 3:54:52 AM2/4/13
to bungeni...@googlegroups.com, Samar Ayesh
Can you also attach and send your install.xml file ?

Samar Ayesh

unread,
Feb 4, 2013, 4:08:45 AM2/4/13
to bungeni...@googlegroups.com, Samar Ayesh
Here it is ..
install.xml

Ashok Hariharan

unread,
Feb 4, 2013, 6:33:17 AM2/4/13
to bungeni...@googlegroups.com, Samar Ayesh
Hi Samar --

I can see various issues , related to the config folder and workspace i had mentioned earlier

1 ) if you look at installation\base\settings\config.xml - the birzeit_configs section looks like this :


  <config name="birzeit-configs"
    title="Act Bungeni Development"
    url="http://bungeni-editor.googlecode.com/svn/BungeniEditor_configs/birzeit-configs.zip"
    folder-base="../../BungeniEditor_configs/birzeit_configs"
    receiver="org.bungeni.editor.input.FSDocumentReceiver"
     default="true" 
    />

the folder base is pointing to a folder that does not exist . i..e you need to package the config folder with the izpack build

2) If you look at workspace.properties in installation\base\settings you will find a setting :

workspace = ../editor_workspace

You need to change the installation scripts to account for 1) and 2) (earlier the paths were hard-coded, but now these paths can be set to any folder and need to be writeable folders by the user. )

So you would need a UserInputPanel to the IzPack installation script :

See http://izpack.org/documentation/user-input.html

and allow the user to select the path where they want to the setup the workspace and the config folder.

The config folder will need to be shipped as a <pack> in the IzPack install.xml ...

I think its not difficult to do this , let me know if you have any problems ...

Ashok

Samar Ayesh

unread,
Feb 4, 2013, 7:26:26 AM2/4/13
to bungeni...@googlegroups.com, Samar Ayesh
Sorry Ashok but it seems that I understood only 10%

for step 1)
I copied BungeniEditor_configs folder to install.jar installation path ..
I changed into config.xml to >>

 <config name="birzeit-configs"
    title="Act Bungeni Development"
    folder-base="BungeniEditor_configs/birzeit_configs"
    receiver="org.bungeni.editor.input.FSDocumentReceiver"
     default="true" 
    />

  Is it true?

I didn't understand except I added userInputSpec.xml to install folder and added it's resource to install.xml >>
<res id="userInputSpec.xml" src="userInputSpec.xml" />

what should I get ?


<config name="birzeit-configs"
    title="Act Bungeni Development"
    folder-base="BungeniEditor_configs/birzeit_configs"
    receiver="org.bungeni.editor.input.FSDocumentReceiver"
     default="true" 
    />

Ashok Hariharan

unread,
Feb 4, 2013, 7:47:37 AM2/4/13
to bungeni...@googlegroups.com, Samar Ayesh
On 4 February 2013 15:26, Samar Ayesh <smr....@gmail.com> wrote:
Sorry Ashok but it seems that I understood only 10%

for step 1)
I copied BungeniEditor_configs folder to install.jar installation path ..
I changed into config.xml to >>

 <config name="birzeit-configs"
    title="Act Bungeni Development"
    folder-base="BungeniEditor_configs/birzeit_configs"
    receiver="org.bungeni.editor.input.FSDocumentReceiver"
     default="true" 
    />

  Is it true?


That step is fine .. but IzPack has no idea that you want to use this folder ... so you need to declare it as a "<pack>" in the install.xml configuration. See the IzPack manual / example package configurations or even the install.xml i wrote ... which has the pack for the base defined.


 
I didn't understand except I added userInputSpec.xml to install folder and added it's resource to install.xml >>
<res id="userInputSpec.xml" src="userInputSpec.xml" />


So your UserINput Panel will have to have declared fields to accept input for workspace folder and config folder paths,

and you will have to plug it in between in the list of panels in install.xml

  <panels>
        <panel classname="HelloPanel"/>
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="PacksPanel"/>
      <!-- MAYBE HERE -->
    <panel classname="SummaryPanel"/>
        <panel classname="InstallPanel"/>
    <panel classname="ShortcutPanel" />
     <panel classname="SimpleFinishPanel" />
    </panels>

 

what should I get ?


<config name="birzeit-configs"
    title="Act Bungeni Development"
    folder-base="BungeniEditor_configs/birzeit_configs"
    receiver="org.bungeni.editor.input.FSDocumentReceiver"
     default="true" 
    />

On Tuesday, January 29, 2013 12:11:46 PM UTC+2, Ashok Hariharan wrote:
Sure there is the IZPack installer ...

http://bungeni-editor.googlecode.com/svn/BungeniEditor/trunk/BungeniEditorClient/installer/

(Actually I need to update it since we split up the configuration access into a different folder .. )

Basically you download and install IzPack (http://www.izpack.org)

copy the installer folder into the izpack folder .

create a folder called base within the installer folder and copy everything generated in the dist folder of bungeni editor into base.

and then you can simply run  ..\bin\compile in the installer folder to generate the installer package.

See the manual of IzPack on how to customize the installer ...

Ashok


On 29 January 2013 12:51, Samar Ayesh <smr....@gmail.com> wrote:
Hello Ashok,

Is there a software that can take BCE project jar file and generate a desktop application that can be installed on other computers for lawyers to use ?

--
 ___________________________
 Samar Ayesh

Samar Ayesh

unread,
Feb 5, 2013, 2:23:56 AM2/5/13
to bungeni...@googlegroups.com, Samar Ayesh
Great Ashok it's working now :)
but some combo-boxes have symbols rather than arabic letters .. I will look for it 

Ashok Hariharan

unread,
Feb 5, 2013, 2:53:57 AM2/5/13
to bungeni...@googlegroups.com, Samar Ayesh
On 5 February 2013 10:23, Samar Ayesh <smr....@gmail.com> wrote:
Great Ashok it's working now :)

Cool ... If you could please commit your install.xml in to this folder : 


it would save me a lot of work !
 
but some combo-boxes have symbols rather than arabic letters .. I will look for it 


Perhaps you need to provide a resource pack with arabic strings (and have english message strings as default  in the install.xml file ... i think the i18n message infrascture requires english character set in message strings ...  

See :
 

Samar Ayesh

unread,
Feb 5, 2013, 4:01:07 AM2/5/13
to bungeni...@googlegroups.com, Samar Ayesh
But there are some arabic strings that appear correctly into combo-boxes!

Samar Ayesh

unread,
Feb 5, 2013, 4:18:32 AM2/5/13
to bungeni...@googlegroups.com, Samar Ayesh
I attached install.xml here .. I tried to commit it but svn tells me that authentication failed .. even though I checked username , password, proxy !!
install.xml

Samar Ayesh

unread,
Feb 5, 2013, 6:03:33 AM2/5/13
to bungeni...@googlegroups.com, Samar Ayesh
oh, just noticed that xml file can't be generated .. failure in transforming ...
it could be a work-space problem ?
cause I didn't notice any thing in panels asking me for workspace path..
how could I be sure about this issue?

Ashok Hariharan

unread,
Feb 5, 2013, 9:41:47 AM2/5/13
to bungeni...@googlegroups.com, Samar Ayesh
Can you send the userInputSpec.xml ? 

You will need to ask the user for 2 things (apart from whats already being asked ) :

 - path to workspace
 - path to config installation 

Ashok

Samar Ayesh

unread,
Feb 6, 2013, 2:10:03 AM2/6/13
to bungeni...@googlegroups.com, Samar Ayesh
Yes there's a panel asking for config installation path, but there's no one for workspace !
userInputSpec.xml

Ashok Hariharan

unread,
Feb 6, 2013, 2:41:14 AM2/6/13
to bungeni...@googlegroups.com

Let me take a look at this ... 

Ashok

Ashok Hariharan

unread,
Feb 7, 2013, 2:27:33 AM2/7/13
to bungeni...@googlegroups.com
See this wiki page

<http://code.google.com/p/bungeni-editor/wiki/HowTo_GenerateIzPackInstaller>

I updated the installer script install.xml to support selection of workspace and configuration folders during installation. The installation process also updates the workpace.properties and configs.xml file during installation to dynamically point it to the right folder.

Ashok

Samar Ayesh

unread,
Feb 7, 2013, 5:27:12 AM2/7/13
to bungeni...@googlegroups.com
Every thing is ok .. it asked me for config and workspace paths ...
but why exporting to xml failed?

attached odt file saved to workspace located ..
PS_leg_ActType_ActY_ActNo.odt

Samar Ayesh

unread,
Feb 7, 2013, 7:57:43 AM2/7/13
to bungeni...@googlegroups.com
Hello Ashok,

      Just checked bungeni-editor updates .. my project was out of date .. I added json-simple and update folders till the editor is working again ..
       but generating xml file fails every time !!

Ashok Hariharan

unread,
Feb 11, 2013, 2:02:16 AM2/11/13
to bungeni...@googlegroups.com
On 7 February 2013 15:57, Samar Ayesh <smr....@gmail.com> wrote:
Hello Ashok,

      Just checked bungeni-editor updates .. my project was out of date .. I added json-simple and update folders till the editor is working again ..
       but generating xml file fails every time !!




Did you rebuild the editor before packaging .. I changed the way it resolves paths in configs.xml and workspace.properties to make it more compatible with Windows 7 (see http://code.google.com/p/bungeni-editor/source/detail?spec=svn2936&r=2904 ) 

Other than it could be something broken in your configuration ( I have a configuration validator which I am implementing ..which will catch these kinds of errors at startup ) 
Ashok

Samar Ayesh

unread,
Feb 11, 2013, 3:14:49 AM2/11/13
to bungeni...@googlegroups.com
config.xml is updated .. generating xml file fails on my editor .. 
this is the exception:

ERROR org.bungeni.translators.translator.OATranslator  - Error in setupTranslatorConfiguration 
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

Ashok Hariharan

unread,
Feb 11, 2013, 4:23:32 AM2/11/13
to bungeni...@googlegroups.com
On 11 February 2013 11:14, Samar Ayesh <smr....@gmail.com> wrote:
config.xml is updated .. generating xml file fails on my editor .. 
this is the exception:

ERROR org.bungeni.translators.translator.OATranslator  - Error in setupTranslatorConfiguration 
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.


thats possibly a wrong configuration error ... can you see config folder/system/errors and see whats written the error log (if anything ) 

Ashok

Samar Ayesh

unread,
Feb 11, 2013, 4:40:11 AM2/11/13
to bungeni...@googlegroups.com
it's attached ..
config_generator_errors.xml

Ashok Hariharan

unread,
Feb 11, 2013, 4:49:38 AM2/11/13
to bungeni...@googlegroups.com
OK its very clear what the problem is : 

See the config generator log you sent me, the middleware didnt get generated because the config_tmpl.xml file was out of date.

This is the file in system/templates in the config folder... you should always update this from externals and not have a local copy (also check if the other file meta_language_add_mlx_ns.tmpl is upto date ) 
<?xml version="1.0" encoding="UTF-8"?>
<errors date="Mon Feb 11 10:12:05 IST 2013"><error doctype="act"><message>Error while generating configuration file </message><exception>&#xD;
Expression sys_trans_path is undefined on line 21, column 21 in config_tmpl.xml.&#xD;
The problematic instruction:&#xD;
----------&#xD;
==&gt; ${sys_trans_path} [on line 21, column 19 in config_tmpl.xml]&#xD;
----------&#xD;
&#xD;
Java backtrace for programmers:&#xD;
----------&#xD;
freemarker.core.InvalidReferenceException: Expression sys_trans_path is undefined on line 21, column 21 in config_tmpl.xml.&#xD;
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)&#xD;
	at freemarker.core.Expression.getStringValue(Expression.java:118)&#xD;
	at freemarker.core.Expression.getStringValue(Expression.java:93)&#xD;
	at freemarker.core.DollarVariable.accept(DollarVariable.java:76)&#xD;
	at freemarker.core.Environment.visit(Environment.java:221)&#xD;
	at freemarker.core.MixedContent.accept(MixedContent.java:92)&#xD;
	at freemarker.core.Environment.visit(Environment.java:221)&#xD;
	at freemarker.core.Environment.process(Environment.java:199)&#xD;
	at freemarker.template.Template.process(Template.java:259)&#xD;
	at org.bungeni.editor.system.ConfigTemplateGenerator.process(ConfigTemplateGenerator.java:84)&#xD;
	at org.bungeni.editor.system.StartupConfigGenerator.startupGenerate(StartupConfigGenerator.java:159)&#xD;
	at org.bungeni.editor.BungeniEditorClient$2.run(BungeniEditorClient.java:282)&#xD;
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)&#xD;
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)&#xD;
	at java.awt.EventQueue.access$000(EventQueue.java:84)&#xD;
	at java.awt.EventQueue$1.run(EventQueue.java:607)&#xD;
	at java.awt.EventQueue$1.run(EventQueue.java:605)&#xD;
	at java.security.AccessController.doPrivileged(Native Method)&#xD;
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)&#xD;
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)&#xD;
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)&#xD;
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)&#xD;
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)&#xD;
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)&#xD;
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)&#xD;
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)&#xD;
</exception></error>

Samar Ayesh

unread,
Feb 11, 2013, 4:50:30 AM2/11/13
to bungeni...@googlegroups.com, Samar Ayesh
templates/config_tmpl.xml is out of date .. I click update on templates folder and still it's out of date .. how can get the last update?

Ashok Hariharan

unread,
Feb 11, 2013, 4:55:24 AM2/11/13
to bungeni...@googlegroups.com, Samar Ayesh
Thats because your folder :


isnt pulling the files from svn:externals, you have local copies there .

If you look at the same folder in :


you can see there are no local copies of that files , its pulled from externals 

Samar Ayesh

unread,
Feb 11, 2013, 5:03:44 AM2/11/13
to bungeni...@googlegroups.com, Samar Ayesh

Samar Ayesh

unread,
Feb 11, 2013, 5:06:28 AM2/11/13
to bungeni...@googlegroups.com, Samar Ayesh
I just did it after updating templates then committing

Ashok Hariharan

unread,
Feb 11, 2013, 5:45:12 AM2/11/13
to bungeni...@googlegroups.com, Samar Ayesh
Just do a svn delete *.* in that folder on your filesystem and check in.

then set svn:externals to point to the 2 same files from system_configs 
Reply all
Reply to author
Forward
0 new messages