This does not work:
.:/Java/*:/Java/lib/*:/Java/rpgmail.jar

Work with Object Links

Directory . . . . : /Java

Type options, press Enter.
2=Edit 3=Copy 4=Remove 5=Display 7=Rename 8=Display attributes
11=Change current directory ...

Opt Object link Type Attribute Text
jt400Servlet.jar STMF
jui400.jar STMF
lib DIR
mail.jar STMF
outputwriters.jar STMF
poi36bkp DIR
reportwriter.jar STMF
stderr.txt STMF
systemDefault.prop > STMF
More...
I checked that right away.

Nick
-----Original Message-----
From: James Perkins [mailto:jrperkinsjr@xxxxxxxxx]
Sent: Thursday, September 27, 2012 1:17 PM
To: Java Programming on and around the IBM i
Subject: Re: J9 JVM not compliant?

Do you have the mail.jar in your class path? The mail.jar is optional for
Java SE so you need to include that library.

Also it should be /Java/* without the .jar extension.
--
James R. Perkins


On Thu, Sep 27, 2012 at 10:06 AM, Sonin,Nikolai <nsonin@xxxxxxxxxxx> wrote:

The screen is not displaying the entire field:

Display Entire Field
CLASSPATH
Value . . . . . . . . . :
'.:/Java/*.jar:/Java/lib/*.jar:/Java/rpgmail.jar'
JAVA_HOME
Display Entire Field

Value . . . . . . . . . : '/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit'

By the way: CLASPATH:
.:/Java/*:/Java/lib/*:/Java/rpgmail.jar and
.:/Java:/Java/lib:/Java/rpgmail.jar
Do not work either.
Here is the URL from Oracle:
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html

This is very frustrating.

Nick Sonin

-----Original Message-----
From: James Perkins [mailto:jrperkinsjr@xxxxxxxxx]
Sent: Thursday, September 27, 2012 12:35 PM
To: Java Programming on and around the IBM i
Subject: Re: J9 JVM not compliant?

Just to start, the J9 JVM is compliant or they wouldn't be able to call it
a JVM :-)

To your actual question, what does the Exec_command procedure look like? It
looks to me as if your parameter is longer than allowed to the Exec_command
procedure as it's being truncated.

--
James R. Perkins


On Thu, Sep 27, 2012 at 9:13 AM, Sonin,Nikolai <nsonin@xxxxxxxxxxx> wrote:

To All:



I am trying to use the 32 bit J9 JVM that is 1.6 of java on V5R4M5 from
an ILE RPG program:



The following code:



D q s 1a inz('''')

/free



Exec_Command('CHGCURDIR DIR(' + q + '/java/' + q + ')');



Exec_Command('ADDENVVAR ENVVAR(CLASSPATH) REPLACE(*YES) ' +

'VALUE(' +

q +

'.:/Java/*.jar:/Java/lib/*.jar:/Java/rpgmail.jar' +

q +

')');



Exec_Command('ADDENVVAR ENVVAR(JAVA_HOME) REPLACE(*YES) ' +

'VALUE('+ q + '/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit'

+ q + ')');

return;



/end-free

P e



Is supposed to set the JAVA_HOME ENVVAR and the CLASSPATH ENVVAR for the
JVM before using the Java Mail API.

It does this:

CLASSPATH '.:/Java/*.jar:/Java/lib/*.jar:/Jav' >

JAVA_HOME '/QOpenSys/QIBM/ProdData/JavaVM/jdk' >



But this is what I get in the Job Log:



Message ID . . . . . . : RNX0301 Severity . . . . . . . : 50


Message type . . . . . : Escape


Date sent . . . . . . : 09/27/12 Time sent . . . . . . :
12:06:09




Message . . . . : Java exception received when calling Java method.


Cause . . . . . : RPG procedure RPGMAIL_NE in program
SONINIKO/RPGMAILSV

received Java exception "java.lang.NoClassDefFoundError:
javax.mail.Address"

when calling method "<init>" with signature "()V" in class


"com.mowyourlawn.rpgmail.RPGMail".




According to Oracle in Java 6 specifying the directory or *.jar in the
classpath is supposed search all of the jar files in the directory.
Obviously I am doing something wrong or IBM did not get the message.

What am I doing wrong?

Thanks in advance for your time and effort.



Nick Sonin





--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.