Questions tagged [runtime-compilation]

Use this tag for questions related to Runtime Compilation, i.e. the compilation of a program during Runtime.

is used in its general meaning, and is usually accompanied by Java, C based languages, Scala, ASP.NET, etc. .

123 questions
0
votes
1 answer

Compiling JUnit tests at runtime: "No runnable methods"

I want to compile and run JUnit (4.12) tests at runtime within a grails (2.4.4) project. The following string is an example for such a test (classname: "DasS"). import org.junit.runner.JUnitCore; import static org.junit.Assert.*; import…
tastyPI
  • 53
  • 5
0
votes
2 answers

Compiling a class at runtime with classpath

I'm currently trying to compile a class at runtime but for some reason it's only working on one system. Both systems use the exact same code and have the same java version installed, but on one system my .java file compiles to a .class and on the…
Joba
  • 777
  • 7
  • 24
0
votes
1 answer

Create Class object from string containing source code

I'm creating a C# application in which code is compiled at runtime, the code is contained in a string (and the string gets its value from a ScintillaNET Control, it just returns text, the string with code is working as intended). My question is: is…
0
votes
0 answers

Compiling C# code at runtime without creating a class

Is it possble to compile a string into code without having to compile an entire new class? Ive seen lots of tutorials and I have watched the documentations of the CodeDom framework, but in all of those it creates a new class and everything, what I…
Arbitur
  • 38,684
  • 22
  • 91
  • 128
0
votes
2 answers

package does not exist and cannot find symbol at run time compilation

Package does not exist error even if the package is connect for the run time compilation. Here is the code. JavaSourceCompiler javaSourceCompiler = new JavaSourceCompilerImpl(); JavaSourceCompiler.CompilationUnit compilationUnit =…
0
votes
1 answer

Cordova/PhoneGap working with (on demand) dynamic compilation Handlebars.js

I am going to build a JavaScript/Cordova app using Handlebars.js template engine. The application build will came with precompiled templated (located in www/* folder, as usual). my boss would like to slightly change some templates, without having to…
Mattia
  • 209
  • 1
  • 5
  • 12
0
votes
1 answer

Compile Java classes at runtime of Eclipse Plugin

I'm in a very awkward situation here. Im developping an 'Eclipse plugin' that has to 'compile' .java files into .class files (or maybe even a jar). I am trying to use the Java Compiler API in order to do something like this : public class Compiler…
0
votes
0 answers

Is it possible to inject a class into the executing assembly at runtime?

I am experimenting with the CSharpCodeProvider .NET Code DOM class an I am able to compile an assembly and create an instance defined within the assembly, but I'm interested to know whether it is possible to 'inject' code or rather a class into a…
Drew R
  • 2,988
  • 3
  • 19
  • 27
0
votes
4 answers

Dynamically map one class to another at runtime C#

I am trying to build a system that converts data from a vertical key value pair store system into a more traditional horizontal column store. The source data looks something like this public class Container { public string Type { get; set; } …
Matt
  • 2,795
  • 2
  • 29
  • 47
0
votes
2 answers

Tag In Project POM To Close My Java Application If JRE 1.6 Is Not Found?

I have an application compiled in Java. I build my code through Maven. I want a tag in my project POM, so that if JRE 1.6 is not found in the system, it should not allow my Java application to launch. Can I get any help with regard to this ?
Harshdip Singh
  • 131
  • 1
  • 2
  • 15
0
votes
1 answer

Runtime compilation generates a file that can't be removed

I have this console type thing that accepts a line of C# code, wraps it up in some surrounding code and compiles it into an assembly. Then, I invoke the method from that assembly, output the result and that's it. The problem is, the assembly needs…
Luka Horvat
  • 4,283
  • 3
  • 30
  • 48
-1
votes
1 answer

What is "runtime compilation" in Javascript?

I'm reading this article on regular expressions, and it says "Using the constructor function provides runtime compilation of the regular expression". It then says "Use the constructor function when you know the regular expression pattern will be…
RNdev
  • 953
  • 1
  • 8
  • 26
-1
votes
1 answer

Time complexity in ascending order

What is the ascending order of growth rate of the following functions: 2^((logn)^1/2) 2^n 2^(n/2) n^(4/3) n(logn)^3 n^logn 2^(n^2) n! log n is with base 2.
-1
votes
1 answer

Visual Studio 2017 Console application - unknown compilation error

I've used visual studio 2017 (community edition) for a few months and made several applications but never came close to this compilation error that I've gotten here. I've found some threads with a similar error as mine but none of them actually…
-1
votes
1 answer

Ajax connection with asp.net codebehind and runtime compilation trouble

I'm having trouble getting an AJAX call to work, The fail error is the common 404 which means that the call cant find the file/function i wish to call. The problem is even when i use an absolute path in the call it still 404's on me. I can…
Reahreic
  • 596
  • 2
  • 7
  • 26
1 2 3
8
9