agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
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





view thread (5+ messages)  latest in thread

Message-ID: <001a01c6d573$7ac76100$1e03a8c0@fhrbek>
Permalink:  ../001a01c6d573$7ac76100$1e03a8c0@fhrbek/
Also on:    postgresql.org/message-id/001a01c6d573$7ac76100$1e03a8c0@fhrbek

reply

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 using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] Hello World example failure
  In-Reply-To: <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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox