Skip to main content

Personal profile, Parameters file

6 replies [Last post]
jldominguez
Offline
Joined: 2008-01-02
Points: 0

There is no room in 255 characters for all my VM parameters and app parameters, so I'm trying this:

254#"\phoneme\personal\bin\cvm.exe" -Xoptionsfile=\gvSIGMobile\phoneme.opt es.prodevelop.gvsig.mobile.app.Launcher s=240x294 language=es path="\gvSIGMobile"

and here is \gvSIGMobile\phoneme.opt:

-Xopt:useLargeMemoryArea=true
-Xmx32m
-Xbootclasspath/a:\gvSIGMobile\boot\boot.jar
-cp "\gvSIGMobile\class\all.jar"
-Djava.library.path="\gvSIGMobile\lib"

But it's not working. Any ideas?

Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> There is no room in 255 characters for all my VM parameters and app parameters, so I'm trying this:
>
> 254#"\phoneme\personal\bin\cvm.exe" -Xoptionsfile=\gvSIGMobile\phoneme.opt es.prodevelop.gvsig.mobile.app.Launcher s=240x294 language=es path="\gvSIGMobile"
>
> and here is \gvSIGMobile\phoneme.opt:
>
> -Xopt:useLargeMemoryArea=true
> -Xmx32m
> -Xbootclasspath/a:\gvSIGMobile\boot\boot.jar
> -cp "\gvSIGMobile\class\all.jar"
> -Djava.library.path="\gvSIGMobile\lib"
>

Try using "-f" to point to your options file instead:

Ex.

254#"\phoneme\personal\bin\cvm.exe" -f "\gvSIGMobile\phoneme.opt"

Inside \gvSIGMobile\phoneme.opt:
---

-Xopt:useLargeMemoryArea=true
-Xmx32m
-Xbootclasspath/a:\gvSIGMobile\boot\boot.jar
-cp "\gvSIGMobile\class\all.jar"
-Djava.library.path="\gvSIGMobile\lib"
es.prodevelop.gvsig.mobile.app.Launcher s=240x294 language=es path="\gvSIGMobile"

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

jldominguez
Offline
Joined: 2008-01-02
Points: 0

Hello. Thanks, yes, the parameters was -f as you said. But I still have one little problem.

The parameters:

-Xopt:useLargeMemoryArea=true -Xmx32m

only work when they are NOT in the parameters file. If I inlude them in the parameters file, the VM does not start, and I think it's because it does not accept the -Xopt:useLargeMemoryArea=true inside the parameters file (if I remove that parameter, the VM starts with the parameters file without a problem). I have also tried to place some parameters outside the parameter file, like this:

254#"\phoneme\personal\bin\cvm.exe" -Xopt:useLargeMemoryArea=true -Xmx32m -f "\gvSIGMobile\phoneme.opt" es.prodevelop.gvsig.mobile.app.Launcher language=es path="\gvSIGMobile"

\gvSIGMobile\phoneme.opt:

===========
-Xbootclasspath/a:\gvSIGMobile\boot\boot.jar
-cp "\gvSIGMobile\class\all.jar"
-Djava.library.path="\gvSIGMobile\lib"
===========

But it does not work either :(

Any ideas?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello. Thanks, yes, the parameters was -f as you said. But I still have one little problem.
> ...
>
> But it does not work either :(
>
> Any ideas?
>

Try this instead (NOTE: nothing after the -f is read in the .lnk
line, so the parameters (es.prodevelop.gvsig.mobile.app.Launcher
language=es path="\gvSIGMobile") in your example are not read in.
Instead they need to appear at the end of your phoneme.opt file, like in
this example)

254#"\phoneme\personal\bin\cvm.exe" -Xopt:useLargeMemoryArea=true -Xmx32m -f "\gvSIGMobile\phoneme.opt"

\gvSIGMobile\phoneme.opt:
===========
-Xbootclasspath/a:\gvSIGMobile\boot\boot.jar
-cp "\gvSIGMobile\class\all.jar"
-Djava.library.path="\gvSIGMobile\lib"
es.prodevelop.gvsig.mobile.app.Launcher language=es path="\gvSIGMobile"
===========

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

cjplummer
Offline
Joined: 2006-10-16
Points: 0

If the VM does not start, it is probably because you are making the heap bigger than the available memory. This would actually be an indication that -Xopt:useLargeMemoryArea=true and -Xmx32m are working.

Options after the -f option should work. I just tried it on WinXP with no problem. Make sure you don't use -f or -Xopt more than once on the command line or in the options file.

Chris

jldominguez
Offline
Joined: 2008-01-02
Points: 0

Yipieeeee!!!

I have finally found the way to make it work. I don't know why I insisted in putting each parameter in a different line in the options file. I saw somewhere an options file written by Davy and he was putting everything in one line. So here is the solution:

This is go_phoneme.lnk:

254#"\phoneme\personal\bin\cvm.exe" -f "\gvSIGMobile\phoneme.opt"

And this is \gvSIGMobile\phoneme.opt (no line feeds):

-Xopt:useLargeMemoryArea=true -Xmx32m -Xbootclasspath/a:\gvSIGMobile\boot\boot.jar -cp "\gvSIGMobile\class\all.jar" -Djava.library.path=\gvSIGMobile\lib es.prodevelop.gvsig.mobile.app.Launcher l=es p="\gvSIGMobile"

Thank you all !!
Lucas

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Yipieeeee!!!
>
> I have finally found the way to make it work. I don't know why I insisted in putting each parameter in a different line in the options file. I saw somewhere an options file written by Davy and he was putting everything in one line. So here is the solution:
>

Hi Lucas,

Good to hear you have that working now! Please let us all know how the
gvSIGMobile project progresses and how using it on phoneME to run it on
a WinMobile device is for you.

Maybe give us a demo on YouTube if you have the time...

Thanks,
Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net