Author Topic: Can i-TRiLOGI run on 64-bit Windows 7?  (Read 11478 times)

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Can i-TRiLOGI run on 64-bit Windows 7?
« on: May 09, 2010, 10:43:13 PM »
We have recently tried to install Internet TRiLOGI version 6.31 and TLServer 3.15 on a new 64-bit version of Windows 7 and the following describe what we experienced.

1) When using the command prompt and type in "java -version" the O/S reported that java command is not recognized.

2) We then install the JRE 1.4.2 that is shipped with the i-TRiLOGI CD-ROM. After installing the JRE 1.4.2 we installed the i-TRiLOGI program.

3) We could run the i-TRiLOGI and TLServer 3.1 by opening the "Start" Menu and selecting from the "Internet TRiLOGI". We found that TLServer 3.15 does work perfectly with the USB-to-RS232 and USB-to-RS485 adapter. i-TRiLOGI client also could communicate with the PLC's serial port via the TLServer or directly with the PLC's Ethernet port.

4) However, attempt to run "TLServer (with Java console) failed. Attempts to run the batch files "TL6.bat" and "TLServer3.bat" also failed.

5) We went to the command prompt and type in "java -version" and Windows 7 64-bit still reported that "java" is not a recognized command. However, a search of the hard disk for "java.exe" revealed Windows 7 has already installed "java.exe" in two folders:

C:\Program Files (x86)\java\jre6\bin\  and

C:\Windows\SysWOW64\

So apparently Windows 7 was already shipped with JRE 1.6.0_20 and for unknown reason the JRE 1.4.2 that we installed was no where to be found! However, again for unknown reason Windows 7 did not add java.exe to the system path of command prompt even though Java is being invoked when the .jar file are executed directly.

We modified the content of the file "TLServer3.bat" to the following:

   C:\Windows\SysWOW64\java -jar TLServer31.jar

and also the content of "TL6.bat" to the following:

   C:\Windows\SysWOW64\java -jar TL63.jar %1

and both files are able to run.

So we recommend not to install any JRE when you first get your Windows 7 PC but do a search of "java.exe" in your hard disk to verify if a JRE is already installed. If so, then all you need to do is to install the Internet TRiLOGI version 6.31 to your PC and it should run.

Note that TLServer shipped with older version of i-TRiLOGI that don't work on Windows Vista will also not work on Windows 7. You should follow the "Upgrade" link on the "Help" menu to download the latest version of I-TRiLOG from our website before attempting to install on the Windows 7 PC. Alternatively, if you still have in i-TRiLOGI CD you can look for the "upgrade.htm" file inside the CD to find the upgrade link, username and password to download the latest i-TRiLOGI.

« Last Edit: September 15, 2010, 04:13:24 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

BC SYSTEMS

  • Full Member
  • Posts: 146
    • View Profile
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #1 on: May 11, 2010, 10:03:58 AM »
Hi,

I'm running W7 x64 and I have a problem with the server.  I can run TL6 no problem but the server will not start.  

I modified the bat files as described but the server just wont start up.

I put a pause in the bat file and this is the text:


C:\Program Files (x86)\TRiLOGI\TL6>java -jar TLServer31.jar
'java' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files (x86)\TRiLOGI\TL6>C:\Windows\SysWOW64\java -jar TLServer31.jar


String counts = 83
Installation Directory = C:\Program Files (x86)\TRiLOGI\TL6/
Serialio Library: version 9.9.9: build 9191
Copyright (c) 1996-2008 Serialio.com, All Rights Reserved.
os.name="Windows 7"  os.arch="x86"
TRi Amendment1:OS Name =Windows 7
SerialPort class loaded: jspWin
Serial ports reported by system:
COM3;fsdir = C:\Program Files (x86)\TRiLOGI\TL6/FileService/
Getting Server IP addresses from O/S
IP Address1 = 8888-PC/192.168.1.11
IP Address2 = 8888-PC/fe80:0:0:0:6183:bc0b:3e95:6ac4%11
IP Address3 = 8888-PC/fe80:0:0:0:18a8:2617:3f57:fef4%13
IP Address4 = 8888-PC/2001:0:5ef5:73bc:18a8:2617:3f57:fef4
java.lang.NullPointerException
java.lang.NullPointerException
        at TLServer31.TLServer.a(Unknown Source)
        at TLServer31.TLServer.<init>(Unknown Source)
        at TLServer31.TLServer.main(Unknown Source)

C:\Program Files (x86)\TRiLOGI\TL6>pause
Press any key to continue . . .

I copied the java.exe file to the program directory and received the following message:


C:\Program Files (x86)\TRiLOGI\TL6>java -jar TLServer31.jar

String counts = 83
Installation Directory = C:\Program Files (x86)\TRiLOGI\TL6/
Serialio Library: version 9.9.9: build 9191
Copyright (c) 1996-2008 Serialio.com, All Rights Reserved.
os.name="Windows 7"  os.arch="x86"
TRi Amendment1:OS Name =Windows 7
SerialPort class loaded: jspWin
Serial ports reported by system:
COM3;fsdir = C:\Program Files (x86)\TRiLOGI\TL6/FileService/
Getting Server IP addresses from O/S
IP Address1 = 8888-PC/192.168.1.11
IP Address2 = 8888-PC/fe80:0:0:0:6183:bc0b:3e95:6ac4%11
IP Address3 = 8888-PC/fe80:0:0:0:18a8:2617:3f57:fef4%13
IP Address4 =8888
-PC/2001:0:5ef5:73bc:18a8:2617:3f57:fef4
java.lang.NullPointerException
java.lang.NullPointerException
        at TLServer31.TLServer.a(Unknown Source)
        at TLServer31.TLServer.<init>(Unknown Source)
        at TLServer31.TLServer.main(Unknown Source)

C:\Program Files (x86)\TRiLOGI\TL6>C:\Windows\SysWOW64\java -jar TLServer31.jar


String counts = 83
Installation Directory = C:\Program Files (x86)\TRiLOGI\TL6/
Serialio Library: version 9.9.9: build 9191
Copyright (c) 1996-2008 Serialio.com, All Rights Reserved.
os.name="Windows 7"  os.arch="x86"
TRi Amendment1:OS Name =Windows 7
SerialPort class loaded: jspWin
Serial ports reported by system:
COM3;fsdir = C:\Program Files (x86)\TRiLOGI\TL6/FileService/
Getting Server IP addresses from O/S
IP Address1 =8888-PC/192.168.1.11
IP Address2 = 8888-PC/fe80:0:0:0:6183:bc0b:3e95:6ac4%11
IP Address3 = 8888-PC/fe80:0:0:0:18a8:2617:3f57:fef4%13
IP Address4 = 8888-PC/2001:0:5ef5:73bc:18a8:2617:3f57:fef4
java.lang.NullPointerException
java.lang.NullPointerException
        at TLServer31.TLServer.a(Unknown Source)
        at TLServer31.TLServer.<init>(Unknown Source)
        at TLServer31.TLServer.main(Unknown Source)

C:\Program Files (x86)\TRiLOGI\TL6>pause
Press any key to continue . . .

server still wont run - any ideas?




support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #2 on: May 11, 2010, 08:21:34 PM »
1) Can the TLServer program run off the "Start Menu"?

2) Your problem appears to have something to do with the serial driver. Can you search your hard drive and see if you can find the jspWin.dll file installed in your folder? We found our copy at:

C:\Program Files (x86)\java\jre6\lib\ext\x86

The jspWin.dll file is installed by the TRiLOGI setup program to the JRE folder so that it can be invoked when TLServer is run. If you don't find the file in this folder, but you can locate the folder, then try to manually copy the jspwin.dll file from the "TRiLOGI\TL6\Java Lib" folder into the above-mentioned folder and try to run the TLServer again.

« Last Edit: May 11, 2010, 08:23:48 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

BC SYSTEMS

  • Full Member
  • Posts: 146
    • View Profile
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #3 on: May 12, 2010, 03:27:41 AM »
Hi,

It wont run from the start menu.  The jspWin.dl is located in the C:\Program Files (x86)\java\jre6\lib\ext\x86 directory as described in your email.

Cheers


support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #4 on: May 13, 2010, 09:38:46 PM »
In the system we tested we have no problem starting up the TLServer from Start Menu and the modified TLServer3.bat file.

Since you are able to locate the JspWin.dll in the 32-bit JRE folder, can you try to modify the TLServer3.bat file content to:

"C:\Program Files (x86)"\Java\jre6\bin\java -jar TLServer31.jar

See if you have any luck.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

BC SYSTEMS

  • Full Member
  • Posts: 146
    • View Profile
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #5 on: May 14, 2010, 02:08:11 AM »
Hi,

It Works!

It still wont work from the start menu or the jar file in the program directory.  It only works if I run the bat file.....

I receive an administrator warning asking me if I want the run the java environment, after clicking OK the server starts. - not ideal but it will keep me running!

Any ideas why?

Cheers

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #6 on: May 14, 2010, 07:08:32 AM »
We would like to know too.. Since it didn't happen to the W7 PC that we have tested in our own facility. So perhaps it is a question best answer by Mr Balmer....?

What "flavor" is your Windows 7 x64 bit (as in Home? Premium? Ultimate? Spicy? Cool?) What version is your JRE? You can check using java -version command once you navigate to the folder that contains the java.exe file.

On further thought, it seems likely that in your W7 the java.exe and the .jar extension is not recognized by Windows. Perhaps a re-installation of JRE after removing existing JRE could help?
« Last Edit: May 14, 2010, 07:35:04 AM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Can i-TRiLOGI run on 64-bit Windows 7?
« Reply #7 on: September 15, 2010, 04:06:07 PM »
We just purchased a new computer running 64-bit Windows 7 operating system. We checked and found that this PC doesn't come preinstalled with any Java runtime environment. So we installed JRE 1.4.2 (32-bit), then installed TRiLOGI version 6.31. We can start up both TRiLOGI and TLServer from Start Menu. No problem. It was essentially painless. However, the batch file TL6.bat and TLServer3.bat did not work because Windows 7 does not recognize the path of the Java.exe command. These  batch files can be made to work if the full path for java.exe is included. However most users would not need to run the batch files to start TLServer or TRiLOGI so it doesn't quite matter.

We then installed the JRE 1.6.0 (64-bit) and we started having problem loading the TLServer (TRiLOGI loaded OK). Re-installing TRiLOGI did not help. We needed to modify the batch file as described in the earlier posts in this thread and then we can start TLServer from the batch file.  

Next we removed JRE 1.6.0 (64-bit) and installed JRE 1.6.0 (32-bit). The same problem persisted.

Lastly, we removed ALL Java runtime from the PC, and ONLY installed JRE 1.4.2, then re-installed TRiLOGI. Everything works just like the first time.

Conclusion

1) This appears to be a problem between 64-bit JRE and Windows 7 64-bit O/S. Windows O/S doesn't seems to recognize some of the system path created by the JRE setup program. We hope in the near future Sun and Microsoft would resolve this problem.

2) For now, if you can live with 32-bit Java Runtime enviroment, then remove all JRE from your PC and only install JRE 1.4.2 and TRiLOGI should work easily.

3) However, if you must have a 64-bit JRE (probably because some of your other application programs demand it), then you can still run the TLServer and TRiLOGI software under 64-bit JRE but you may need to modify the batch file described in this post and start TLServer from the batch file instead of from the Start Menu.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS