From: | filip(dot)hrbek at plz(dot)comstar(dot)cz (Filip Hrbek) |
---|---|
To: | |
Subject: | [Pljava-dev] Hello World example failure |
Date: | 2006-09-11 07:25:37 |
Message-ID: | 001a01c6d573$7ac76100$1e03a8c0@fhrbek |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Petersen | 2006-09-12 16:14:49 | [Pljava-dev] Hello World example failure |
Previous Message | Thomas Hallgren | 2006-09-08 22:44:59 | [Pljava-dev] Hello World example failure |