From: | guyr at masergy(dot)com (Guy Rouillier) |
---|---|
To: | |
Subject: | [Pljava-dev] Hello World example failure |
Date: | 2006-09-12 20:40:46 |
Message-ID: | D4D1632DC736E74AB95FE78CD609007923B0AD@mtxexch01.add0.masergy.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bendik Rognlien Johansen | 2006-09-13 10:46:21 | [Pljava-dev] Updating an array |
Previous Message | Scott Petersen | 2006-09-12 16:14:49 | [Pljava-dev] Hello World example failure |