cannot figure out how to use gcj of the gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux