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

Bug#445930: Yet another problem



Hi,

After upgrading to today's unstable version of libgcj*, my Swing programs do not compile anymore. I receive the following errors:

snoopy:~$ gcj-4.2 -Wall -O2 --main=Td3 Td3.java
Td3.java:1: error: The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
	import javax.swing.*;
Td3.java:1: error: The import javax cannot be resolved
	import javax.swing.*;
	       ^^^^^
Td3.java:5: error: JFrame cannot be resolved to a type
	public class Td3 extends JFrame
	                         ^^^^^^

etc. etc.

I look for a complete java implementation to teach Java to my students. gcj-4.1 worked fine. So:

1. How can I compile Swing programs?
2. Is there a workaround for this bug (445930)?

Was there a change in the library used by gcj (it used its internal one and now it uses classpath)? In fact, I do not understand how gcj and JDK work together... I have searched on Internet without success.

Cheers,
--
Eugen Dedu



Reply to: