Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / All-Topics

Changing the Java VM in Jaguar Manager

4.00/5 (1 vote)
4 Nov 2013CPOL1 min read 5.9K  
How to change the Java VM in Jaguar Manager

EA Server 5.5 comes with a manager application called Jaguar Manager (also called Sybase Central). This is really a Java product, but in this version it’s wrapped in a program called scjview.exe. This is available in %SYBASE%\Shared\Sybase Central 4.3\win32.

I found out this is using an old JRE 1.4. (I use process explorer in Sysinternals. It’s a great tool!) I wanted to switch the EA Server to Java 1.5 , which is the latest version of Java supported in EAS 5.5. With the EA Server itself, this is easy. Just pass -jdk15 to the serverstart batch file.

With Jaguar Manager, this is not as straightforward. There is a batch file called jagmgr.bat but this only calls scjview.exe mentioned above. The Java runtime is probably picked up using a DLL named jsyblib142.dll, in %SYBASE%\Shared\win32.

After Googling for a bit, I found a solution to this problem. Apparently, scjview.exe has a command line argument -batch. If you pass this in, the program generates a batch file called sybasecentral.bat in the same directory as scjview.

Now, this batch file runs Java with a bunch of Jar files. You can change the path of the Java command to change the Java version it’s run in. Such a simple solution, completely hidden! And with this available, why did they have to create an EXE like that?? Beats me!

Of course, once you convert to batch file, you can tweak the Java parameters such as memory, etc. to run better.

Filed under: CodeProject, Misc
Tagged: easerver

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)