To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=63390 Issue #:|63390 Summary:|Running SDK examples with gcj Component:|porting Version:|OOo 2.0.2 Platform:|All URL:| OS/Version:|Linux Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|TASK Priority:|P3 Subcomponent:|code Assigned to:|sparcmoz Reported by:|sparcmoz
------- Additional comments from [EMAIL PROTECTED] Mon Mar 20 02:19:36 -0800 2006 ------- Some SDK examples have been tested on GNU/Linux Sparc m159 with gcc4.1 The SDK has hardcoded java, javac and jar commands. Sometimes it is desired to use gcj, gij and fastjar instead. Some sdk examples can be built and run with gcj, others get errors. The task is to modify the configuration files to understand gcj, so the following is only a "proof of concept". For an example have a look at examples/DevelopersGuide/ProfUNO/InterprocessConn/ConnectionAwareClient.java. Refer to Developer's Guide 3.3.1 UNO Interprocess Connections for more explanation of this example. Follow the usual steps to configure the SDK environment, but the Java will not be configured (in a nutshell, simply run ./setsdkenv_unix). Edit examples/DevelopersGuide/ProfUNO/InterprocessConn/Makefile as follows near line 62 using your path/to/gcj: SDK_JAVAC=/usr/local/4.1/bin/gcj -C SDK_JAVA=/usr/local/4.1/bin/gij # Targets Then: make This provides some instructions to start the soffice listening. Next export LD_LIBRARY_PATH=/usr/local/4.1/lib:$LD_LIBRARY_PATH to prevent this error: Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit Then make ConnectionAwareClient.run This makes a connection and provides a small window with buttons that launch new writer or calc docs. But the examples in FirstSteps will die silently without making a connection. The same results are seen with debian java-gcj-compat (gcj4.0 with java/javac commands) on GNU/Linux sparc and intel. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]