|
Hi
we have a CL program which we call before calling java
and this program sets all the classpath, here is what
we have in cl program
ADDENVVAR ENVVAR(CLASSPATH) VALUE(classpath goes
here) +
REPLACE(*YES)
MONMSG MSGID(CPF0000 MCH0000)
ADDENVVAR ENVVAR(QIBM_RPG_JAVA_PROPERTIES) +
VALUE('-Djava.version=1.4;')
MONMSG MSGID(CPF0000 MCH0000)
we had no problem using this
Ashish
--- pekrzyz@xxxxxxxxxxxxxxx wrote:
> Hi:
>
> I am running into a problem that I can't see a
> solution to. It has to do
> with visibility of a Java Class from multiple users.
>
> For example: I developed a Java app. in my home
> directory and it resides
> in '/home/MYDIR' on the AS400.
> (MYDIR) is my login name. When I use qshell I
> automatically get placed
> into MYDIR directory.
>
> The second user also has a directory in '/home' (set
> to their login name).
>
> We have given each other full permissions to each
> other's directory and
> also set the permissions on each file.
> We set the CLASSPATH to point to the Java class
> located within my
> directory. The second user can not access the class
> and the RPG program fails with class not found
> error. When we move the
> Java class into the second user's folder, the
> RPG application runs fine. From a Windows explorer
> the second user can
> see all the files in my directory and can copy them
> freely
> into their own directory. (This indicates to me that
> they have sufficient
> permissions to see the files.) We also checked the
> execution rights, and this was all setup properly.
>
> We double checked that the CLASSPATH was set
> properly in the second users
> environment.
> We have a third user, that does not have a directory
> in '/home'. When
> this user sets the same CLASSPATH, the application
> runs fine from my directory.
>
> It almost seems that if a user directory exists in
> '/home', this overrides
> any CLASSPATH setting. Has anyone else run into
> this.
> We've been banging our heads on this to try a come
> up with a solution.
> We are running V5r2.
>
> Has anyone else also been able to set the default
> JVM to point to 1.42
> rather than 1.3 which is the default. I've tried
> various solutions posted
> such as setting the variable in system.properties
> but this DOES not work.
> The only solution I've found so far is to preface
> the JVM version on the
> javac line. (eg. javac -K=Djava.version=1.4
> myapp.java). This is a big
> pain in the butt to constantly have to type this in.
>
> ...Paul
> _______________________________________________
> This is the Java Programming on and around the
> iSeries / AS400 (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.
>
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.