473,657 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Liveconnect missing?

I am trying to communicate back to my web page using LiveConnect. I
just installed JDK5 Netbeans and have created a few applets. I have
even called the applets from Javascript. However when I use the import
line below it doesnt find the library.

I looked for jaws.jar but its not under the Java directory. Does anyone
know where it is? Do I have to download it?

import netscape.javasc ript.*;

This is where I installed the JDK

C:\Program Files\Java\jdk1 .5.0_06

Also, is LiveConnect the only way to communicate with Javascript or is
there some new way of doing this.

I am using IE6 and alos Firefox.

Thanks

Jun 14 '06 #1
6 7661
j_********@yaho o.com wrote:
I am trying to communicate back to my web page using LiveConnect. I
just installed JDK5 Netbeans and have created a few applets. I have
even called the applets from Javascript. However when I use the import
line below it doesnt find the library.

I looked for jaws.jar but its not under the Java directory. Does anyone
know where it is? Do I have to download it?

import netscape.javasc ript.*;

This is where I installed the JDK

C:\Program Files\Java\jdk1 .5.0_06

Also, is LiveConnect the only way to communicate with Javascript or is
there some new way of doing this.

I am using IE6 and alos Firefox.

Thanks


Hi,

Java <-> Javascript is good fun. :-)

Read this for background information and also for links to download needed
packages:
http://java.sun.com/products/plugin/.../jsobject.html
http://developers.sun.com/sw/docs/ex...ng_params.html

Or do as I did, go to java.sun.com and type javascript into the searchbox.
:-)

Good luck,
Erwin Moller
Jun 15 '06 #2
Hi,

j_********@yaho o.com wrote:
I am trying to communicate back to my web page using LiveConnect. I
just installed JDK5 Netbeans and have created a few applets. I have
even called the applets from Javascript. However when I use the import
line below it doesnt find the library.

I looked for jaws.jar but its not under the Java directory. Does anyone
know where it is? Do I have to download it?

import netscape.javasc ript.*;

This is where I installed the JDK

C:\Program Files\Java\jdk1 .5.0_06

Also, is LiveConnect the only way to communicate with Javascript or is
there some new way of doing this.

I am using IE6 and alos Firefox.

Thanks


I have information about LiveConnect on this page:
http://www.galasoft-lb.ch/myjavascri...102/index.html
and
http://www.galasoft-lb.ch/myjavascri...130/index.html

Even though these pages are quite old now, the technology still seems to
work in the same way that it did before.

As for netscape.javasc ript.*, this is how I did it back then:
http://www.galasoft-lb.ch/myjavascri...veconnect.html

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 15 '06 #3
I guess people havent read my orginal post correctly. My question was
where to get Liveconnect to download. I cannot find it anywhere on my
computer. Its not on my system when i use the import command. I cant
find the jaws.jar. Where is the website to actually get it.

Thanks

Laurent Bugnion wrote:
Hi,

j_********@yaho o.com wrote:
I am trying to communicate back to my web page using LiveConnect. I
just installed JDK5 Netbeans and have created a few applets. I have
even called the applets from Javascript. However when I use the import
line below it doesnt find the library.

I looked for jaws.jar but its not under the Java directory. Does anyone
know where it is? Do I have to download it?

import netscape.javasc ript.*;

This is where I installed the JDK

C:\Program Files\Java\jdk1 .5.0_06

Also, is LiveConnect the only way to communicate with Javascript or is
there some new way of doing this.

I am using IE6 and alos Firefox.

Thanks


I have information about LiveConnect on this page:
http://www.galasoft-lb.ch/myjavascri...102/index.html
and
http://www.galasoft-lb.ch/myjavascri...130/index.html

Even though these pages are quite old now, the technology still seems to
work in the same way that it did before.

As for netscape.javasc ript.*, this is how I did it back then:
http://www.galasoft-lb.ch/myjavascri...veconnect.html

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch


Jun 16 '06 #4
Hi,

j_********@yaho o.com wrote:
I guess people havent read my orginal post correctly. My question was
where to get Liveconnect to download. I cannot find it anywhere on my
computer. Its not on my system when i use the import command. I cant
find the jaws.jar. Where is the website to actually get it.

Thanks


I had read and understood what you are asking. However, the page I gave you
http://www.galasoft-lb.ch/myjavascri...veconnect.html
seems to be outdated. A quick search on Google confirmed that the
java40.jar file is not used anymore, but instead in jaws.jar. Sorry for
that.

Anyway, I made a quick Google search, and found this page:
http://java.sun.com/developer/JDCTec...0219.html#tip2

I then looked on my PC, and found the jaws.jar file under
C:\Program Files\Java\j2re 1.4.1_02\lib

This is where the Java runtime (not SDK) is installed.

So to summarize: Install the JVM, check in the lib subdirectory, and
then follow the instructions at
http://java.sun.com/developer/JDCTec...0219.html#tip2

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jun 16 '06 #5
j_********@yaho o.com wrote:
I guess people havent read my orginal post correctly. My question was
where to get Liveconnect to download. I cannot find it anywhere on my
computer. Its not on my system when i use the import command. I cant
find the jaws.jar. Where is the website to actually get it.


I don't know anything about jaws.jar...

I use plugin.jar (that contains netscape.javasc ript.*) which I found in
"C:\jdk1.5.0_06 \jre\lib". I copied it into my sdk lib directory while
developing ("C:\jdk1.5.0_0 6\\lib")

Then I can call javascript functions from my applet like this:

import netscape.javasc ript.*;

...
// Call the JS function 'appletReady()' , and tell it we're ready to
roll...
JSObject appletOwner = JSObject.getWin dow ( this );
String[] args = new String[]{};
appletOwner.cal l ( "appletRead y", args );
...

--
Dag.
Jun 16 '06 #6
I found the plugin.jar and then I added it as a jar library in the
Netbeans IDE project.

Many thanks to both of you for your help.

Dag Sunde wrote:
j_********@yaho o.com wrote:
I guess people havent read my orginal post correctly. My question was
where to get Liveconnect to download. I cannot find it anywhere on my
computer. Its not on my system when i use the import command. I cant
find the jaws.jar. Where is the website to actually get it.


I don't know anything about jaws.jar...

I use plugin.jar (that contains netscape.javasc ript.*) which I found in
"C:\jdk1.5.0_06 \jre\lib". I copied it into my sdk lib directory while
developing ("C:\jdk1.5.0_0 6\\lib")

Then I can call javascript functions from my applet like this:

import netscape.javasc ript.*;

...
// Call the JS function 'appletReady()' , and tell it we're ready to
roll...
JSObject appletOwner = JSObject.getWin dow ( this );
String[] args = new String[]{};
appletOwner.cal l ( "appletRead y", args );
...

--
Dag.


Jun 16 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1679
by: Steven T. Hatton | last post by:
If you happen to have Accelerated C++ by Koenig and Moo, and haven't gotten around to reading it, I suggest you count the pages between page 18 and page 51. I came up with zero. This is very disappointing since I have been intending to read the book for some time now. I finally picked it up with the expectation that I would breeze through it as a review and an alternative expert perspective on C++. Now it looks as though I will have to...
3
1524
by: Alan Pocklington | last post by:
Hi, I've created a Java Applet that allows the user to select a record. As the user makes the selection, the applet uses LiveConnect (JSObject) to write the record id to a html field (the name of which is passed in to the applet as an arg). This all works fine, but now I have two instances of the same applet running on a page, both linked to different HTML fields so that making a selection from applet 1 updates html field 1, a...
1
2073
by: Guillaume CABANAC | last post by:
Hi folks, Is liveconnect still available in Firefox as it is in NS Navigator ? I would like to call Java code from JavaScript in Firefox... Do you think it is possible with liveconnect ? Does a better strategy exists ? I tried to call Java from Javascript like this : var myBook = new Packages.Book() ;
1
1735
by: admin | last post by:
Hi all, I wrote a small text editor (using a JTextPane) in order to ease the use of a CMS, in a more WYSIWYG way. Basically, you can see directly the effect of setting the background color, the text color, bold/italic/underlined styles and so on... You can have several applet on one page as there is one applet per column and per language.
8
3372
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some problems. IE crashes when one refreshes the page or leave the page. This happens only after calling the Java method more than once. It does not crash if the Java method is called just once and then the page is refreshed. FireFox does not crash at all...
0
3090
by: kris | last post by:
hi can any one help me out, i have written a code for Word Indexing using Dll's i think this is an incomplete code for WORD INDEX. I had encountered this error "Error! No index entries found" when i opened word document can any one fill out the missing code with this.
17
3012
by: Justin Emlay | last post by:
I'm hopping someone can help me out on a payroll project I need to implement. To start we are dealing with payroll periods. So we are dealing with an exact 10 days (Monday - Friday, 2 weeks). I have a dataset as follows (1 week to keep it short): Employee 1 - Date 1 Employee 1 - Date 2
1
2137
by: Alexandre Lahure | last post by:
Hi all, The facts : a rich text editing applet, a HTML/Javascript toolbar and Liveconnect to make them communicate alltogether. - Java to JS communication (for updating the state of the toolbar - text align, style, color) is OK - JS to Java communication (for changing text align, style, color) doesn't work as expected : * Under Firefox, the first call of a Java method is DAMN SLOW (near 20
0
8303
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8602
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1941
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.