LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2012, 02:47 PM   #1
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Cool Lua and Java...


Hi gang!

Okay, so, it's sunday nite, I'm due at work within eight hours, and I had plenty of time to think (not good for the population around me ) and I was wondering if there's a way for scriptlets to be used in a Java Applet. I've stumbled accross Lua, but did not find a Lua interpreter for Java on Oracle's site...but, I may not have looked in the right place

So, any Lua/Java possibilities?

Thanks for the feedback, and you know, any feedback (real, zany, weird, funny,...) is welcome!

Greetz!

Thor
 
Old 04-01-2012, 07:14 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
LuaJ seems to be the most Google-able. Have you seen that yet?

http://sourceforge.net/projects/luaj

But there's probably something similar in a bunch of other scripting languages:

Python: http://www.jython.org/

Or JavaScript would be a very natural choice, there are many projects to run javascript from java. For example Rhino (http://www.mozilla.org/rhino/). Actually, Java 6 has native support for this , I believe.
 
Old 04-02-2012, 10:07 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766

Original Poster
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Thanks!

In fact...
Quote:
Actually, Java 6 has native support for this , I believe.
...this could be an option: something (more) native...

I did find luaj...but as a "plan-B" because it's a third party thing...
Lua was/is a choice because it seems pretty simple to learn/implement, so my (end) users could script their needs themselves. In hindsight...I'll have to look into security...I dont want to end up like the "other one" where a simple script could lead to a world-wide virus...
 
  


Reply

Tags
interpreter, java, lua



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a good Lua IDE. merkur958 Programming 3 10-01-2012 03:05 PM
Conky + lua flyinggeorge Linux - Software 6 03-05-2012 08:47 PM
Lua C API Question MTK358 Programming 4 08-14-2011 02:06 PM
Lua not found, yet installed adriv Slackware 20 05-22-2007 11:42 AM
Lua - seperating a string blackman890 Programming 13 03-28-2005 10:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration