From: filip.hrbek at plz.comstar.cz (Filip Hrbek) Date: Mon, 11 Sep 2006 09:25:37 +0200 Subject: [Pljava-dev] Hello World example failure References: <4501EEB4.7020203@softhome.net> Message-ID: <001a01c6d573$7ac76100$1e03a8c0@fhrbek> Scott Petersen wrote: > C:\Java source>more helloworld.class > package com.mycompany.helloworld; > public HelloWorld { public String helloWorld() { return "Hello > World"; } > } > It seems to me that you have not compiled your source code - you wrote it directly to the class file. The first thing you should do is a) Write your source code to a file named "com/mycompany/HelloWorld.java" b) Remove syntactic errors from the source code (it should start with "public class HelloWorld" instead of "public HelloWorld" c) Compile your source code to a class file using "javac com/mycompany/HellowWorld.java" d) Pack your class file into a jar file (don't foreget to include the complete relative path com/mycompany/HelloWorld.class) e) Install the jar file into correctly configured postgresql server Tip: Try to run your HelloWorld examples without pljava first, using simple java runtime. When you understand how it works, try to integrate it with postgres. Regards, Filip Hrbek