• Post Reply Bookmark Topic Watch Topic
  • New Topic

analog javascript's eval function

 
Jack Leeyohn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!