Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #16149 > unrolled thread

Execution using javaw differs from Windows 7 default

Started byGordon Levi <gordon@address.invalid>
First post2012-07-21 00:55 +1000
Last post2012-07-23 01:01 +1000
Articles 11 — 7 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Execution using javaw differs from Windows 7 default Gordon Levi <gordon@address.invalid> - 2012-07-21 00:55 +1000
    Re: Execution using javaw differs from Windows 7 default Lew <lewbloch@gmail.com> - 2012-07-20 10:52 -0700
      Re: Execution using javaw differs from Windows 7 default Roedy Green <see_website@mindprod.com.invalid> - 2012-07-20 21:20 -0700
        Re: Execution using javaw differs from Windows 7 default David <usenet1@profectus.com.au> - 2012-07-22 02:16 +1000
          Re: Execution using javaw differs from Windows 7 default Roedy Green <see_website@mindprod.com.invalid> - 2012-07-21 16:11 -0700
      Re: Execution using javaw differs from Windows 7 default Gordon Levi <gordon@address.invalid> - 2012-07-22 02:11 +1000
        Re: Execution using javaw differs from Windows 7 default Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-07-21 16:50 +0000
          Re: Execution using javaw differs from Windows 7 default Luuk <luuk@invalid.lan> - 2012-07-21 19:58 +0200
        Re: Execution using javaw differs from Windows 7 default Luuk <luuk@invalid.lan> - 2012-07-21 19:56 +0200
        Re: Execution using javaw differs from Windows 7 default Lew <noone@lewscanon.com> - 2012-07-21 23:36 -0700
        Re: Execution using javaw differs from Windows 7 default Gordon Levi <gordon@address.invalid> - 2012-07-23 01:01 +1000

#16149 — Execution using javaw differs from Windows 7 default

FromGordon Levi <gordon@address.invalid>
Date2012-07-21 00:55 +1000
SubjectExecution using javaw differs from Windows 7 default
Message-ID<ejqi08dqgmucr16mputrt5kco7fkqbg1gg@4ax.com>
I have an application that uses the JDBC-ODBC driver that worked in
the (Netbeans) IDE but failed to find the (Access) database when using
the default file association under Windows 7. In the hope of getting
some more information I ran the application in a command line window
using javaw and it worked.

In summary, clicking on a shortcut to "C:\src\myapp\dist\myapp.jar"
file in Windows 7 failed because it did not find my database although
it invoked myapp. Clicking on a shortcut to
"C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
works. Can someone explain why?

In case it is relevant, I did try the jar file's directory and the
database directory for the "Start in:" directory.

[toc] | [next] | [standalone]


#16159

FromLew <lewbloch@gmail.com>
Date2012-07-20 10:52 -0700
Message-ID<8b5bc369-00f2-48ee-b6d7-9119d08ebb41@googlegroups.com>
In reply to#16149
Gordon Levi wrote:
> I have an application that uses the JDBC-ODBC driver that worked in
> the (Netbeans) IDE but failed to find the (Access) database when using
> the default file association under Windows 7. In the hope of getting
> some more information I ran the application in a command line window
> using javaw and it worked.
> 
> In summary, clicking on a shortcut to &quot;C:\src\myapp\dist\myapp.jar&quot;
> file in Windows 7 failed because it did not find my database although
> it invoked myapp. Clicking on a shortcut to
> "C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
> works. Can someone explain why?
> 
> In case it is relevant, I did try the jar file's directory and the
> database directory for the "Start in:" directory.

Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".

What exactly is your associated command for JAR files?

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#16175

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-07-20 21:20 -0700
Message-ID<fbbk081qarnaaup6uiukf83532s4cda97g@4ax.com>
In reply to#16159
On Fri, 20 Jul 2012 10:52:14 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>What exactly is your associated command for JAR files?

see http://mindprod.com/jgloss/association.html for how to find out.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The greatest shortcoming of the human race is our inability to understand the exponential function. 
 ~ Dr. Albert A. Bartlett (born: 1923-03-21 age: 89)
http://www.youtube.com/watch?v=F-QA2rkpBSY

[toc] | [prev] | [next] | [standalone]


#16186

FromDavid <usenet1@profectus.com.au>
Date2012-07-22 02:16 +1000
Message-ID<36ll089s24ft9k4p02utlna9ecluc585m6@4ax.com>
In reply to#16175
Roedy Green <see_website@mindprod.com.invalid> wrote:

>On Fri, 20 Jul 2012 10:52:14 -0700 (PDT), Lew <lewbloch@gmail.com>
>wrote, quoted or indirectly quoted someone who said :
>
>>What exactly is your associated command for JAR files?
>
>see http://mindprod.com/jgloss/association.html for how to find out.

That does not seem to answer Lew's question in Windows 7.

[toc] | [prev] | [next] | [standalone]


#16201

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-07-21 16:11 -0700
Message-ID<5gcm08ppe8137cgktt7udrh9fhdnja68mb@4ax.com>
In reply to#16186
On Sun, 22 Jul 2012 02:16:15 +1000, David <usenet1@profectus.com.au>
wrote, quoted or indirectly quoted someone who said :

>>>What exactly is your associated command for JAR files?
>>
>>see http://mindprod.com/jgloss/association.html for how to find out.
>
>That does not seem to answer Lew's question in Windows 7.

oops. I have updated them to put the more recent methods on top.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The greatest shortcoming of the human race is our inability to understand the exponential function. 
 ~ Dr. Albert A. Bartlett (born: 1923-03-21 age: 89)
http://www.youtube.com/watch?v=F-QA2rkpBSY

[toc] | [prev] | [next] | [standalone]


#16185

FromGordon Levi <gordon@address.invalid>
Date2012-07-22 02:11 +1000
Message-ID<vnkl081hl6j3voqnrl68pufm0lcf7rr05p@4ax.com>
In reply to#16159
Lew <lewbloch@gmail.com> wrote:

>Gordon Levi wrote:
>> I have an application that uses the JDBC-ODBC driver that worked in
>> the (Netbeans) IDE but failed to find the (Access) database when using
>> the default file association under Windows 7. In the hope of getting
>> some more information I ran the application in a command line window
>> using javaw and it worked.
>> 
>> In summary, clicking on a shortcut to &quot;C:\src\myapp\dist\myapp.jar&quot;
>> file in Windows 7 failed because it did not find my database although
>> it invoked myapp. Clicking on a shortcut to
>> "C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
>> works. Can someone explain why?
>> 
>> In case it is relevant, I did try the jar file's directory and the
>> database directory for the "Start in:" directory.
>
>Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".
>
>What exactly is your associated command for JAR files?

I think if I knew that "exactly" I might have been able to answer my
own question. Window 7 shows it as a pretty Java icon with a
description of "Java(TM) Platform SE binary".

[toc] | [prev] | [next] | [standalone]


#16188

FromAndreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date2012-07-21 16:50 +0000
Message-ID<slrnk0lnf9.u9l.avl@gamma.logic.tuwien.ac.at>
In reply to#16185
Gordon Levi <gordon@address.invalid> wrote:
> Lew wrote:
>> Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".
>> What exactly is your associated command for JAR files?
> I think if I knew that "exactly" I might have been able to answer my
> own question.

Maybe one needs to check in the registry...
Does regedit.exe still exist on Windows 7?
Is the "Execute..." item still in the start-menu?
(Does the start-menu still exist?)

I don't really know.  I don't have a Windows 7 machine at hand.

[toc] | [prev] | [next] | [standalone]


#16196

FromLuuk <luuk@invalid.lan>
Date2012-07-21 19:58 +0200
Message-ID<677rd9-6t5.ln1@luuk.invalid.lan>
In reply to#16188
On 21-07-2012 18:50, Andreas Leitgeb wrote:
> Gordon Levi <gordon@address.invalid> wrote:
>> Lew wrote:
>>> Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".
>>> What exactly is your associated command for JAR files?
>> I think if I knew that "exactly" I might have been able to answer my
>> own question.
> 
> Maybe one needs to check in the registry...
> Does regedit.exe still exist on Windows 7?

of course, Microsfot won't let that precious tool go!

> Is the "Execute..." item still in the start-menu?

not it's called 'Run..' from some time now.. ;)

> (Does the start-menu still exist?)

Yeas, how would someone shutdown his computer, i was learned to start
pressing teh 'start' button for that.... ;)

> 
> I don't really know.  I don't have a Windows 7 machine at hand.
> 

(sigh)....

[toc] | [prev] | [next] | [standalone]


#16195

FromLuuk <luuk@invalid.lan>
Date2012-07-21 19:56 +0200
Message-ID<f37rd9-6t5.ln1@luuk.invalid.lan>
In reply to#16185
On 21-07-2012 18:11, Gordon Levi wrote:
> Lew <lewbloch@gmail.com> wrote:
> 
>> Gordon Levi wrote:
>>> I have an application that uses the JDBC-ODBC driver that worked in
>>> the (Netbeans) IDE but failed to find the (Access) database when using
>>> the default file association under Windows 7. In the hope of getting
>>> some more information I ran the application in a command line window
>>> using javaw and it worked.
>>>
>>> In summary, clicking on a shortcut to &quot;C:\src\myapp\dist\myapp.jar&quot;
>>> file in Windows 7 failed because it did not find my database although
>>> it invoked myapp. Clicking on a shortcut to
>>> "C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
>>> works. Can someone explain why?
>>>
>>> In case it is relevant, I did try the jar file's directory and the
>>> database directory for the "Start in:" directory.
>>
>> Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".
>>
>> What exactly is your associated command for JAR files?
> 
> I think if I knew that "exactly" I might have been able to answer my
> own question. Window 7 shows it as a pretty Java icon with a
> description of "Java(TM) Platform SE binary".
> 

on a comman-prompt try this:
O:\>assoc .jar
.jar=jarfile

O:\>ftype jarfile
jarfile="C:\Program Files\Java\jre7\bin\javaw.exe" -jar "%1" %*

O:\>

(after the 'ftype' specify the output of the first command)

The output of this second line is the command that is executed when you
double click a jar-file.
The above output show what will be executed if i do this on MY computer,
repeat the steps to show what will be executed on YOUR computer.

[toc] | [prev] | [next] | [standalone]


#16207

FromLew <noone@lewscanon.com>
Date2012-07-21 23:36 -0700
Message-ID<jug71d$mmi$2@news.albasani.net>
In reply to#16185
Gordon Levi wrote:
> Lew wrote:
>> Gordon Levi wrote:
>>> I have an application that uses the JDBC-ODBC driver that worked in
>>> the (Netbeans) IDE but failed to find the (Access) database when using
>>> the default file association under Windows 7. In the hope of getting
>>> some more information I ran the application in a command line window
>>> using javaw and it worked.
>>>
>>> In summary, clicking on a shortcut to &quot;C:\src\myapp\dist\myapp.jar&quot;
>>> file in Windows 7 failed because it did not find my database although
>>> it invoked myapp. Clicking on a shortcut to
>>> "C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
>>> works. Can someone explain why?
>>>
>>> In case it is relevant, I did try the jar file's directory and the
>>> database directory for the "Start in:" directory.
>>
>> Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".
>>
>> What exactly is your associated command for JAR files?
>
> I think if I knew that "exactly" I might have been able to answer my

Then maybe you should find out and answer it.

> own question. Window 7 shows it as a pretty Java icon with a
> description of "Java(TM) Platform SE binary".

I guess you'd better find out how to determine Windows associations.

Maybe google it, or ask in a Windows forum.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

[toc] | [prev] | [next] | [standalone]


#16217

FromGordon Levi <gordon@address.invalid>
Date2012-07-23 01:01 +1000
Message-ID<u83o081glhm3r2j3lpodpmg8ebo7q7qrqd@4ax.com>
In reply to#16185
Gordon Levi <gordon@address.invalid> wrote:

>Lew <lewbloch@gmail.com> wrote:
>
>>Gordon Levi wrote:
>>> I have an application that uses the JDBC-ODBC driver that worked in
>>> the (Netbeans) IDE but failed to find the (Access) database when using
>>> the default file association under Windows 7. In the hope of getting
>>> some more information I ran the application in a command line window
>>> using javaw and it worked.
>>> 
>>> In summary, clicking on a shortcut to &quot;C:\src\myapp\dist\myapp.jar&quot;
>>> file in Windows 7 failed because it did not find my database although
>>> it invoked myapp. Clicking on a shortcut to
>>> "C:\Windows\System32\javaw.exe -jar C:\src\myapp\dist\myapp.jar"
>>> works. Can someone explain why?
>>> 
>>> In case it is relevant, I did try the jar file's directory and the
>>> database directory for the "Start in:" directory.
>>
>>Apparently the file association to the JAR files is not "C:\Windows\System32\javaw.exe -jar %1".
>>
>>What exactly is your associated command for JAR files?
>
>I think if I knew that "exactly" I might have been able to answer my
>own question. Window 7 shows it as a pretty Java icon with a
>description of "Java(TM) Platform SE binary".

I was wrong! I still can't answer my own question. Thanks to "Luuk" I
now know that the association is
C:\Program Files (x86)\Java\jre6\bin\javaw.exe "%1" %*

I am executing C:\Windows\System32\javaw.exe. The two executables are
definitely different but I don't know the difference.

A significant omission from my post that was that I am running a 64
bit version of Windows 7 and I suspect that my lack of understanding
is because of a some incompatibility between the 32 and 64 bit
executables and/or drivers. 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web