[sip-comm-dev] run.bat


#1

Hi guys,
I had problem starting SIP Communicator on some computers and it was related to JRE being used. Since run.bat uses relative path to javaw.exe, it ends up using first javaw.exe found in folders in PATH variable. For example, if both Java 1.3.1 and 1.6.0 were installed, and home for 1.3.1 version was first in PATH variable, then "Could not find main class" error would be shown when trying to start SIP Communicator. I decided to find more elegant solution than having to edit PATH variable.

The solution was to find default Java version by looking into Windows registry, and using Java Home for that version to start SIP Communicator. I tested this solution on two XP Professional computers. If anyone is willing to test it on other versions of Windows it would be great. I'm attaching run.txt to this mail. Anyone wishing to try it out should rename it to run.bat and put it into folder where SIP Communicator is installed.

Zoran

run.txt (1.38 KB)

···

____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs


#2

Hello Zoran,

I just test your run.bat in Windows Vista Pro. When I run it, Windows show
one of the new "Administrator Alert" because the program try to access the
registry. But in the end, nothing happens.

If I use the original run.bat, my usual "Java VM error" appears.

Damien

···

2008/2/7, zoran_lovric@yahoo.com <zoran_lovric@yahoo.com>:

Hi guys,
I had problem starting SIP Communicator on some computers and it was
related to JRE being used. Since run.bat uses relative path to javaw.exe,
it ends up using first javaw.exe found in folders in PATH variable. For
example, if both Java 1.3.1 and 1.6.0 were installed, and home for 1.3.1version was first in PATH variable, then "Could not find main class" error
would be shown when trying to start SIP Communicator. I decided to find more
elegant solution than having to edit PATH variable.

The solution was to find default Java version by looking into Windows
registry, and using Java Home for that version to start SIP Communicator. I
tested this solution on two XP Professional computers. If anyone is willing
to test it on other versions of Windows it would be great. I'm attaching
run.txt to this mail. Anyone wishing to try it out should rename it to
run.bat and put it into folder where SIP Communicator is installed.

Zoran

------------------------------
Never miss a thing. Make Yahoo your homepage.<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>

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

--
Damien ROTH
Programmeur n.m : Celui qui résout un problème que vous n'aviez pas, d'une
façon que vous ne comprenez pas.


#3

I just commited a bugfix for following issue:

When entering a proxy with a non-standard port (not 5060) for a sip-account,
this port is not loaded, when reopening (loadValues) the firstwizardpage.
This is because the port is reset, when the value of the checkbox changes.
And the value of the checkbox is (was) set after the port was loaded into
the textfield.

Cheers, thomas


#4

Hey Thomas,

Better late than never: thanks for the fix!

Cheers
Emil

Thomas Hofer написа:

···

I just commited a bugfix for following issue:

When entering a proxy with a non-standard port (not 5060) for a
sip-account, this port is not loaded, when reopening (loadValues) the
firstwizardpage. This is because the port is reset, when the value of
the checkbox changes. And the value of the checkbox is (was) set after
the port was loaded into the textfield.

Cheers, thomas

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


#5

Hey All!
Better late than never: I committed the fix now :wink:
I wrote the mail, but I never committed it :frowning:

···

-----Ursprüngliche Nachricht-----
Von: Emil Ivov [mailto:emcho@sip-communicator.org]
Gesendet: Freitag, 07. März 2008 19:16
An: dev@sip-communicator.dev.java.net
Betreff: Re: [sip-comm-dev] Bugfix: SipAccRegWizz

Hey Thomas,

Better late than never: thanks for the fix!

Cheers
Emil

Thomas Hofer написа:
> I just commited a bugfix for following issue:
>
> When entering a proxy with a non-standard port (not 5060) for a
> sip-account, this port is not loaded, when reopening (loadValues) the
> firstwizardpage. This is because the port is reset, when the value of
> the checkbox changes. And the value of the checkbox is (was) set
after
> the port was loaded into the textfield.
>
>
>
> Cheers, thomas
>

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

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


#6

Hi Emil!

You are totally right. I'll do it right now.

And it would be a good idea to add a comment for the commit itself. I was so confused to see, that I did not commit it the first time, so I forgot to add the comment.
Probably it would be an idea to add a rule to subversion, that commits without a comment are rejected. I've seen this in my former company, and it was a good rule to avoid such mistakes.

Cheers, Thomas

···

-----Ursprüngliche Nachricht-----
Von: Emil Ivov [mailto:emcho@sip-communicator.org]
Gesendet: Dienstag, 11. März 2008 11:40
An: dev@sip-communicator.dev.java.net
Betreff: Re: AW: [sip-comm-dev] Bugfix: SipAccRegWizz

Just a thought,

It would probably be a good idea to add a comment in the source
explaining that the order in which we set the text fields is important.

I am saying this because I was quite perplexed when I first saw your
commit, and was wondering what the purpose is :slight_smile:

Cheers
Emil

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


#7

And it would be a good idea to add a comment for the commit itself. I
was so confused to see, that I did not commit it the first time, so I
forgot to add the comment. Probably it would be an idea to add a rule
to subversion, that commits without a comment are rejected. I've seen
this in my former company, and it was a good rule to avoid such
mistakes.

Interesting :). How do you do this? Is it something you configure on the
server or could you simply modify it in your local sandbox and commit it
to the repository?

Cheers
Emil

···

Cheers, Thomas

-----Ursprüngliche Nachricht----- Von: Emil Ivov
[mailto:emcho@sip-communicator.org] Gesendet: Dienstag, 11. März
2008 11:40 An: dev@sip-communicator.dev.java.net Betreff: Re: AW:
[sip-comm-dev] Bugfix: SipAccRegWizz

Just a thought,

It would probably be a good idea to add a comment in the source
explaining that the order in which we set the text fields is
important.

I am saying this because I was quite perplexed when I first saw
your commit, and was wondering what the purpose is :slight_smile:

Cheers Emil

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

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


#8

Sure. J just called the sysadmin from there. He gave me a link:
http://www.anujgakhar.com/2008/02/14/how-to-force-comments-on-svn-commit/

[I don't know, if this would be possible on java.net]

cheers

···

-----Ursprüngliche Nachricht-----
Von: Emil Ivov [mailto:emcho@emcho.com]
Gesendet: Mittwoch, 12. März 2008 08:41
An: dev@sip-communicator.dev.java.net
Betreff: Re: AW: AW: [sip-comm-dev] Bugfix: SipAccRegWizz

> And it would be a good idea to add a comment for the commit itself. I
> was so confused to see, that I did not commit it the first time, so I
> forgot to add the comment. Probably it would be an idea to add a rule
> to subversion, that commits without a comment are rejected. I've seen
> this in my former company, and it was a good rule to avoid such
> mistakes.

Interesting :). How do you do this? Is it something you configure on
the
server or could you simply modify it in your local sandbox and commit
it
to the repository?

Cheers
Emil

>
> Cheers, Thomas
>
>> -----Ursprüngliche Nachricht----- Von: Emil Ivov
>> [mailto:emcho@sip-communicator.org] Gesendet: Dienstag, 11. März
>> 2008 11:40 An: dev@sip-communicator.dev.java.net Betreff: Re: AW:
>> [sip-comm-dev] Bugfix: SipAccRegWizz
>>
>> Just a thought,
>>
>> It would probably be a good idea to add a comment in the source
>> explaining that the order in which we set the text fields is
>> important.
>>
>> I am saying this because I was quite perplexed when I first saw
>> your commit, and was wondering what the purpose is :slight_smile:
>>
>> Cheers Emil
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@sip-communicator.dev.java.net For additional
> commands, e-mail: dev-help@sip-communicator.dev.java.net
>
>

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

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


#9

Hey Thomas,

Just checked and unfortunately I don't think we have access to svn hooks
on java.net.

Any other ideas?
Emil

Thomas Hofer написа:

···

Sure. J just called the sysadmin from there. He gave me a link:
http://www.anujgakhar.com/2008/02/14/how-to-force-comments-on-svn-commit/

[I don't know, if this would be possible on java.net]

cheers

-----Ursprüngliche Nachricht-----
Von: Emil Ivov [mailto:emcho@emcho.com]
Gesendet: Mittwoch, 12. März 2008 08:41
An: dev@sip-communicator.dev.java.net
Betreff: Re: AW: AW: [sip-comm-dev] Bugfix: SipAccRegWizz

And it would be a good idea to add a comment for the commit itself. I
was so confused to see, that I did not commit it the first time, so I
forgot to add the comment. Probably it would be an idea to add a rule
to subversion, that commits without a comment are rejected. I've seen
this in my former company, and it was a good rule to avoid such
mistakes.

Interesting :). How do you do this? Is it something you configure on
the
server or could you simply modify it in your local sandbox and commit
it
to the repository?

Cheers
Emil

Cheers, Thomas

-----Ursprüngliche Nachricht----- Von: Emil Ivov
[mailto:emcho@sip-communicator.org] Gesendet: Dienstag, 11. März
2008 11:40 An: dev@sip-communicator.dev.java.net Betreff: Re: AW:
[sip-comm-dev] Bugfix: SipAccRegWizz

Just a thought,

It would probably be a good idea to add a comment in the source
explaining that the order in which we set the text fields is
important.

I am saying this because I was quite perplexed when I first saw
your commit, and was wondering what the purpose is :slight_smile:

Cheers Emil

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

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

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

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