Problem with Tomcat server on windows Vista when used with c++ and java

G

gamiravi.d

Hi,
I have one c++ application to get number of monitors from
system. I am calling .exe of c++ application using java api through
tomcat server in browser on window vista. right now I have two
monitors attached in the system.one primary and other secondary. but
when i call c++ application using java api through tomcat server, it
lists only one primary monitor.

i have some scenario for behavoiur of such application:

(1) when i run directly c++ application on vista it works fine.(gives
two monitors)
(2) when i run using sample java code without tomcat server it works
fine..(gives two monitors)
(3) when i am calling from browser through tomcat server it displays
only one monitor.
(4) one important thing is that when i call same thing on Windows XP
it works fine..(gives two monitors)


can anybody tell that what could be the problem to get list of monitor
through tomcat server on windows vista?

Ravi.
 
M

Michael Jennings

Possibly you need a later Java - is Java completely updated?
http://java.sun.com/javase/downloads/index.jsp
You might consider a beta Java SE if that won't fix it.

This is just a guess - I don't code software. Only a few people who
code software view posts in this newsgroup, so finding a better
newsgroup for your question might get you a better answer.
 
A

Andrew McLaren

I have one c++ application to get number of monitors from
system. I am calling .exe of c++ application using java api through
tomcat server in browser on window vista. right now I have two
monitors attached in the system.one primary and other secondary. but
when i call c++ application using java api through tomcat server, it
lists only one primary monitor.

Hi Ravi,

I agree with Michael Jennings, you're unlikely to get good answers in this
group, which is oriented to end-users. You'd have better luck in a developer
newsgroup, such as microsoft.public.win32.programmer.ui.

But, in general terms .. I suspect your problem description is a bit too
high level. You need debug into the problem and decompose it a bit more.
Exactly how does the C++ app enumerate the multiple monitors? Is it calling
GDI functions, such as EnumDisplayDevices(), for example? What is it
returning? And so on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top