Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help running Java as script (urgent)  RSS feed

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having trouble getting Java to run as JavaScript. I set the script language to "Java," so I expect the class to compile when the page is loaded, but nothing is happening!
 
Bert Bates
author
Sheriff
Posts: 8945
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use ruby
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marc --

Duh! You've got an extra set of parentheses after "class HelloWorld" -- no wonder it's not working!
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
Marc --

Duh! You've got an extra set of parentheses after "class HelloWorld" -- no wonder it's not working!

Thanks, Ernest! It works great now!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!