Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Compiling Java scripts in programs  (Read 1162 times)
0 Members and 1 Guest are viewing this topic.
Offline K.I.L.E.R

Senior Member




Java games rock!


« Posted 2005-03-23 20:37:53 »

I have a Java program and I want to be able to use Java as a a scripting language in my program.
I want to be able to inherit from a class in my program to create a new class and load it into my program.

I've searched Google about this and I don't believe I'm using the appropriate keywords, because all I get are JIT articles.

Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Online kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2005-03-24 05:04:16 »

These threads will probably help:

This one ends up talking about BeanShell which would do what you ask - http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=cluebies;action=display;num=1109875977

And this one shows how to compile code progmatically:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1111533366

Kev

Offline K.I.L.E.R

Senior Member




Java games rock!


« Reply #2 - Posted 2005-03-24 05:52:12 »

Thank you, the 2nd thread had what I was looking for.
Personally I avoid Beans like the plague.

Quote
These threads will probably help:

This one ends up talking about BeanShell which would do what you ask - http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=cluebies;action=display;num=1109875977

And this one shows how to compile code progmatically:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=2D;action=display;num=1111533366

Kev


Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #3 - Posted 2005-03-24 06:36:50 »

Quote
Thank you, the 2nd thread had what I was looking for.
Personally I avoid Beans like the plague.



You need to actually read the thread; beanshell has nothing at all to do with javabeans.

/me suspects it was named beanshell so that it would abbreviate to bsh

malloc will be first against the wall when the revolution comes...
Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #4 - Posted 2005-03-24 11:53:49 »

I started the first thread and got some great advice and actually using both sets of advice...anyway...beanshell turned out to be fantastic so far.

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline K.I.L.E.R

Senior Member




Java games rock!


« Reply #5 - Posted 2005-03-24 12:05:29 »

I think you're right. Smiley
http://www.beanshell.org/intro.html

Looks really good.

Quote


You need to actually read the thread; beanshell has nothing at all to do with javabeans.

/me suspects it was named beanshell so that it would abbreviate to bsh


Vorax:
Is there a name for a "redneck" programmer?

Jeff:
Unemployed. Wink
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #6 - Posted 2005-03-25 01:34:11 »

long link

There are some articles about NetRexx, Nice, Rhino, JRuby, Groovy and Jython.

And there is also BeanShell and janino.

弾幕 ☆ @mahonnaiseblog
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #7 - Posted 2005-04-07 10:38:54 »

Here is a pretty recent (March 14, 2005) article:
http://www.javaworld.com/javaworld/jw-03-2005/jw-0314-scripting.html

After at short chat with Mazon I gave Groovy a try... it's nice that you can compile down to class files, but the classes are a bit cluttered with junk and you need to ship some files of the package either way (dunno exactly which ones).

Well, I settled with beanshell. It does what I want and I can turn it rather easly into usual code at the end.

弾幕 ☆ @mahonnaiseblog
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #8 - Posted 2005-04-07 11:21:38 »

You could also look at IBM's Jikes.  It claims to be a fast compiler and is now open source.

http://sourceforge.net/projects/jikes/

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (24 views)
2014-07-24 01:59:36

Riven (24 views)
2014-07-23 21:16:32

Riven (18 views)
2014-07-23 21:07:15

Riven (21 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (45 views)
2014-07-17 23:47:54

danieldean (36 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (54 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!