From: bruno at centerx.com.br (Bruno Domenici Ferreira) Date: Tue, 15 Mar 2005 11:27:16 -0300 Subject: [Pljava-dev] Failed to create Java VM In-Reply-To: <4235E3DD.8020104@mailblocks.com> References: <4235D3C2.4050408@mailblocks.com> <4235E3DD.8020104@mailblocks.com> Message-ID: On Mon, 14 Mar 2005 20:19:57 +0100, Thomas Hallgren wrote: > I googled for this and found a couple of mail-threads. One that > suggested that the problem was related to a mismatch between your jvm > and your OS. Perhaps your glibc is too old? glibc-2.3.2 > Another thread claimed that the /i386/lib/client must be the > first entry in your LD_LIBRARY_PATH. My actual LD_LIBRARY_PATH: root at newbie:~# echo $LD_LIBRARY_PATH /usr/lib/jdk1.5.0_02/jre/lib/i386/client:/usr/lib/jdk1.5.0_02/jre/lib/i386:/usr/lib/jdk1.5.0_02/jre/lib/i386/native_threads > What platform and what version are you running on? Are other Java apps > running OK on this platform? Any chance of upgrading your jvm to a > 1.4.2_07 or perhaps to a 1.5.0_01? I've upgraded the jdk: root at newbie:~# java -version java version "1.5.0_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09) Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing) Thomas, i've installed pljava by the source and the error now is: ERROR: attempt to redefine parameter "pljava.vmoptions" See my postgresql.conf # define "pljava" as a custom variable class. This is a comma separated # list of names. # custom_variable_classes = 'pljava' # define the class path that the JVM will use when loading the # initial library. Only meaningful for non GJC installations # pljava.classpath = '/downloads/pljava-1.1.0b1/build/pljava.jar' pljava.classpath = '/usr/local/pgsql8/lib/postgresql.jar' # Set the size of the prepared statement MRU cache # pljava.statement_cache_size = '1' # If true, lingering savepoints will be released on function exit. If false, # the will be rolled back # #pljava.release_lingering_savepoints = true # Define startup options for the Java VM. # pljava.vmoptions = '-Xmx64M -Dbackchannel.port=48' # Setting debug to true will cause the postgres process to go # into a sleep(1) loop on its first call to java. This is # only useful if you want to debug the PL/Java internal C code. # pljava.debug = true Thanxs! -- Bruno D. TI - CenterX Using Opera's revolutionary e-mail client: http://www.opera.com/m2/