XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 04 Jul 2006 07:26 PM
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

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 05 Jul 2006 02:19 PM
The spaces should not create any problem.

Are you running multiple JVM in your system?

Did you re-start Stylus Studio after clicking auto-detect?

Do you see all fields populated in the Java Virtual machine options page after auto-detect?



Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) 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.

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 11 Jul 2006 12:14 PM
Hi Gregor,

Stylus Studio uses the following registry key to detect which JVM is current in the system.

HKEY_LOCAL_MACHINE\
SOFTWARE\
JavaSoft\
Java Runtime Environment
CurrentVersion

and the equivalent for the SDK

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.


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 13 Jul 2006 05:37 PM
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.

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 13 Jul 2006 05:58 PM

Hi Greg,

What do you see after typing at DOS prompt
c:\>echo %PATH%

...and after typing
c:\>java -version


Thank You for your help
Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 13 Jul 2006 06:08 PM
%PATH% reports
c:\ruby\bin;C:\Program Files\Java\jdk1.5.0_07\bin\;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Microsoft SQL Server\MSSQL\Upgrade;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\Common Files\GTK\2.0\bin

java -version reports
java version "1.5.0_7"
Java (TM) Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java Hotspot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 13 Jul 2006 06:28 PM

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

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 13 Jul 2006 06:48 PM
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.)

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 13 Jul 2006 09:51 PM

Let's try a different track; may be the JVM is failing to initialize the debugger listener (port 8000)

Could you please replace the JVM "Parameters", the one immediately after the "Runtime Library" field

replace

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

with

-?

click OK and re-start Stylus Studio


Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 14 Jul 2006 04:30 PM
Changed JVM paramters from
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

to
-?

Same result when selecting File Open.

Menu selection help/about shows "Java Runtime Environment initialization failed" in the JVM box.

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 15 Jul 2006 06:16 PM
Hi Greg,

please try the following

- unzip the attached file in
"c:\Program Files\Stylus Studio 2006 Release 3 XML Enterprise Edition\bin"

execute stylus.bat


Thank You
Ivan Pedruzzi
Stylus Studio Team


Documentstylus(1).zip

Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 16 Jul 2006 04:30 PM
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

Postnext
Ivan PedruzziSubject: SS 2006 R3 Ent cannot find JRE JDK
Author: Ivan Pedruzzi
Date: 16 Jul 2006 10:11 PM

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.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) 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.

Postnext
Ivan PedruzziSubject: 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

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
(Deleted User) Subject: SS 2006 R3 Ent cannot find JRE JDK
Author: (Deleted User)
Date: 17 Jul 2006 12:55 PM
I uninstalled JRE and JDK and reinstalled them. JVM now starts correctly. OK, my guess was wrong, sorry.

Thanks for your help.

Greg

Postnext
Bogdan StavrevSubject: 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

Posttop
Tony LavinioSubject: 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.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.