Thanks Sharon for your quick response!

I know where I went wrong now - I did install STAF 64bit with JVM bundle, but I 
also downloaded and installed Java from Sun and put it into path (I guess Sun 
gave me 32bit java because of my browser version), so my JVM wasn`t pointing to 
the right place. Now I change the path to `C:\STAF\jre\bin` and STAX can launch 
with no problem :)

Thanks,
Eileen

-----Original Message-----
From: Sharon Lucas [mailto:luc...@us.ibm.com] 
Sent: September-27-10 3:09 PM
To: Eileen Wei
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] Is STAX supported in Win7 64bit?

Yes, STAX (as well as any other STAF Java service) is supported on Windows
7  64-bit (x64, aka AMD64).

If you installed the 64-bit version of STAF (which I'm guessing you did),
then you need to use a 64-bit JVM for STAF Java services.  However, you put
a 32-bit (x86) JVM in your PATH, and thus, it does not work.  The STAF
"Java Support" provided for each STAF installer file is documented on the
STAF download web page at http://staf.sourceforge.net/getcurrent.php.  The
web page has a table that includes the following STAF installer files for
Windows 32-bit (aka x86) and Windows 64-bit (aka x64).  Note the "Java
Support" column.

Operating System (Architecture        | Java  | Release | File
| File format
 (Architecture)                       |Support|         |
|
--------------------------------------|-------|---------|-----------------------------|----------------
Windows 2000, XP, 2003, Vista, WinSrv2008, | 32-bit |  3.4.2   |
STAF342-setup-win32.exe         | InstallAnywhere
Windows 7 (32-bit)                         |        |          |
| (Bundled JVM)
-------------------------------------------|--------|----------|---------------------------------|------------------
Windows 2000, XP, 2003, Vista, WinSrv2008, | 32-bit |  3.4.2   |
STAF342-setup-win32-NoJVM.exe   | InstallAnywhere
Windows 7 (32-bit)                         |        |          |
| (No JVM)
-------------------------------------------|--------|----------|---------------------------------|------------------
Windows Server 2003/2008, Vista, Windows 7 | 64-bit |  3.4.2   |
STAF342-setup-winamd64.exe      | InstallAnywhere
(AMD64, aka x64)                           |        |          |
| (Bundled JVM)
-------------------------------------------|--------|----------|---------------------------------|------------------
Windows Server 2003/2008, Vista, Windows 7 | 64-bit |  3.4.2   |
STAF342-setup-winamd64-NoJVM.exe| InstallAnywhere
(AMD64, aka x64)                           |        |          |
| (No JVM)
-------------------------------------------|--------|----------|---------------------------------|------------------

So, if you want to use the 64-bit version of STAF, then STAF Java support
requires that you use a 64-bit JVM with your STAF Java services.

Or, if you want to use a 32-bit JVM with your STAF Java services (such as
the STAX and Event services), then you could install the 32-bit version of
STAF (which can run on a 32-bit or 64-bit machine).

Note that the JVM log (e.g. at C:\STAF\data\STAF\lang\java\jvm\STAFJVM1
\JVMLog.1) for your STAF Java services contains more details about the
error your are getting registering the STAX service.

Note that if you were using a 64-bit version of Java, "java -version" would
display information that indicated it is a 64-bit JVM.

Note that the install.properties file in the STAF directory tells you which
version of STAF you have installed.  For example:

C:\>type C:\STAF\install.properties:
version=3.4.2
platform=winamd64
architecture=64-bit
installer=IA
file=STAF342-setup-winamd64.exe
osname=Windows
osversion=*
osarch=amd64

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Eileen Wei <e...@fekete.com>
To:     "staf-users@lists.sourceforge.net"
            <staf-users@lists.sourceforge.net>
Date:   09/27/2010 03:31 PM
Subject:        Re: [staf-users] Is STAX supported in Win7 64bit?



PS. I have STAF 3.4.2 and STAX 3.4.3

From: Eileen Wei
Sent: September-27-10 2:16 PM
To: 'staf-users@lists.sourceforge.net'
Subject: Is STAX supported in Win7 64bit?

Hi,

I used STAX on WinXP before and now I am trying to use STAX on my Win7
64bit machine, and have problem starting the STAFProc.

##########################################################
C:\Users\ewei>java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

C:\Users\ewei>STAFProc

Error on Service definition line:

SERVICE STAX LIBRARY JSTAF EXECUTE
{STAF/Config/STAFRoot}/services/stax/STAX.jar
 OPTION J2=-Xmx384m

Error code: 27
Reason    : Error constructing service, JSTAF, Result: Unable to connect to
JVM

Error in configuration file: C:\STAF\bin\STAF.cfg
##########################################################

I have added “C:\Program Files (x86)\Java\jre6\bin” into system path, and I
have only added the following lines into the staf.cfg:

SERVICE STAX LIBRARY JSTAF EXECUTE
{STAF/Config/STAFRoot}/services/stax/STAX.jar \
                OPTION J2=-Xmx384m
SERVICE EVENT LIBRARY JSTAF EXECUTE \
                {STAF/Config/STAFRoot}/services/stax/STAFEvent.jar
SET MAXQUEUESIZE 10000

I’m wondering if STAX is supported on Win7 64? If so, what did I miss?

Thanks,
Eileen



------------------------------------------------------------------------------

Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to