Does p5 work with gij?
Quote:Update:
2.1 Standard features not yet supported
This list of compatibility issues is by no means complete.
* gcj implements the JDK 1.2 language. It supports inner classes and the new 1.4 assert keyword. It does not yet support the Java 2 strictfp keyword (it recognizes the keyword but ignores it).
* libgcj is largely compatible with the JDK 1.2 libraries. However, libgcj is missing many packages, most notably java.awt. There are also individual missing classes and methods. We currently do not have a list showing differences between libgcj and the Java 2 platform.
* Sometimes the libgcj implementation of a method or class differs from the JDK implementation. This is not always a bug. Still, if it affects you, it probably makes sense to report it so that we can discuss the appropriate response.
* gcj does not currently allow for piecemeal replacement of components within libgcj. Unfortunately, programmers often want to use newer versions of certain packages, such as those provided by the Apache Software Foundation's Jakarta project. This has forced us to place the org.w3c.dom and org.xml.sax packages into their own libraries, separate from libgcj. If you intend to use these classes, you must link them explicitly with -l-org-w3c-dom and -l-org-xml-sax. Future versions of gcj may not have this restriction.
Not sure if it works or not. I get a strange 'cannot find main class' error:
Quote:[s5@box346 lib]$ gij
Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.
[yourbus5@box346 lib]$ gij -jar _YearGenerator.jar
Exception in thread "main" java.lang.NoClassDefFoundError: _YearGenerator
at gnu.gcj.runtime.FirstThread.run() (/root/lib64/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/root/lib64/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/root/lib64/libgcj.so.5.0.0)
at __libc_start_main (/root/lib64/tls/libc-2.3.4.so)
[s5@box346 lib]$
and
Quote:./_YearGenerator
Failed to load Main-Class manifest attribute from java.library.path=.