• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java and Java script

 
Ranch Hand
Posts: 52
1
MySQL Database Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have always assumed that if web browsers can run Java Script
They should be able to run compiled java
But as you know Assume makes an Ass out of You and Me
so I was wondering is compiled Java suitable for Web page (client side) development
or is Java Script the way?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In other words, Java and JavaScript have nothing whatsoever to do with each other. So, no, you can't use Java instead of JavaScript in the browser.

The closest you can come is Applets, and that ain't too close.
 
Rancher
Posts: 600
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could go the JSP/JSF/Servlet route, but that's more like doing the whole web site in Java.

John.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John de Michele wrote:You could go the JSP/JSF/Servlet route, but that's more like doing the whole web site in Java.


All of that Java still runs on the server. In order to control the client-side page, one needs to use JavaScript.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote: . . . one needs to use JavaScript.

No longer a "beginning Java" question. Moving.
 
Stephen Black
Ranch Hand
Posts: 52
1
MySQL Database Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone want to buy a book on learning Java? (Head First Java)
Can anyone recommend a book on Java Script?
I have learn't PHP and really want to learn something that will
be useful on the client side now
Im sure Java is useful but I could spend from now to eternity
learning programming languages and useful things
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are/want to be a developer you are ALWAYS learning. If you do not, you will never stay employed.

Eric
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Flanagan book is still considered to be the "go to" book for JavaScript. But it can be overwhelming.

If you liked the Head First style of the Java book, there's also Head First JavaScript.

Many people rave about JavaScript: The Good Parts, but I'm not personally a big fan of it. It does cut to the chase, but I think it leaves too many important things out.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephen Black wrote:I have learn't PHP and really want to learn something that will be useful on the client side now


PHP, like JSP, is a server-side technology, not a client-side technology.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
not necessarily related to OP, but thought, this might be of interest:
Rhino

I personally am following David Flanagan's incredible book : JavaScript : The definitive guide; I would suggest this book be read by everyone who wants to use JS regularly ... It demonstrates way too many things that makes our lives easier at work. I saw the presentation on YouTube on Good Parts, perhaps some day, I'll get it, for now, I am in love with Flanagan's book, always refer to it, when I need some help.


Personally speaking, because of the dynamic nature of JS and with some good practices, you can write quality stuff talking back to server.

On other technologies, I would have vouched for Flash + Adobe Flex, but the problem I have with Flash is that its owned by Adobe, Had it been open source and the VM would have been spec'd out the way Java VM is, It would have been readily available everywhere (well it is, but still not on mobile as far as I know); Plus the development cycle is much faster with open source IMHO.

Trilochan.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic