You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-3Lines changed: 49 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ compilex is currently in beta . As the library grows , so does the list here .
32
32
|---------|:-------:|
33
33
|C |✔|
34
34
|C++ |✔|
35
-
|Java |Available Soon|
35
+
|Java |✔|
36
36
|Python | Available Soon |
37
37
|C# | Available Soon |
38
38
|Visual Basic | Available Soon |
@@ -59,7 +59,7 @@ Inorder to compile any programming language , you need to first have the compile
59
59
60
60
The beta version of compilex supports the compilation of C and C++ only . I am sure that you could expect the successive builds with more programming languages added. I also look forward for some contributions to the repo.So feel free to play with compilex
61
61
62
-
<h4>Compiling C and C++</h4>
62
+
<h4>C and C++</h4>
63
63
<ol>
64
64
<li><b>Installation :</b>You need GCC compiler that can compile programs from your cmd/terminal
65
65
<ul>
@@ -83,6 +83,20 @@ The beta version of compilex supports the compilation of C and C++ only . I am s
83
83
</li>
84
84
</ol>
85
85
86
+
<h4>Java</h4>
87
+
<ol>
88
+
<li><b>Installion :</b> You need JDK ( Java Development Kit ) to compile Java programs.Click <ahref="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"> here </a> to download JDK for various platforms.</li>
89
+
<li>Testing the Environment :</b>After installing , set your environment variables for accessing the javac command lines from any directory
90
+
<ul>
91
+
<li>Create a Java file named Main.java with main function<br/>
92
+
<i>javac Main.java <br />
93
+
java Main </i><br/>
94
+
then you will get the output of the program.
95
+
</li>
96
+
</ul>
97
+
</li>
98
+
</ol>
99
+
86
100
87
101
Documentation
88
102
=============
@@ -125,7 +139,37 @@ Before using other methods , make sure to call init() method.
125
139
//res is the response object
126
140
```
127
141
128
-
<h5>4)Memory Management </h5>
142
+
<h5>4)Java</h5>
143
+
```javascript
144
+
//if windows
145
+
var envData = { OS:"windows"}; // (uses g++ command to compile )
146
+
//else
147
+
var envData = { OS:"linux" }; // ( uses gcc command to compile )
0 commit comments