We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
P5 and gij (Read 1006 times)
P5 and gij
Oct 29th, 2007, 6:58pm
 
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=.
Re: P5 and gij
Reply #1 - Oct 30th, 2007, 1:40am
 
..any help would be greatly appreciated.
Re: P5 and gij
Reply #2 - Oct 30th, 2007, 2:39pm
 
no it does not:
http://processing.org/reference/environment/platforms.html#linux
Page Index Toggle Pages: 1