pg.ddx.io  pljava-dev@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Hello World example failure
Date: Tue, 12 Sep 2006 15:40:46 -0500
Message-ID: <D4D1632DC736E74AB95FE78CD609007923B0AD@mtxexch01.add0.masergy.com> (raw)
In-Reply-To: <4506DCF9.3090504@softhome.net>

Have you been *reading* any of the replies you've been receiving?  I see
two mistakes below that others have already provided solutions for.
Additional details inline.

Scott Petersen wrote:
> I am not trying to be difficult, but I am LOST and do not know how to
> move forward with this simple test.
> 
> *C:\com\mycompany\helloworld>*type HelloWorld.class
> package com.mycompany.helloworld;
> public HelloWorld { public String helloWorld() { return "Hello
> World"; } } *

Flip just told you that you don't put source code into a class file.
Source goes into a .java file and gets compiled, via javac, into a class
file.  Suggest you get familiar with Java before trying to create a Java
stored procedure.

> *C:\com\mycompany\helloworld>*jar -cf helloworld.jar *.class

And Thomas explained in an earlier email that you can't just create a
jar file by jarring up your class files at this level.  Your directory
structure in the JAR file must reflect the package.  So, if you had a
valid class file (which you don't, see above), you would create the JAR
file by running the "jar" command at C:\, using the directory structure
you have above.

-- 
Guy Rouillier





view thread (5+ messages)

Message-ID: <D4D1632DC736E74AB95FE78CD609007923B0AD@mtxexch01.add0.masergy.com>
Permalink:  ../D4D1632DC736E74AB95FE78CD609007923B0AD@mtxexch01.add0.masergy.com/
Also on:    postgresql.org/message-id/D4D1632DC736E74AB95FE78CD609007923B0AD@mtxexch01.add0.masergy.com

 · 

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: <D4D1632DC736E74AB95FE78CD609007923B0AD@mtxexch01.add0.masergy.com>

* 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