Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26944 > unrolled thread

Java script import

Started byAli Arif <aaarif321@hotmail.com>
First post2013-12-16 16:31 +1100
Last post2013-12-16 22:04 -0500
Articles 5 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Java script import Ali Arif <aaarif321@hotmail.com> - 2013-12-16 16:31 +1100
    Re: Java script import lipska the kat <"lipskathekat at yahoo dot co dot uk"> - 2013-12-16 10:08 +0000
      Re: Java script import "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-12-16 22:05 +1100
        Re: Java script import lipska the kat <"lipskathekat at yahoo dot co dot uk"> - 2013-12-16 11:41 +0000
    Re: Java script import Arne Vajhøj <arne@vajhoej.dk> - 2013-12-16 22:04 -0500

#26944 — Java script import

FromAli Arif <aaarif321@hotmail.com>
Date2013-12-16 16:31 +1100
SubjectJava script import
Message-ID<l8m38b$3oh$1@speranza.aioe.org>
Hello,

I need to to use jQuery inside the Java app. How can I enable? I think 
it is error that Eclipse has much Java power but cannot import Java 
script.

[toc] | [next] | [standalone]


#26945

Fromlipska the kat <"lipskathekat at yahoo dot co dot uk">
Date2013-12-16 10:08 +0000
Message-ID<vpedncmEKrmdTDPPnZ2dnUVZ7q6dnZ2d@bt.com>
In reply to#26944
On 16/12/13 05:31, Ali Arif wrote:
> Hello,
>
> I need to to use jQuery inside the Java app. How can I enable? I think
> it is error that Eclipse has much Java power but cannot import Java script.
>


Have a look at Rhino
https://developer.mozilla.org/en-US/docs/Rhino

It's been several years since I last used it but it worked well I seem 
to remember.



-- 
Lipska the Kat©: Troll hunter, sandbox destroyer,
treacherous feline and farscape dreamer of Aeryn Sun
GNU/Linux user #560883 - http://www.linuxcounter.net

[toc] | [prev] | [next] | [standalone]


#26946

From"Qu0ll" <Qu0llSixFour@gmail.com>
Date2013-12-16 22:05 +1100
Message-ID<EfmdnZ8-Ft8XQzPPnZ2dnUVZ_gWdnZ2d@westnet.com.au>
In reply to#26945
"lipska the kat"  wrote in message 
news:vpedncmEKrmdTDPPnZ2dnUVZ7q6dnZ2d@bt.com...

> Have a look at Rhino
> https://developer.mozilla.org/en-US/docs/Rhino
>
> It's been several years since I last used it but it worked well I seem to 
> remember.

I would suggest that you seriously look at Java 8 which is due for release 
in early 2014 because it comes with Nashorn - the JavaScript engine that 
runs on the JVM using invokedynamic byte code.

Nashorn is estimated to be > 5 times faster than Rhino and will get much 
faster over time.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me] 

[toc] | [prev] | [next] | [standalone]


#26947

Fromlipska the kat <"lipskathekat at yahoo dot co dot uk">
Date2013-12-16 11:41 +0000
Message-ID<sZidndEuDvRAezPPnZ2dnUVZ8m-dnZ2d@bt.com>
In reply to#26946
On 16/12/13 11:05, Qu0ll wrote:
> "lipska the kat"  wrote in message
> news:vpedncmEKrmdTDPPnZ2dnUVZ7q6dnZ2d@bt.com...
>
>> Have a look at Rhino
>> https://developer.mozilla.org/en-US/docs/Rhino
>>
>> It's been several years since I last used it but it worked well I seem
>> to remember.
>
> I would suggest that you seriously look at Java 8 which is due for
> release in early 2014 because it comes with Nashorn - the JavaScript
> engine that runs on the JVM using invokedynamic byte code.
>
> Nashorn is estimated to be > 5 times faster than Rhino and will get much
> faster over time.

Heh, I've only just got round to using some of the new Java 7 features 
in anger ... anyway, I'll take a look (eventually).

>
> --
> And loving it,
>
> -Qu0ll (Rare, not extinct)
> _________________________________________________
> Qu0llSixFour@gmail.com
> [Replace the "SixFour" with numbers to email me]


-- 
Lipska the Kat©: Troll hunter, sandbox destroyer,
treacherous feline and farscape dreamer of Aeryn Sun
GNU/Linux user #560883 - http://www.linuxcounter.net

[toc] | [prev] | [next] | [standalone]


#26959

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-12-16 22:04 -0500
Message-ID<52afbf46$0$299$14726298@news.sunsite.dk>
In reply to#26944
On 12/16/2013 12:31 AM, Ali Arif wrote:
> I need to to use jQuery inside the Java app. How can I enable? I think
> it is error that Eclipse has much Java power but cannot import Java script.

Java has had support for embedded scripting since version 6.

The widely used SUN/Oracle Java comes with JavaScript engine.

But I can not see much point in using jQuery inside a Java
application.

jQuery is widely used in Java EE web applications and Eclipse
does support JavaScript.

But that is Java executing server side and JavaScript executing
client side.

I think you need to explain more about what you are trying
to accomplish.

Arne

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web