Questions tagged [online-compilation]

Convert source code to binary online.

Instead compiling code in local, through web browser or API, compile code and return binary executable. Also execute the code in remote machine and return the output of program.

50 questions
1
vote
1 answer

C# ECDSA signature running in an online compiler fails

I'm running this code successfully on my Windows machine (Win 10 x64, running dotnet 4.7.2). It generates an EC keypair ("P-256"), hashes the plaintext with SHA-256, signs the hash with the ec private key and verifies the signature against the…
Michael Fehr
  • 5,827
  • 2
  • 19
  • 40
1
vote
2 answers

When I try to send code as string to jdoodle compiler api I am getting errors

var request = require('request'); var fs=require("fs"); var program = { script :"print('hello\nworld')", language: "python3", versionIndex: "0", clientId: "clientID", clientSecret:"clientSecret" }; request({ url:…
1
vote
1 answer

Is it possible to install Java compiler in a database?

In order to make an online compiler, I want to compile a piece of code and send back the result. Instead of giving the path to the hard disk, can I call a query which in return compiles the code (not by giving any links to javac hard disk location)…
Rohan Sethi
  • 115
  • 1
  • 2
  • 9
1
vote
1 answer

how to build an online compiler without compiling code on my own server

Part of my final project needs to build a online compiler which can be accessed by everyone. I've implemented the editor part, the main problem is in the compiler part. First I thought I can compile code on university's server, and I asked IT…
user3794582
  • 123
  • 1
  • 10
1
vote
3 answers

Time out a java code?

I am writing an online java programming app where I take a java code as input from user and returns the output after compilation and execution through a python script. For controlling the memory heap I have a standard solution of using -Xms and -Xmx…
gmfreak
  • 399
  • 4
  • 12
1
vote
2 answers

Online compiler vs native compiler

import java.util.Scanner; public class Count { public static void main(String []args){ Scanner s=new Scanner(System.in); int i=s.nextInt(); int j=i+1; System.out.println(j); } } It's basic code in java,When i…
learner
  • 3,092
  • 2
  • 21
  • 33
1
vote
2 answers

Output the result of a process

I wanted to make an online c# compiler and also run the compiled program and output it to my website. How can I do this? I have understood the implementation of the c# compiler but have not been able to display the output of the compiled program on…
user1512186
  • 397
  • 2
  • 13
1
vote
1 answer

How to Develop Web Compiler for c, c++, java

Can anyone tell me how I should approach the development of a web-based interface for remote compiling, based a compiler like InterviewStreet or Codeacademy for c, c++ ? I want to develop the using PHP (Language doesn't matter anyway) Is there any…
0
votes
1 answer

Compile and build APK out of Android app source code in Kotlin

I have the source code of an application and wanna modify the source code a bit and build an APK out of the customized source code for personal use. Problem: I cannot use Android SDK and/or Android studio. Situation: I have the source code and have…
0
votes
0 answers

My python program to print matrix is working in VScode but when i run it in python online compiler it shows error

I tried to get values of rows and columns in the first line as string and convert it into an interger when using it in the second line. It runs well and gives me output in VScode but when I tried to run it in Python Online compiler it gives me…
0
votes
0 answers

online java compilers gives different results than eclipse and intelliJ

The code simply extract the time portion of two timestamps and sub them from each other to get the duration import java.util.Calendar; public class Test { public static void main(String[] args) { Calendar cal = Calendar.getInstance(); …
0
votes
0 answers

Can we take python code as input in browser and return the output?

I tried some ways but I cannot figure out a way if we can take input (Python Code) in browser (JS) and run the code and return the output online without creating an online compiler? I tried hitting some online interpreters urls with the code but it…
0
votes
1 answer

Different results between online C compiler and compiling in cmd while trying to implement linkedlists

Actually the title is pretty self explanotary, I implement the linkedlist in online C compiler and the code correctly adds elements to the list, prints the list and then deletes the last element of the linkedlist. But when I compile the program in…
Sarush
  • 11
0
votes
0 answers

code works in IntelliJ IDEA, but does not work on online compilers that don't have Interactive Consoles for giving inputs

so i have been trying to write a code to find Common characters in n strings. the code works fine on IntelliJ IDEA and onlinegdb(which has Interactive Console)but it does not work on other compilers and gives me this error: >Exception in thread…
0
votes
1 answer

Haskell way to joint two small functions. Syntax advice needed

I'm new to Haskell and I'm having kind of a hard time joining two sections of code for this program. What it does (or should do) is to let me know if a triangle is isosceles by the theorem of cosenes. Here it is what I thought would…