Subject: [Pljava-dev] Hello World example failure
Date: Mon, 11 Sep 2006 09:25:37 +0200
Message-ID: <001a01c6d573$7ac76100$1e03a8c0@fhrbek> (raw)
References: <4501EEB4.7020203@softhome.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] Hello World example failure
In-Reply-To: <001a01c6d573$7ac76100$1e03a8c0@fhrbek>
References: <4501EEB4.7020203@softhome.net> <001a01c6d573$7ac76100$1e03a8c0@fhrbek>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox