Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

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

Reply
 
Old 10-05-2007   #1 (permalink)
gamiravi.d


 
 

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

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.


My System SpecsSystem Spec
Old 10-05-2007   #2 (permalink)
Michael Jennings


 
 

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

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.

<gamiravi.d@xxxxxx> wrote in message
news:1191597222.125717.178670@xxxxxx
Quote:

> 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.
>

My System SpecsSystem Spec
Old 10-05-2007   #3 (permalink)
Andrew McLaren


 
 

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

<gamiravi.d@xxxxxx> wrote ...
Quote:

> 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.

--
Andrew McLaren
amclar (at) optusnet dot com dot au


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista and Windows Server 2000 problem. Vista networking & sharing
Vista crashes firefox every time I try to use del.icio.us firefoxextension - is this a java problem? Vista General
Tomcat 6 in Vista Home Premium Vista General
installing tomcat on vista Vista networking & sharing
Vista-Java problem Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46