Forums Register Login

analog javascript's eval function

+Pie Number of slices to send: Send
hi.
when i run the following program,it will generate a Temp.class file, how should i do in order not generate Temp.class file.
please help me,thanks in advance.

MyClassLoader.java


Eval.java
+Pie Number of slices to send: Send
That's what the Java compiler does - create class files from source code. If you don't want that, you need to use some other approach for generating the class, like Javassist: http://www.javaranch.com/journal/200711/creating_java_classes_runtime_expression_evaluation.html
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1615 times.
Similar Threads
Reflecting classes not in classpath
EJB PK class
Fake a post request from java class
How i read,remove html script tags,content ?
redirect .class files programatically
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:13:01.