This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cannot figure out how to use gcj of the gcc


When I run 
gcj --main=Program  Program.class
in the directory where all the dependent classes are,
except the imports from the standard libraries,
it doesnât seem to pick up the dependent classes.
But when I run
gcj --main=Program  Program.java
in the same directory,
it seems to pick up the dependent classes.
Does that seem right?

Also I have another program that uses only imported classes
and that gives the same error
Java.Lang.UnsupportedOperationException
whether I use either of the above gcj commands, 
but it runs in Windows using the sun Java1.5 SDK
under JCreator LE.
The surprising thing to me is that gcj doesnât tell
me where error came from, no line numbers, no clue.
What do I do?

However, a consolation is that yet another simpler
program runs under both systems.
public class HelloJav { 
  public static void main(String[] args) { 
    System.out.println("HelloJav"); 
} }
No imports, no dependent classes.

Another thing that bothers me is that the gcc-java forum
seems to be dead. Does any one use Java?
I feel way out in left field.

-- 
View this message in context: http://www.nabble.com/cannot-figure-out-how-to-use-gcj-of-the-gcc-tf4020614.html#a11419622
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]