aspose file tools*
The moose likes Java in General and the fly likes Anybody knows how to install JVM? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Anybody knows how to install JVM?" Watch "Anybody knows how to install JVM?" New topic
Author

Anybody knows how to install JVM?

Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
because I cannot run java executables in Windows XP. Just installing the JDK does not help (JDK makes executables, but executables does not run without JVM)
[ October 10, 2002: Message edited by: G Vanin ]
Wilfried LAURENT
Ranch Hand

Joined: Jul 13, 2001
Posts: 269
Java executables ? What do you mean by that?
Did I miss a train or what?
W.
[ October 10, 2002: Message edited by: Wilfried LAURENT ]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
The JDK includes the JVM. If you installed the jdk it should have updated the Windows registry for you. I have an XP at home and I installed 1.4 and it updated the registry just fine.
Apparently you need to fix the path to include the \bin directory that holds the java.exe etc.
Unless of course that you are talking about executing jar files, in which case perhaps you just need to define the MIME type .jar to use the java.exe in the JDK that you downloaded.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
OK - I read your other thread.
The JVM that Sun provides is called java.exe.
Windows is not likely to have any help section for java.
If you have multiple versions of java installed on the same machine, that may be causing your problem.
Of course I do that, but if I want to use a particular version of java I execute a little .bat file that sets the path and classpath to the particular one that I want to use at that moment.
For instance I have a file p.bat

or whatever.
Then when I open a DOS window I just type
>p
and the path and classpath gets set to what I want right then.
Of course this way you have to execute the .bat file EVERY time that you open a DOS window - but it does give you some flexibility.
[ October 10, 2002: Message edited by: Cindy Glass ]
Wilfried LAURENT
Ranch Hand

Joined: Jul 13, 2001
Posts: 269
Can you develop the following citation?
Trying to run "some.exe" compiled from java code

How do you get from compiled java code to a .exe?
W.
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Thanks Cindy.
Nice remark Lawrent
I did not. You have got me. I started to read a book Mastering XML the CD of which contains a XSLT parser and it was writeen that that parser was written in Java. It is called and used as xt.exe, and somehow it is using *.jars in subdirectories.
The readme.txt has reference to
http://www.jclark.com/xml/xt.html
but I do not beleive that it is the same that I am using from CD.
The use is (under Windows):
xt(.exe or without) some.xml some.xsl result.some
that is using default location of jars.
But in other OSes the use is
xt(.exe or without) xt.jar xp.jar some.xml some.xsl result.some
(weel, it is from memory, I do not have it with me)
OK, it works under Windows2000 but not Windows XP giving a message that there is mo Virtual Machine.
Then I could not anyway run java's some.class from command line.
MS has an explanation in
http://www.microsoft.com/java/
but their's download tries to configure the PC in the library that I am using for Internet access and not my PC at home, that is not connected to.
I should check at home for more details but the problem remains: exe or not exe, I do not have JVM in my Windows XP. Then this problem arised only after 10/07/2002 (read the link). Might be Cindy managed to upgrade her Windows XP before it...
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Thanks once more Cindy and Wilfried,
I am still bewildered by MS Virtual Machine problem.
Also though I have installed JDK1.3 (I do not have JDK1.4), when I try running applet, I have a message box:
"Install on demand(other).
To display this page correctly you need to download and install the following component:
Java Virtual Machine"
So, JVM is installed, thanks to Cindy, I know this by succeding in running java.exe from anywhere, but Internet Explorer6.0 cannot find it. So, why? How should I install JVM?
Now I configured to run JVM (also) from command line in all my MS Windows.
Also "Microsoft VM" fails!!!, in method 1) under Windows XP.
Earlier I have run only (after
SET CLASSPATH=F:\XML\MasteringXML\Xt\xt.jar;F:\XML\MasteringXML\XP\xp.jar;F:\XML\MasteringXML\Xt\sax.jarbut it's happenned, after some checking, that xt.exe does not use any jars and needed only in 2))
1) xt.exe source.xml some.xsl result.txt
1a)In Windows2000 it succeeds, but in Windows XP it fails giving
"Unable to start application. The Microsoft virtual machine cannot be found"
Now I also configured to run JVM from command line:
2)java com.jclark.xsl.sax.Driver source.xml some.xsl result.txt
2a)succeding in all Windows
Earlier, for doing 1), I just have read and used this part of the enclosed below readme.txt:
"Alternatively under Windows you can use XT packaged as a Win32 executable. This includes XP and SAX. To use this, you will need to have the Microsoft Java VM installed (this is included with IE). Run this with the command:
xt source stylesheet result name=value..."
README.TXT
I could not include description of XSLT processor because my text is rejected by javaranch.com as containing more than 8 drawings??!
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Thanks once more Cindy and Wilfried,
though I have installed JDK1.3 (I do not have JDK1.4), when I try running applet, I have a message box:
"Install on demand(other).
To display this page correctly you need to download and install the following component:
Java Virtual Machine"
So, JVM is installed, thanks to Cindy, I know this by succeding in running java.exe from anywhere, but Internet Explorer6.0 cannot find it. So, why? How should I install JVM?
Now I configured to run JVM (also) from command line of all my MS Windows. This means that I have found a workaround to stay in WindowsXP without rebooting to Windows2000, just to run XSLT processor from book's CD (the origin of question/problem), by method 2). But Microsoft VM fails!!!, by method 1) in Windows XP.
Earlier I have run only (after
SET CLASSPATH=F:\XML\MasteringXML\Xt\xt.jar;F:\XML\MasteringXML\XP\xp.jar;F:\XML\MasteringXML\Xt\sax.jar
but after some checking, I came to conclusion that it is needed only for 2))
1) xt.exe source.xml some.xsl result.txt
1a)In Windows2000 it succeeds, but in Windows XP it fails giving
"Unable to start application. The Microsoft virtual machine cannot be found"
Now I also configured to run JVM from command line:
2)java com.jclark.xsl.sax.Driver source.xml some.xsl result.txt
2a)succeding in all Windows
I could not include a README.txt to xslt processor because javaranch.com rejects it, saying that I cannot post more than 8 drawings.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Browsers do not really use the standard JRE. They use a "plug-in" which may or may not point at an installed JRE.
Install a plug-in and try again.
Guennadiy VANIN
Ranch Hand

Joined: Aug 30, 2001
Posts: 898
Cindy,
thank you once again for guiding me.
OK, that is a challenge, since I have access to Internet from my PC only through diskettes
Then as I mentioned, MS referencing Sun's prohibition, sends to purchasing ServicePack 1.
This is also not an option for me, currently.
[ October 16, 2002: Message edited by: G Vanin ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Anybody knows how to install JVM?
 
Similar Threads
working with jess in java
Is this the place to ask installation questions?
JDK and JRE
Which is better Groovy or Scala?
Need help on JVM!!