runtime-compilation Questions

1

After I returned to an older project, after editing a few things, and updating dependencies, I tried to compile and I keep getting this error on startup: FATAL EXCEPTION: main Process: com.parsons...
Rafa asked 6/6 at 17:12

7

Solved

Here is what I want to do: Run a program and initialize some data structures. Then compile additional code that can access/modify the existing data structures. Repeat step 2 as needed. I want t...
Fletafletch asked 12/5, 2012 at 14:39

1

Solved

During the running of a scala script, I would like it to generate some code and execute this. I thought I had found two examples online that might work, but they aren't successful import scala.refl...
Hallux asked 30/9, 2022 at 16:50

1

I posted a question on a similar topic a couple days ago (and one a couple years ago), but I decided to go ahead and get started. I am trying to inject C++ code into C++ code (in a somewhat portabl...

1

Solved

I understand how I can execute entire scripts using Roslyn in C# but what I now want to accomplish is to compile a class inside the script, instantiate it, parse it to an interface and then invoke ...
Capapie asked 10/11, 2017 at 9:0

0

I am working in IntelliJ Idea, with JDK and JRE 8. The project makes use of lombok, and I would like to have code generation and runtime compiling. My aim is to produce a code that does the same ta...
Arytenoid asked 24/10, 2017 at 7:37

5

Solved

I am successfully able to compile Groovy in Java at runtime and store it in a database and pull it out. I can't compile a Groovy class if it has inner classes or an inner enum. Has anyone successfu...
Tinny asked 15/4, 2014 at 15:39

8

Solved

I was wondering if it was possible to compile, and run stored code, without generating an exe or any type of other files, basically run the file from memory. Basically, the Main application, will ...
Acariasis asked 6/7, 2010 at 17:57

1

I use CSharpCodeProvider to compile instant plugins for my app. Right now it is possible to try to compile a file, that looks good, but generates many errors, for example a C# code glued with a bi...
Suggs asked 14/6, 2013 at 13:3

6

Solved

How can I compile java code from an arbitrary string (in memory) in Java 5 and Java 6, load it and run a specific method on it (predefined)? Before you flame this, I looked over existing implement...

4

Solved

I am toying around with the idea of building an online C# interpreter, a bit like Codepad. Now there are obvious security issues: Infinite loops System.Diagnostics.Process.Start Pretty much the w...
Morissa asked 1/3, 2011 at 23:31

4

Say I have this code that uses some input (e.g. a URL path) to determine which method to run, via reflection: // init map.put("/users/*", "viewUser"); map.put("/users", "userIndex"); // later Str...
Franchescafranchise asked 31/10, 2010 at 17:37

2

Solved

Possible Duplicate: “eval” in Scala I know scala is a compiled language, but I do also know that I can dynamically load classes into the jvm, and I can call the scala comp...

11

Solved

In Java, is it possible to create a class definition on the fly while an application is running, and then create an object of that class? For example, a running application would read in a text fi...
Monro asked 23/4, 2009 at 13:52

7

Solved

I happened upon a brief discussion recently on another site about C# runtime compilation recently while searching for something else and thought the idea was interesting. Have you ever used this? I...
Kaceykachina asked 27/9, 2008 at 16:42
1

© 2022 - 2024 — McMap. All rights reserved.