gcc - Error compiling java code with MinGW gcj -


Hey, firewalls, this is my first post.

I just compile Java to GCC, and I have some difficulty in doing this.

My input and output:

  import java.io. *; Import java.util. *; Public Class Program {Public Fixed Zero Main (String Array []) throws an exception {BufferedReader stdin = new BufferedReader (New InputStreamReader (System.in)); String line = stdin.readLine (); Stringtochnizer st = new string locator (line); Int a = integer Parasont (st.nextToken ()); Int B = Integer. Percent (St. NXToken ()); Println (a + b); }}  

CMD: GCJ Porgram.java

& lt; 2> Output:

E: / Mingav / Bin /../ lib / gcc / mingw32 / 3.4.5 /../../../ libmingw32.a: Chief c: & lt; .exclude

GCJ NDS can be told which main classes are compiling, . You can do this by using the - Main command line parameter:

  gcj --main = programmable program. Java  

Comments