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
Steven WaldrenSubject: Java Config and Win 2003 Server 64-bit
Author: Steven Waldren
Date: 27 Jul 2005 09:45 AM
Hello. I am evaluating Stylus, and it appears to be a great program, but I cannot get Java configured. I have followed the instructions on the website, but it still will not work. I click the Auto-detect, but nothing happens. I did a 'regedit' and the keys are in the registry. I then tried to manually configure with the following:

Runtime lib: C:\Java\jdk1.5.0_04\jre\bin\server\jvm.dll
JDK Home: C:\Java\jdk1.5.0_04
Java compiler: C:\Java\jdk1.5.0_04\bin\javac.exe

Any help is greatly appreciated,

Steven


System info:
Windows 2003 Server 64bit
Stylus Build 3771
JDK 1.5.0 update 4 Windows 64bit edition
JRE 1.5.0 update 4 Windows 64bit edition

Postnext
Minollo I.Subject: Java Config and Win 2003 Server 64-bit
Author: Minollo I.
Date: 27 Jul 2005 10:25 AM
Steven,
the problem is probably that you are trying to convince Stylus Studio to use a 64bit JVM; Stylus Studio is a 32bit application; Windows 64bit allows 32bit apps to run, but probably not in mixed mode (a 32bit app using 64bit libraries).

Can you try installing a 32bit JRE and point Stylus Studio to it? Even without changing registries, you can force Stylus Studio to point to the 32bit jvm.dll library. Unless you plan to develop/compile Java code with Stylus Studio, you don't need to worry about JDK.

Thanks,
Minollo

Postnext
Steven WaldrenSubject: Java Config and Win 2003 Server 64-bit
Author: Steven Waldren
Date: 27 Jul 2005 07:58 PM
You are 100% correct! Thanks.

Postnext
Chris WeltonSubject: Java Config and Win 2003 Server 64-bit
Author: Chris Welton
Date: 12 Aug 2005 04:52 PM
>Steven,
>the problem is probably that
>you are trying to convince
>Stylus Studio to use a 64bit
>JVM; Stylus Studio is a 32bit
>application; Windows 64bit
>allows 32bit apps to run, but
>probably not in mixed mode (a
>32bit app using 64bit
>libraries).
>
>Can you try installing a 32bit
>JRE and point Stylus Studio to
>it? Even without changing
>registries, you can force
>Stylus Studio to point to the
>32bit jvm.dll library. Unless
>you plan to develop/compile
>Java code with Stylus Studio,
>you don't need to worry about
>JDK.
>
>Thanks,
>Minollo


While you are correct in the 32 - 64 bit incompatability, there is a common misconception here that I would like to address. It's the 64 bit JVM trying to use Stylus code as native methods that causes the problem, not the other way around. When javaw needs to run code faster and cleaner than the JVM can itself, a developer will link the java classes to a dll so that the JVM can load the functions in the dll and have them run at optimal speed. The 64 bit JVM can not correctly break 32 bit dll's into function pointers, because it is looking for 64 bit functions (and, hence, 64 bit function pointers). In other words, Stylus Studio is not trying to use a 64 bit JVM, a 64 bit JVM is trying to use 32 bit Stylus libraries.

Chris

Posttop
Tony LavinioSubject: Java Config and Win 2003 Server 64-bit
Author: Tony Lavinio
Date: 22 Aug 2005 02:53 PM
Sir, that turns out not to be the case. Stylus is indeed trying to
load and call into the jvm.dll (and in turn, the jvm.dll calls back
out to C++). We do not run javaw.exe.

This can be proven by running Stylus Studio and examining the runtime
dependencies with a tool such as SysInternals' procexp.exe.

 
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.