java gaming comunity is the best, thanx you all especially you endolf for link to kaffe and blackdown.
Generally kaffe is virtual machine but i looked at this site again and in the links sections i found many useful links and even much more that i expected there are lots of compilers i was thinking for example:
http://kiev.forestro.com/ - now site is not working but in future maybe, downloads can be found in google
http://www.eclipse.org/ - well it appears that it has it’s own built in compiler
http://nice.sourceforge.net/ - it is a nice language extended java language
http://pizzacompiler.sourceforge.net/ - last update is from 2002, also extends java language
other can be found at this site:
http://www.thefreecountry.com/compilers/java.shtml - many useful opensource project links, probably everything you would like to have
http://www.mathtools.net/Java/Compilers/ - registration required, collection of compilers links
AND NOW FRIENDS SOMETHIGN SPECIAL
www.janino.net - it is more than simple compiler, written in pure java, quite small jar is 359 kb, in January 18, 2006 new version was released (Version 2.3.17) with many features, and for me the most exciting things:
http://www.janino.net/javadoc/org/codehaus/janino/ExpressionEvaluator.html - expression evaluator, write expression as simple string and evaluat it !!! for example
// Compile the expression once; relatively slow. - code example from the above site
ExpressionEvaluator ee = new ExpressionEvaluator(
"c > d ? c : d", // expression
int.class, // expressionType
new String[] { "c", "d" }, // parameterNames
new Class[] { int.class, int.class } // parameterTypes
);
// Evaluate it with varying parameter values; very fast.
Integer res = (Integer) ee.evaluate(
new Object[] { // parameterValues
new Integer(10),
new Integer(11),
}
);
System.out.println("res = " + res);
compilation of this expression took about 670 microseconds on machine (2 GHz P4) and evaluation 0.35 microseconds (2000x faster than compilation)
i did not expect that some kind of expression dynamicly compiler and evaluator exist , what a power!
another example:
janino sourceClassLoader, generally classLoaders are loading .class files, but janino can load, dynamic compile to bytecode .java files and return as true classes to the jvm, that can be used as in my example (greanButton etc) check it out at
http://www.janino.net/javadoc/org/codehaus/janino/JavaSourceClassLoader.html
We really do not nead to use beanshell or any other scriptengine, users can make their java code even in notepad and this classloader will compile it, No JDK required
also it can be used as command line compiler, it can be used with ant, tomcat, and you can also analyze java code using it
this is what i wanted, this is even more that i expeced, this is the best thing i recently founded
again thanx to all users for their patience especialy endolf , onyx (2mb->i checked it not for me), bleb and swplmer