The Artima Developer Community
Sponsored Link

Jini Forum
jini into applets

1 reply on 1 page. Most recent reply: Jan 20, 2003 9:27 AM by alberto

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Migue

Posts: 1
Nickname: lupin3
Registered: Sep, 2002

jini into applets Posted: Sep 22, 2002 5:45 AM
Reply to this message Reply
Advertisement
. Im trying to learn Jini, ans I can't run a Applet as Client of it. Can you help me, please?.

I have done this:

* Setup all Jini platform and all go right. But when I have changed the Application Client to a Applet, I found the problem.

* I compile the Applet that contains a Object that uses Jini:

javac -d . -classpath %JINI_HOME%\lib\transient-outrigger.jar;%JINI_HOME%\lib\jini-core.jar;%JINI_HOM E%\lib\jini-ext.jar;%JINI_HOME%\lib\sun-util.jar;%JINI_HOME%\lib\space-examples. jar;.; JavaClock.java

That's no problem.

* I run this applet class with AppletViewer, that is, using the web page that contains it:

appletviewer index2.html


* The page, which is in the same directory than Applet (JavaClock.java), is basically the following (index2.html):

<applet codebase="." code="JavaClock.class" width="150" height="150">

<param name="delay" value="100">
<param name="link" value="http://java.sun.com/">
<param name="border" value="5">
<param name="nradius" value="80">
<param name="cfont" value="TimesRoman|BOLD|18">

<param name="bgcolor" value="ffffff">
<param name="shcolor" value="ff0000">
<param name="mhcolor" value="00ff00">
<param name="hhcolor" value="0000ff">

<param name="ccolor" value="dddddd">
<param name="ncolor" value="000000">

</applet>


## THE PROBLEM BECOMES IS THIS:

before GETSimpleService()
java.lang.NoClassDefFoundError: net/jini/core/discovery/LookupLocator
at PotatoMaster.<init>(PotatoMaster.java:44)
at JavaClock.init(JavaClock.java:60)
at sun.applet.AppletPanel.run(AppletPanel.java:341)
at java.lang.Thread.run(Thread.java:536)

## Just before to come the exception, a message is printed, and that implies the object "PotatoMaster" created in the Applet and that can to lookup the service, is found, but the lookuplocator class not.


PLEASE, HELP ME ANYWAY, can you get a example of compilation and execution of a applet using jini?.

THANKS!


alberto

Posts: 5
Nickname: pichuerca
Registered: Jan, 2003

Re: jini into applets Posted: Jan 20, 2003 9:27 AM
Reply to this message Reply
Hello:

I imagine it's too late to answer you but here it's my opinion. Applets are not allowed to establish external connections to other machines.

Alberto.

Flat View: This topic has 1 reply on 1 page
Topic: Jini Books Previous Topic   Next Topic Topic: Can Jini run on HP UX?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use