I have JDK 1.5.0_07. I use it all the time from Eclipse, so I know it is correct.
It was installed using the Windows installer. In the past JRE and JDK have installed in places like C:/java/jre_xxxx. With this installer it goes into C:\Program Files\Java\jdk1.5.0_07\jre\bin\client Note the space between Program and Files.
I have seen java programs unable to deal with spaces in path names.
My recent install of SS build 653c claims not to be able to find the JVM. The path "Auto-detect" grabs looks right.
If I am right and it is the space in the path name is there a work around?
If I am wrong, what is it?
Greg Alvord
Knowledge Architect
Gallagher Financial Systems
Subject:SS 2006 R3 Ent cannot find JRE JDK Author:(Deleted User) Date:11 Jul 2006 10:15 AM
"The spaces should not create any problem."
It seems to. When the JDK is rooted at "C:\Program Files\Java\\jdk1.5.0_07\" autodetect fills in nothing.
When I coppied it to "C:\\Java\\jdk1.5.0_07\" autodect can see it and fill in the data.
If the statement "Are you running multiple JVM in your system?" means are there multiple JRE, JSK directories on the system the answer is yes.
If it means are there multiple JVM services running at the same time then no. I have tested both with Apache Tom Cat started and stopped and it does not seem the change the result.
"Did you re-start Stylus Studio after clicking auto-detect?"
Yes, and reboot as well.
"Do you see all fields populated in the Java Virtual machine options page after auto-detect?"
Yes. Values are
Classpath: C:\Java\jdk1.5.0_07\jre\lib;${classpath}
Enable JVM on
Run time Library: C:\Program Files\Java\jre1.5.0_07\bin\client\jvm.dll
Parameters:-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
Home Directory: C:\Java\jdk1.5.0_07
Compiler: C:\Java\jdk1.5.0_07\bin\javac.exe
command Line: C:\Java\jdk1.5.0_07\bin\java.exe
Yet when I try to access many features like, save a file I get the message "Stylus Studio could not load the Java Virtural Machine for the following reason Java Run Time Initialization failed."
THe entire reason I upgraded to "Enterprise is to use features that require the JVM. If I cannot get this configured correctly I will be asking for a refund. I have been trying for over a week.
HKEY_LOCAL_MACHINE\
SOFTWARE\
JavaSoft\
Java Development Kit
The Sun Java installer sets above keys to the appropriate values.
Could you please check which values you have there?
If the values are set correclty there is something that prevents Stylus Studio to load the JVM library.
For instance if you have multiples JVM bin directories in the system PATH.
Now the autodeect works and gets the parameters pointed to in the regstry as you indicated. It was pointing to 1.5 when it should have pointed to 1.5.0_07. I fixed it, rebooted opened SS ran autodetect, exited SS, opened SS.
The bad news is a still get the same "Java Runtime Environment Failed to Initiliaze" message.
OK I suspect that having in the PATH SDK 1.5 and JRE 1.3 and JRE 1.1.8 may get you in trouble.
Try the following experiment
- open a DOS console and cd to
"c:\Program Files\Stylus Studio 2006 Release 3 XML Enterprise Edition\bin"
- type SET PATH= then press enter
- type struzzo.exe and press enter
At this point Stylus Studio should start
SS did start. However, I get the same error message.
Perhaps I was not clear before. The error message does not come up on loading. If I mislead you I am sorry.
I get the error message when I try any of the functions that are documented to need the SKD, like browsing for a WSDL document as well as any file reference ( open a document, get the error message, File open dialog appears.)
Same result. After SS opens Menu selection file/opem creates the error message.
In Help/About the JVM text panel contains
Java Runtime Environment boot library
C:\Program Files\Java\jre1.5.0_07\lib\rt.jar not found.
Infact there is no rt.jar in that directory.
I find that I have several copies of rt.jar on my system. Apparently the JRE JDK in older versions contained the rt.jar file. Now I find the all my java based applications send a rt.jar file of their own with the application.
There is a copy in
C:\Program Files\Java\jdk1.5.0_07\jre\lib. Since several of the SS features require the JDK I would expect SS to look in the JDK/JRE/lib directory.
Sonds like a JRE/SDK version compatibility issue for SS.
Shold I copy it someplace you are looking, or change a path to where it is located?
Greg
No Sun JVM works without rt.jar; rt.jar contains all Java built-in classes; I am running the same version as you and I have rt.jar under
C:\Program Files\Java\jre1.5.0_07\lib
For some reason the installation in your system seems to be corrupted.
I suggest to re-install the latest JRE.
Subject:SS 2006 R3 Ent cannot find JRE JDK Author:(Deleted User) Date:17 Jul 2006 08:56 AM
I will try that however I do not agree with that recomendation.
Note that in your system you are using the JRE and C:\Program Files\Java\jre1.5.0_07\lib contains the rt.jar file.
Same as my sytem however, I am using the SDK. It was my understanding the the advanced features of SS require the SDK. When the SDK is being used the default location for rt.jar is
C:\Program Files\Java\jdk1.5.0_07\jre\lib.
Note that the file is one layer deeper in the SDK case in jre\lib.
If SDK is not required for advanced features then I can revert to JRE.
Subject:SS 2006 R3 Ent cannot find JRE JDK Author:Ivan Pedruzzi Date:17 Jul 2006 11:28 AM
Hi Greg
The JRE under the SDK directory is considered a private copy just for SDK internal use, that's why the SDK also installs the JRE under "Program File\Java".
Stylus Studio requires the SDK for compiling Java code and for some of the Java Editor features for all other Java based features the JRE is sufficient.
As far as the Stylus Studio configuration, the "Runtime library" field should point to jvm.dll under "Program File\Java" and the SDK Home to the SDK directory as showed at http://www.stylusstudio.com/configure_jre.html
Subject:SS 2006 R3 Ent cannot find JRE JDK Author:Bogdan Stavrev Date:03 Oct 2007 03:43 PM
Hi guys!!
Excuse me if this is not the right place to put my question, bum I'm realy desperate already, and I don't know hwo to ask.
I'm trying to install Arhi CAD 10 on my PC for like 2 weeks now, and I cannot install it. I have done a million things already, but I keep receiving the an Error Message that says that Cannot find JVM and to try again using "-is:javahome <JAVA HOME DIR>".
I will be so so so appriciated if someone can help me out with this...
Thank you in advance...
Vrabinho
Subject:SS 2006 R3 Ent cannot find JRE JDK Author:Tony Lavinio Date:03 Oct 2007 09:08 PM
You already asked this in another forum, and our answer is the same.
1. We do not know that product, and in any case these forums are for
support of Stylus Studio.
2. Please do not cross post.