× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Probably a good option would be to deal with building and executing a
proper jar file, instead of dealing with loose class files and class
paths.

Using maven on a pc
(http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html), build a jar project, it should run the same on the AS400, and having it all packaged will help you with things like classpaths.

Also, it is definitely true that the current folder may not be what one
expects it to be, is it where the main class file is? where the java
executable is? the user's home folder? the application server's folder?

Packaging in jars will help you with these kinds of things.

On Wed, 2011-07-20 at 15:32 -0400, Peter Dow wrote:
Thanks for responding, however,

qsh cmd('pwd')

and

qsh cmd('echo $HOME')

show it to be what I expect it to be, i.e. /home/pdow, which is what my
user profile shows as the home directory.

Also, doing

qsh cmd('ls .')

shows the known contents of /home/pdow.

I think the problem is somewhere else.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.