Editing OmegaT batch file Tópico cartaz: Andy S
| Andy S Reino Unido Local time: 04:48 alemão para inglês
I have installed the latest version of OmegaT and now find the TM file for my latest project is too big for the memory.
I understand I need to edit the batch file to increase the memory, but where do I find it exactly please? | | | Selcuk Akyuz Turquia Local time: 07:48 inglês para turco + ... Additional information please | Nov 5, 2008 |
Hi Andrew,
I can not answer your question but additional information may be helpful.
What is your operating system Windows (XP, Vista), Linux or Mac?
And about the latest build of OmegaT, is it the Beta version 1.8.1?
[Edited at 2008-11-05 11:44] | | | esperantisto Local time: 07:48 Membro (2006) inglês para russo + ... SITE LOCALIZER You can't do anyhing about TM size, | Nov 5, 2008 |
but you can increase the initial Java memory size as follows (make a batch file containing the following string and put it into the directory where OmegaT.jar resides):
Code:
| java -server -Xmx256m -jar OmegaT.jar |
|
Try experimenting with the second parameter, by replacing 256 wit... See more but you can increase the initial Java memory size as follows (make a batch file containing the following string and put it into the directory where OmegaT.jar resides):
Code:
| java -server -Xmx256m -jar OmegaT.jar |
|
Try experimenting with the second parameter, by replacing 256 with another value in megabytes (a rule of finger: set double to your RAM).
[Edited at 2008-11-05 12:14] ▲ Collapse | | | Andy S Reino Unido Local time: 04:48 alemão para inglês CRIADOR(A) DO TÓPICO
Hi thanks for these.
I am running Windows XP and OmegaT 1.8.1 beta, plus the latest version of Java.
I have now located the MS DOS batch file. When I open it up I see there is only one line in it however - re\bin\javaw -jar OmegaT.jar %*
Can I type the code you quoted in here instead of making a batch file, please?
If not, how do I make a batch file?
TIA | |
|
|
esperantisto Local time: 07:48 Membro (2006) inglês para russo + ... SITE LOCALIZER You can do both | Nov 5, 2008 |
Either replace the code of the existing file with my sample, or open a text editor paste into it my line and save as anyfilename.bat. Good luck! | | | Andy S Reino Unido Local time: 04:48 alemão para inglês CRIADOR(A) DO TÓPICO
Thanks, did exactly as you suggest - same problem.
I replaced the line in the batch file with the line you gave me. I even increased the size to 512. Have I done something wrong here?
BTW the TM file size is 14.3MB. | | | esperantisto Local time: 07:48 Membro (2006) inglês para russo + ... SITE LOCALIZER Give more detail | Nov 5, 2008 |
What exactly is your problem? | | | Didier Briel França Local time: 05:48 inglês para francês + ... No batch file in 1.8.1 | Nov 5, 2008 |
Andy S wrote:
I am running Windows XP and OmegaT 1.8.1 beta, plus the latest version of Java.
I have now located the MS DOS batch file. When I open it up I see there is only one line in it however - re\bin\javaw -jar OmegaT.jar %*
Can I type the code you quoted in here instead of making a batch file, please?
If not, how do I make a batch file?
1.8.1 for Windows contains no batch file, and it isn't needed.
To change runtime settings, edit the file OmegaT.l4J.ini.
Inside, there's a line
#-Xmx1024M
Uncomment it (remove the #), and adapt the number to the memory you want.
Didier | |
|
|
esperantisto Local time: 07:48 Membro (2006) inglês para russo + ... SITE LOCALIZER Gee, I've missed the news :-)))) | Nov 5, 2008 |
Didier Briel wrote:
1.8.1 for Windows contains no batch file, and it isn't needed.
But you still can use a batch file to run OmegaT. | | | Andy S Reino Unido Local time: 04:48 alemão para inglês CRIADOR(A) DO TÓPICO Not there yet | Nov 5, 2008 |
Thanks Didier and Esperantisto. Have tried adapting the file Didier suggests (to 2048) , and changed the line in the batch file too. Still no joy. | | | Didier Briel França Local time: 05:48 inglês para francês + ... The ini files only concern OmegaT.exe | Nov 5, 2008 |
find the TM file for my latest project is too big for the memory
Which version was it?
There has not been a significant memory consumption difference since OmegaT 1.6.
re\bin\javaw -jar OmegaT.jar %*
This would tend to mean that, previously, you were using the "embedded" JRE included with some versions of OmegaT.
Which version of Java do you use?
If you are unsure, you should install OmegaT for Windows *with* Java, which I am sure contains a decently recent JRE.
Andy S wrote:
Have tried adapting the file Didier suggests (to 2048) ,
Depending on your machine, 2048 may be refused by Java, and thus not be taken into account. Have you tried with 1024?
and changed the line in the batch file too. Still no joy.
The change in the ini file only applies if OmegaT is launched using OmegaT.exe.
Conversely, the change in the batch file only applies if you use the batch file, not if you launch the .exe or OmegaT.jar directly.
Didier | | | Dragomir Kovacevic (X) Itália Local time: 05:48 italiano para sérvio + ... make a link to the original bat file | Nov 5, 2008 |
Andy S wrote:
Thanks, did exactly as you suggest - same problem.
I replaced the line in the batch file with the line you gave me. I even increased the size to 512. Have I done something wrong here?
BTW the TM file size is 14.3MB.
hello, no use to modify the source bat file in OmegaT programme folder. Make a link to it. In the link, make an addition, so that all should look like:
java -Xmx512M -Duser.language=en -jar OmegaT.jar %*
the above will suffice.
Then you can copy the bat file once again into a place you wish to see it in: desktop, for example
take note that the "en" here is for english. Put in the another code for another language for the UI you want to use, in case it is translated.
D | |
|
|
esperantisto Local time: 07:48 Membro (2006) inglês para russo + ... SITE LOCALIZER But again, what's exactly the problem? | Nov 6, 2008 |
I used to work with even larger files with even older versions of OmegaT without any particular problem (other than slooooow loading on my machine). | | | Andy S Reino Unido Local time: 04:48 alemão para inglês CRIADOR(A) DO TÓPICO Another day, a solution | Nov 6, 2008 |
OK, issue is now resolved.
For good measure I startred afresh to ensure leaving no legacy alterations form yesterday.
Uninstalled and then re-downloaded OmegaT.
Removed # and altered the line in OmegaT.l4J.ini as per instructions - to 2048.
Did not work.
Changed figure back to 1024 and hey presto, it worked. The TM took ages to load - 14MB file.
Thanks to all who helped with this.
Re: Esparantisto's quest... See more OK, issue is now resolved.
For good measure I startred afresh to ensure leaving no legacy alterations form yesterday.
Uninstalled and then re-downloaded OmegaT.
Removed # and altered the line in OmegaT.l4J.ini as per instructions - to 2048.
Did not work.
Changed figure back to 1024 and hey presto, it worked. The TM took ages to load - 14MB file.
Thanks to all who helped with this.
Re: Esparantisto's question: The exact error message is gone and even trying to bring it back by restoring the # temporarily does not now bring it back. Curious. Anyway the gist was that there was not enough memory to run OmegaT and that I should edit the omegaT.bat file in exactly the manner you prescribed. ▲ Collapse | | | Não há um moderador designado especificamente para este fórum. Para reportar violações às regras do site ou para obter ajuda, favor contatar a equipe do site » Editing OmegaT batch file Protemos translation business management system | Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!
The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.
More info » |
| Wordfast Pro | Translation Memory Software for Any Platform
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value
Buy now! » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |