all groups > vj# > february 2004 >
You're in the

vj#

group:

Getting JBC to work



Getting JBC to work Simon Stead
2/18/2004 5:57:04 AM
vj#: Hi,

I'm trying to convert a Java Applet into a Java Browser
Control.

I have compiled the .java source files in Visual
Studio.NET & produced a dll.
I have also converted my HTML to use the new Browser
Control & installed JBC on my machine.
However, when I upload all the files & try & access them
all I get is a white square with a red cross in it (i.e.
broken object).

All paths are correct, but I suspect my problem may lie
with the GUID. I obtained this value from the 'Create
GUID' option in VS.NET 'Tools' menu. Is this correct??

Re: Getting JBC to work Simon Stead
2/18/2004 9:38:20 AM
Thanks for the quick reply...

I changed the classid, but this has had very limited=20
success. Now instead of the broken object symbol i just=20
get a white screen & no indication of progress/problems=20
whatsoever!!

I don't get the JBC security dialog, even though my=20
control panel is set to prompt when JBCs are detected on=20
pages. So presumably I can assume it hasn't started=20
excecuting my code yet?

Also the instructions on how to debug a JBC on the MSDN=20
refer to a 'Debugging' section on the 'Configuration=20
Properties' tab, which is not present in my version of=20
VS.NET (v7.0). Does this mean I can't debug JBCs without=20
upgrading VS???

Any help greatly appreciated

Simon.


[quoted text, click to view]
us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJB
rowserControls.asp
[quoted text, click to view]
Re: Getting JBC to work Lars-Inge Tønnessen
2/18/2004 5:14:10 PM

Did you use the ID to this ActiveX object?
CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"

From the msdn docs:
CLASSID
The CLASSID of the ActiveX control that downloads and executes J# Browser
Controls. This exact CLASSID must be used in the J# Browser Controls
<OBJECT> tag.

<OBJECT
CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
WIDTH= pixels
HEIGHT= pixels
ID=browserControlName
ALIGN= alignment
HSPACE= pixels
VSPACE= pixels
VJSCODEBASE = codebaseURL
[quoted text, click to view]
<PARAM NAME = parameter1 VALUE = value>
<PARAM NAME = parameter2 VALUE = value>
. . .
alternateHTML
</OBJECT>


Example:
<object
CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
width=600
height=600
ID="myApp"
VJSCODEBASE="myApp.dll#myApp">
</object>


http://msdn.microsoft.com/library/en-us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJBrowserControls.asp


--
Regards,
Lars-Inge Tønnessen
http://emailme.larsinge.com
http://www.larsinge.com

Re: Getting JBC to work mikegreonline NO[at]SPAM microsoft.com
2/18/2004 7:41:51 PM
Hi Simon,

You should be able to debug your J# Browser Control with VS. NET 2002.
Have you verified that you have the following installed on the client
machine:

.Net Framework
J# Redist
J# Browser Controls Redist

Please make sure you have all of these installed on the machine you are
running IE on. Also have you copied the dll and html into a virtual
directory on your web server?

Thanks,

Michael Green
Microsoft Developer Support

--------------------
| Content-Class: urn:content-classes:message
| From: "Simon Stead" <stead_simon@hotmail.com>
| Sender: "Simon Stead" <stead_simon@hotmail.com>
| References: <1294b01c3f627$171a68b0$a501280a@phx.gbl>
<e18CApj9DHA.328@tk2msftngp13.phx.gbl>
| Subject: Re: Getting JBC to work
| Date: Wed, 18 Feb 2004 09:38:20 -0800
| Lines: 77
| Message-ID: <11f5901c3f646$001d7520$a301280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcP2RgAdrzTx7oysRz6XWINNROrVsA==
| Newsgroups: microsoft.public.dotnet.vjsharp
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.vjsharp:5465
| NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
|
| Thanks for the quick reply...
| I changed the classid, but this has had very limited
| success. Now instead of the broken object symbol i just
| get a white screen & no indication of progress/problems
| whatsoever!!
| I don't get the JBC security dialog, even though my
| control panel is set to prompt when JBCs are detected on
| pages. So presumably I can assume it hasn't started
| excecuting my code yet?
| Also the instructions on how to debug a JBC on the MSDN
| refer to a 'Debugging' section on the 'Configuration
| Properties' tab, which is not present in my version of
| VS.NET (v7.0). Does this mean I can't debug JBCs without
| upgrading VS???
| Any help greatly appreciated
| Simon.
| >-----Original Message-----
| >
| >Did you use the ID to this ActiveX object?
| >CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
| >
| >From the msdn docs:
| >CLASSID
| >The CLASSID of the ActiveX control that downloads and
| executes J# Browser
| >Controls. This exact CLASSID must be used in the J#
| Browser Controls
| ><OBJECT> tag.
| >
| ><OBJECT
| > CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
| > WIDTH= pixels
| > HEIGHT= pixels
| > ID=browserControlName
| > ALIGN= alignment
| > HSPACE= pixels
| > VSPACE= pixels
| > VJSCODEBASE = codebaseURL
| >>
| > <PARAM NAME = parameter1 VALUE = value>
| > <PARAM NAME = parameter2 VALUE = value>
| > . . .
| > alternateHTML
| ></OBJECT>
| >
| >
| >Example:
| ><object
| > CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
| > width=600
| > height=600
| > ID="myApp"
| > VJSCODEBASE="myApp.dll#myApp">
| ></object>
| >
| >
| >http://msdn.microsoft.com/library/en-
| us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJB
| rowserControls.asp
| >
| >
| >--
| >Regards,
| >Lars-Inge Tønnessen
| >http://emailme.larsinge.com
| >http://www.larsinge.com
| >
| >
| >.
| >
|
Re: Getting JBC to work Lars-Inge Tønnessen
2/18/2004 8:28:59 PM

Do you run the 2002 edition?


From the msdn docs:
Q: What are the system requirements for using the J# Browser Controls?

A: J# Browser Controls require the .NET Framework Redistributable Package
version 1.1. Developers will also need either Visual Studio .NET 2003 or the
..NET Framework SDK 1.1 to migrate their Java applets to J# Browser Controls.

--
Regards,
Lars-Inge Tønnessen
http://emailme.larsinge.com
http://www.larsinge.com


Re: Getting JBC to work anonymous NO[at]SPAM discussions.microsoft.com
2/19/2004 7:45:45 AM
Hi,

I've had slightly more progress, but no cigar

Firstly, your queries...
[quoted text, click to view]
directory on your web server? -- Yes

I used caspol to set permissions (something which doesn't=20
seem to be mentioned anywhere on MS JBC pages), and now I=20
get a grey screen, rather than a white screen. I also now=20
get the security prompt, so the JBC is now being detected.

However, all i am left with is a status message=20
saying 'Unable to load the J# Browser Control in file=20
http://..... .dll' (my applet is the simplest 'Hello=20
world' style & i'm sure path/dll/class names are all=20
correct).

Any ideas???

Also, are there any demo JBCs around that I can use to=20
test my client setup? I can't seem to find any anywhere=20
(is anyone out there actually using this!?)

Thanks,
Simon.

[quoted text, click to view]
Re: Getting JBC to work Lars-Inge Tønnessen
2/19/2004 5:03:35 PM
This sounds very good.

You may have forgotten to change the access permissions to the dll file on
your web server.

--
Regards,
Lars-Inge Tønnessen
http://emailme.larsinge.com
http://www.larsinge.com


Re: Getting JBC to work mikegreonline NO[at]SPAM microsoft.com
2/20/2004 12:41:34 AM
If you can give me your email address I can put together a sample for you
to try.

Thanks,

Michael Green
Microsoft Developer Support

--------------------
| Content-Class: urn:content-classes:message
| From: <anonymous@discussions.microsoft.com>
| Sender: <anonymous@discussions.microsoft.com>
| References: <1294b01c3f627$171a68b0$a501280a@phx.gbl>
<e18CApj9DHA.328@tk2msftngp13.phx.gbl>
<11f5901c3f646$001d7520$a301280a@phx.gbl>
<L$2AOrl9DHA.1988@cpmsftngxa07.phx.gbl>
| Subject: Re: Getting JBC to work
| Date: Thu, 19 Feb 2004 07:45:45 -0800
| Lines: 160
| Message-ID: <1283101c3f6ff$70086e80$a301280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcP2/3AFskJ2evpkRBm9DSRglzGkcg==
| Newsgroups: microsoft.public.dotnet.vjsharp
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.vjsharp:5484
| NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
|
| Hi,
| I've had slightly more progress, but no cigar
| Firstly, your queries...
| >Have you verified that you have the following installed
| on the client machine:
| >.Net Framework -- Yes, both SDK (setup.exe) & redist
| (dotnetfx.exe)
| >J# Redist -- Yes v1.1 (vjredist.exe)
| >J# Browser Controls Redist -- Yes, v1.1 (JBC.exe)
| >Also have you copied the dll and html into a virtual
| directory on your web server? -- Yes
| I used caspol to set permissions (something which doesn't
| seem to be mentioned anywhere on MS JBC pages), and now I
| get a grey screen, rather than a white screen. I also now
| get the security prompt, so the JBC is now being detected.
| However, all i am left with is a status message
| saying 'Unable to load the J# Browser Control in file
| http://..... .dll' (my applet is the simplest 'Hello
| world' style & i'm sure path/dll/class names are all
| correct).
| Any ideas???
| Also, are there any demo JBCs around that I can use to
| test my client setup? I can't seem to find any anywhere
| (is anyone out there actually using this!?)
| Thanks,
| Simon.
| >-----Original Message-----
| >Hi Simon,
| >
| >You should be able to debug your J# Browser Control with
| VS. NET 2002.
| >Have you verified that you have the following installed
| on the client
| >machine:
| >
| >.Net Framework
| >J# Redist
| >J# Browser Controls Redist
| >
| >Please make sure you have all of these installed on the
| machine you are
| >running IE on. Also have you copied the dll and html into
| a virtual
| >directory on your web server?
| >
| >Thanks,
| >
| >Michael Green
| >Microsoft Developer Support
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: "Simon Stead" <stead_simon@hotmail.com>
| >| Sender: "Simon Stead" <stead_simon@hotmail.com>
| >| References: <1294b01c3f627$171a68b0$a501280a@phx.gbl>
| ><e18CApj9DHA.328@tk2msftngp13.phx.gbl>
| >| Subject: Re: Getting JBC to work
| >| Date: Wed, 18 Feb 2004 09:38:20 -0800
| >| Lines: 77
| >| Message-ID: <11f5901c3f646$001d7520$a301280a@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: quoted-printable
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Thread-Index: AcP2RgAdrzTx7oysRz6XWINNROrVsA==
| >| Newsgroups: microsoft.public.dotnet.vjsharp
| >| Path: cpmsftngxa07.phx.gbl
| >| Xref: cpmsftngxa07.phx.gbl
| microsoft.public.dotnet.vjsharp:5465
| >| NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
| >| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
| >|
| >| Thanks for the quick reply...
| >| I changed the classid, but this has had very limited
| >| success. Now instead of the broken object symbol i just
| >| get a white screen & no indication of progress/problems
| >| whatsoever!!
| >| I don't get the JBC security dialog, even though my
| >| control panel is set to prompt when JBCs are detected
| on
| >| pages. So presumably I can assume it hasn't started
| >| excecuting my code yet?
| >| Also the instructions on how to debug a JBC on the MSDN
| >| refer to a 'Debugging' section on the 'Configuration
| >| Properties' tab, which is not present in my version of
| >| VS.NET (v7.0). Does this mean I can't debug JBCs
| without
| >| upgrading VS???
| >| Any help greatly appreciated
| >| Simon.
| >| >-----Original Message-----
| >| >
| >| >Did you use the ID to this ActiveX object?
| >| >CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
| >| >
| >| >From the msdn docs:
| >| >CLASSID
| >| >The CLASSID of the ActiveX control that downloads and
| >| executes J# Browser
| >| >Controls. This exact CLASSID must be used in the J#
| >| Browser Controls
| >| ><OBJECT> tag.
| >| >
| >| ><OBJECT
| >| > CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
| >| > WIDTH= pixels
| >| > HEIGHT= pixels
| >| > ID=browserControlName
| >| > ALIGN= alignment
| >| > HSPACE= pixels
| >| > VSPACE= pixels
| >| > VJSCODEBASE = codebaseURL
| >| >>
| >| > <PARAM NAME = parameter1 VALUE = value>
| >| > <PARAM NAME = parameter2 VALUE = value>
| >| > . . .
| >| > alternateHTML
| >| ></OBJECT>
| >| >
| >| >
| >| >Example:
| >| ><object
| >| > CLASSID="clsid:a399591c-0fd0-41f8-9d25-
| bd76f632415f"
| >| > width=600
| >| > height=600
| >| > ID="myApp"
| >| > VJSCODEBASE="myApp.dll#myApp">
| >| ></object>
| >| >
| >| >
| >| >http://msdn.microsoft.com/library/en-
| >|
| us/dv_vstechart/html/vjtskMigratingJavaAppletsToMicrosoftJB
| >| rowserControls.asp
| >| >
| >| >
| >| >--
| >| >Regards,
| >| >Lars-Inge Tønnessen
| >| >http://emailme.larsinge.com
| >| >http://www.larsinge.com
| >| >
| >| >
| >| >.
| >| >
| >|
| >
| >.
| >
|
Re: Getting JBC to work Simon Stead
2/20/2004 6:56:05 AM
My email address is in the from line of the message!

[quoted text, click to view]
Re: Getting JBC to work mikegreonline NO[at]SPAM microsoft.com
2/20/2004 9:44:27 PM
Okay, I will send you a sample to that address. I didn't assume that was a
valid address because a lot of people use dummy email addresses in their
newsreaders..

Thanks,

Michael Green
Microsoft Developer Support

--------------------
| Content-Class: urn:content-classes:message
| From: "Simon Stead" <stead_simon@hotmail.com>
| Sender: "Simon Stead" <stead_simon@hotmail.com>
| References: <1294b01c3f627$171a68b0$a501280a@phx.gbl>
<e18CApj9DHA.328@tk2msftngp13.phx.gbl>
<11f5901c3f646$001d7520$a301280a@phx.gbl>
<L$2AOrl9DHA.1988@cpmsftngxa07.phx.gbl>
<1283101c3f6ff$70086e80$a301280a@phx.gbl>
<NvJhPp09DHA.2100@cpmsftngxa07.phx.gbl>
| Subject: Re: Getting JBC to work
| Date: Fri, 20 Feb 2004 06:56:05 -0800
| Lines: 213
| Message-ID: <13e6401c3f7c1$aa4a2300$a601280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcP3wapH/l44bzvmSR60gWvEbRlbZA==
| Newsgroups: microsoft.public.dotnet.vjsharp
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.vjsharp:5497
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
|
| My email address is in the from line of the message!
| >-----Original Message-----
| >If you can give me your email address I can put together
| a sample for you
| >to try.
| >
| >Thanks,
| >
| >Michael Green
| >Microsoft Developer Support
| >
| >--------------------
| >| Content-Class: urn:content-classes:message
| >| From: <anonymous@discussions.microsoft.com>
| >| Sender: <anonymous@discussions.microsoft.com>
| >| References: <1294b01c3f627$171a68b0$a501280a@phx.gbl>
| ><e18CApj9DHA.328@tk2msftngp13.phx.gbl>
| ><11f5901c3f646$001d7520$a301280a@phx.gbl>
| ><L$2AOrl9DHA.1988@cpmsftngxa07.phx.gbl>
| >| Subject: Re: Getting JBC to work
| >| Date: Thu, 19 Feb 2004 07:45:45 -0800
| >| Lines: 160
| >| Message-ID: <1283101c3f6ff$70086e80$a301280a@phx.gbl>
| >| MIME-Version: 1.0
| >| Content-Type: text/plain;
| >| charset="iso-8859-1"
| >| Content-Transfer-Encoding: quoted-printable
| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| >| Thread-Index: AcP2/3AFskJ2evpkRBm9DSRglzGkcg==
| >| Newsgroups: microsoft.public.dotnet.vjsharp
| >| Path: cpmsftngxa07.phx.gbl
| >| Xref: cpmsftngxa07.phx.gbl
| microsoft.public.dotnet.vjsharp:5484
| >| NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
| >| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
| >|
| >| Hi,
| >| I've had slightly more progress, but no cigar
| >| Firstly, your queries...
| >| >Have you verified that you have the following
| installed
| >| on the client machine:
| >| >.Net Framework -- Yes, both SDK (setup.exe) & redist
| >| (dotnetfx.exe)
| >| >J# Redist -- Yes v1.1 (vjredist.exe)
| >| >J# Browser Controls Redist -- Yes, v1.1 (JBC.exe)
| >| >Also have you copied the dll and html into a virtual
| >| directory on your web server? -- Yes
| >| I used caspol to set permissions (something which
| doesn't
| >| seem to be mentioned anywhere on MS JBC pages), and now
| I
| >| get a grey screen, rather than a white screen. I also
| now
| >| get the security prompt, so the JBC is now being
| detected.
| >| However, all i am left with is a status message
| >| saying 'Unable to load the J# Browser Control in file
| >| http://..... .dll' (my applet is the simplest 'Hello
| >| world' style & i'm sure path/dll/class names are all
| >| correct).
| >| Any ideas???
| >| Also, are there any demo JBCs around that I can use to
| >| test my client setup? I can't seem to find any anywhere
| >| (is anyone out there actually using this!?)
| >| Thanks,
| >| Simon.
| >| >-----Original Message-----
| >| >Hi Simon,
| >| >
| >| >You should be able to debug your J# Browser Control
| with
| >| VS. NET 2002.
| >| >Have you verified that you have the following
| installed
| >| on the client
| >| >machine:
| >| >
| >| >.Net Framework
| >| >J# Redist
| >| >J# Browser Controls Redist
| >| >
| >| >Please make sure you have all of these installed on
| the
| >| machine you are
| >| >running IE on. Also have you copied the dll and html
| into
| >| a virtual
| >| >directory on your web server?
| >| >
| >| >Thanks,
| >| >
| >| >Michael Green
| >| >Microsoft Developer Support
| >| >
| >| >--------------------
| >| >| Content-Class: urn:content-classes:message
| >| >| From: "Simon Stead" <stead_simon@hotmail.com>
| >| >| Sender: "Simon Stead" <stead_simon@hotmail.com>
| >| >| References: <1294b01c3f627$171a68b0
| $a501280a@phx.gbl>
| >| ><e18CApj9DHA.328@tk2msftngp13.phx.gbl>
| >| >| Subject: Re: Getting JBC to work
| >| >| Date: Wed, 18 Feb 2004 09:38:20 -0800
| >| >| Lines: 77
| >| >| Message-ID: <11f5901c3f646$001d7520$a301280a@phx.gbl>
| >| >| MIME-Version: 1.0
| >| >| Content-Type: text/plain;
| >| >| charset="iso-8859-1"
| >| >| Content-Transfer-Encoding: quoted-printable
| >| >| X-Newsreader: Microsoft CDO for Windows 2000
| >| >| X-MimeOLE: Produced By Microsoft MimeOLE
| V5.50.4910.0300
| >| >| Thread-Index: AcP2RgAdrzTx7oysRz6XWINNROrVsA==
| >| >| Newsgroups: microsoft.public.dotnet.vjsharp
| >| >| Path: cpmsftngxa07.phx.gbl
| >| >| Xref: cpmsftngxa07.phx.gbl
| >| microsoft.public.dotnet.vjsharp:5465
| >| >| NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
| >| >| X-Tomcat-NG: microsoft.public.dotnet.vjsharp
| >| >|
| >| >| Thanks for the quick reply...
| >| >| I changed the classid, but this has had very limited
| >| >| success. Now instead of the broken object symbol i
| just
| >| >| get a white screen & no indication of
| progress/problems
| >| >| whatsoever!!
| >| >| I don't get the JBC security dialog, even though my
| >| >| control panel is set to prompt when JBCs are
| detected
| >| on
| >| >| pages. So presumably I can assume it hasn't started
| >| >| excecuting my code yet?
| >| >| Also the instructions on how to debug a JBC on the
| MSDN
| >| >| refer to a 'Debugging' section on the 'Configuration
| >| >| Properties' tab, which is not present in my version
| of
| >| >| VS.NET (v7.0). Does this mean I can't debug JBCs
| >| without
| >| >| upgrading VS???
| >| >| Any help greatly appreciated
| >| >| Simon.
| >| >| >-----Original Message-----
| >| >| >
| >| >| >Did you use the ID to this ActiveX object?
| >| >| >CLASSID="clsid:a399591c-0fd0-41f8-9d25-bd76f632415f"
| >| >| >
| >| >| >From the msdn docs:
| >| >| >CLASSID
| >| >| >The CLASSID of the ActiveX control that downloads
| and
| >| >| executes J# Browser
| >| >| >Controls. This exact CLASSID must be used in the J#
| >| >| Browser Controls
| >| >| ><OBJECT> tag.
| >| >| >
AddThis Social Bookmark Button