A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How Do I Open a Java file in W7?



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old January 10th 14, 08:42 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 12
Default How Do I Open a Java file in W7?

I have installed JAVA.EXE to c:\windows\system32.
I have a JAR file called ABCD.JAR.
I right click on the JAR file and select 'OPEN WITH', and browse to
the JAVA.EXE file so that it will be selected on subsequent JAR files.
Nothing happens. Then or subsquently.

What am I doing wrong?
XieXie
Wei
Ads
  #3  
Old January 10th 14, 09:07 PM posted to alt.windows7.general
ps56k[_2_]
external usenet poster
 
Posts: 51
Default How Do I Open a Java file in W7?

saw this thread on the MS site -

http://answers.microsoft.com/en-us/w...4-52f24619bd78


  #4  
Old January 10th 14, 09:31 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 12
Default How Do I Open a Java file in W7?

On Fri, 10 Jan 2014 21:02:30 +0000, Andy Burns
wrote:

C:\path-to-jre\java.exe -jar abcd.jar



I tried

C:\windows\system32\java.exe -jar c:\program files\clavis51\full
version\clavis.jar

got same thing - it blinks but does nothing else.

Wei
  #10  
Old January 11th 14, 02:04 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 12
Default How Do I Open a Java file in W7?

On Sat, 11 Jan 2014 08:19:03 -0500, wrote:

On Sat, 11 Jan 2014 07:10:16 -0500,
wrote:

New day - new try.

I went to the trouble of uninstalling JAVA, and then reinstalling it
to c:\java. I then moved the clavis.jar program and its folder to
c:\clavis. That was to simplify the paths to each.
Then I entered
CD C:\JAVA\BIN
reassured that JAVA.EXE indeed is there -
and then
JAVA.EXE -JAR C:\CLAVIS\CLAVIS.JAR
in the command window.
Got a small error window that said 'invalid installation'.
Then I returned to W7 and right clicked on CLAVIS.JAR,
selected 'open with' and chose JAVA.
Got same error window. No surprise.
Oh well.

XieXie
Wei



I went to site:
http://answers.microsoft.com/en-us/w...4-52f24619bd78
and read in part:

Open a command prompt window using "Run as administrator”, and then
type: -

C:\assoc .jar=jarfile


Questions - how do I enter and do 'Run as administrator' here exactly?
Is 'jarfile' my JAR filename?
Be nice please.
XieXie
Wei

Never mind - google pointed to a site that said how to run as
administrator before going to command window.

The rest of what was shown following the run as administrator did not
work for me however. Still stuck.

XieXie
Wei
  #12  
Old January 11th 14, 04:43 PM posted to alt.windows7.general
No_Name
external usenet poster
 
Posts: 46
Default How Do I Open a Java file in W7?

On Sat, 11 Jan 2014 09:37:03 -0600, Char Jackson
wrote:


What exactly do you want to do? If you just want to open the file to see
what's inside, possibly to study the contents, then I use WinRAR for that.

My point is, depending on what you specifically want to do once you've
gained access to the file's contents, there might be plenty of other tools
that will do the job.



All I tell you is this -

All this effort is my attempt to use an application I bought and paid
for, called 'Clavis Sinica'. It purports to help one learn Chinese
ideographic (character) texts. When it runs, the user (me) can
cut-paste such texts into a window with which one can then select and
learn info about selected characters. The file to do this is a JAR
file, that of course must be opened with JAVA. The app has two main
parts, one the main part, using a JAR file called 'CLAVIS.JAR', and
which seems to work okay in this XP SP3, but I can't get it work in W7
Ulitimate or Home Premium. The second part uses HTML but won't run
at all because of security issues, but that is another issue.

Thanks

Weir
  #14  
Old January 11th 14, 06:25 PM posted to alt.windows7.general
Paul
external usenet poster
 
Posts: 18,275
Default How Do I Open a Java file in W7?

On 1/11/2014 11:43 AM, wrote:
On Sat, 11 Jan 2014 09:37:03 -0600, Char Jackson
wrote:


What exactly do you want to do? If you just want to open the file to see
what's inside, possibly to study the contents, then I use WinRAR for that.

My point is, depending on what you specifically want to do once you've
gained access to the file's contents, there might be plenty of other tools
that will do the job.



All I tell you is this -

All this effort is my attempt to use an application I bought and paid
for, called 'Clavis Sinica'. It purports to help one learn Chinese
ideographic (character) texts. When it runs, the user (me) can
cut-paste such texts into a window with which one can then select and
learn info about selected characters. The file to do this is a JAR
file, that of course must be opened with JAVA. The app has two main
parts, one the main part, using a JAR file called 'CLAVIS.JAR', and
which seems to work okay in this XP SP3, but I can't get it work in W7
Ulitimate or Home Premium. The second part uses HTML but won't run
at all because of security issues, but that is another issue.

Thanks

Weir


Doing things manually is certainly possible, but using the JRE
installer to install Java, should have set up a ton of this
stuff for you.

http://docs.oracle.com/javase/tutori...ent/paths.html

If you want to learn how the stuff works manually, that's OK. In which
case, I might flip over to Linux, see what environment variables Java
uses over there. Then look for the equivalents in the Windows environment.

Paul

  #15  
Old January 11th 14, 07:42 PM posted to alt.windows7.general
Gene E. Bloch[_5_]
external usenet poster
 
Posts: 1,720
Default How Do I Open a Java file in W7?

On 1/11/2014, Paul posted:
On 1/11/2014 11:43 AM, wrote:
On Sat, 11 Jan 2014 09:37:03 -0600, Char Jackson

wrote:


What exactly do you want to do? If you just want to open the file
to see
what's inside, possibly to study the contents, then I use WinRAR
for that.

My point is, depending on what you specifically want to do once
you've
gained access to the file's contents, there might be plenty of
other tools
that will do the job.



All I tell you is this -

All this effort is my attempt to use an application I bought and
paid
for, called 'Clavis Sinica'. It purports to help one learn Chinese
ideographic (character) texts. When it runs, the user (me) can
cut-paste such texts into a window with which one can then select
and
learn info about selected characters. The file to do this is a JAR
file, that of course must be opened with JAVA. The app has two
main
parts, one the main part, using a JAR file called 'CLAVIS.JAR',
and
which seems to work okay in this XP SP3, but I can't get it work in
W7
Ulitimate or Home Premium. The second part uses HTML but won't
run
at all because of security issues, but that is another issue.

Thanks

Weir


Doing things manually is certainly possible, but using the JRE
installer to install Java, should have set up a ton of this
stuff for you.


http://docs.oracle.com/javase/tutori...ent/paths.html

If you want to learn how the stuff works manually, that's OK. In
which
case, I might flip over to Linux, see what environment variables Java
uses over there. Then look for the equivalents in the Windows
environment.


Paul


I copied some useful data from my setup:

An excerpt from my Path variable:
Path=...;C:\Program Files\Java\jdk1.7.0_17\bin;...

An environment variable used by Java:
CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

For Wei, the path component should point to JRE, the Java run-time
environment, unless he has the JDK installed.

The following is what's in my registry to run a jar file:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\jar_auto_file]
@=""

[HKEY_CLASSES_ROOT\jar_auto_file\shell]

[HKEY_CLASSES_ROOT\jar_auto_file\shell\open]

[HKEY_CLASSES_ROOT\jar_auto_file\shell\open\command]
@="\"C:\\Program Files (x86)\\Java\\jdk1.7.0_17\\bin\\javaw.exe\" -jar
\"%1\" %*"


Notes to Wei:
1. *IMPORTANT* Note that the command listed in the registry entry
refers to "javaw.exe", not "java.exe".

2. The registry entry jar_auto_file is what "jarfile" refers to that
you mentioned in another post of yours - but see Note 5.

3. The 1.7.0_17 is the version I have at the moment - yours might be
different, and again, you should have jre if you don't have the JDK
installed (JDK = Java Development Kit).

4. I too had a hell of a time getting my setup to run jar files after
the last time I updated my JRE and JDK, involving setting up paths and
getting the form of the command in the registry to work, but
unfortunately,I don't have a clear memory of exactly how I got to the
above - but remark 1 might be significant.

5. In the registry, .jar points in my case to jar_auto_file; maybe in
your case it points to "javafile". If so, remark 2 is misleading :-)

--
Gene E. Bloch (Stumbling Bloch)
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.