forked from gabrielmm1234/jvm-sb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compila
executable file
·44 lines (32 loc) · 1.8 KB
/
compila
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /bin/bash
# para compilar
#gcc -std=c99 -g -pedantic main.c -o exe # mude o nome de exe para o que vc desejar que seja o executavel
# o restante do arquivo assume que o nome sera exe
# sugestao de como fazer testes
### acho que isso aqui depende da maquina, estou gerando codigo para versao 1.2
# tem que mudar o bootclass_path para gerar o .class
# Hello World
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar programas_java/HelloWorld.java
#./exe 'programas_java/HelloWorld.class'
# interface
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar programas_java/interface.java
#./exe 'programas_java/xyz.class'
# field
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar programas_java/field.java
#./exe 'field.class'
# print3
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar programas_java/Print3.java
# Switch
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar Switch.java
# lookupswitch
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar Switch.java
# lookupswitch 2
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar LookupSwitch2.java
# Array
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar Array.java
# Object2
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar Object2.java
#echo "terminei de compilar object 2"
# Operacoes
#javac -source 1.2 -target 1.2 -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar Operacoes.java
#echo "finished compiling operacoes.class"