× 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.



Dan,

One mistake you're making is that you should not include the .class when
trying to run the program.  i.e. do

java CommandServerJDQ -cp "C:\Downloads\AS400\IBM Java\lib\jt400.jar"
instead of
java CommandServerJDQ.class -cp "C:\Downloads\AS400\IBM Java\lib\jt400.jar"

Otherwise it thinks you're trying to run a class called "class" from the
package called "CommandServerJDQ" (think of other class name like
java.lang.String).

Just changing the above may or may not work... you might also need to
include the folder containing your class file in your classpath - it
doesn't necessarily always check the current folder.

e.g. java CommandServerJDQ -cp
"C:\Java\Foldercontainingclassfile;C:\Downloads\AS400\IBM
Java\lib\jt400.jar"

HTH,

Nigel Gay,
Computer Patent Annuities.



                                                                           
             Dan                                                           
             <dan27649@xxxxxxx                                             
             om>                                                        To 
             Sent by:                  Java Programming on and around the  
             java400-l-bounces         iSeries / AS400                     
             @midrange.com             <java400-l@xxxxxxxxxxxx>, Midrange  
                                       Systems Technical Discussion        
                                       <midrange-l@xxxxxxxxxxxx>           
             26/10/2005 14:21                                           cc 
                                                                           
                                                                   Subject 
             Please respond to         Questions on "Calling PC Commands   
             Java Programming          from RPG" article                   
             on and around the                                             
              iSeries / AS400                                              
             <java400-l@midran                                             
                  ge.com>                                                  
                                                                           
                                                                           




Note: IANAJPY (I Am Not A Java Programmer, Yet)

Has anyone perused "Calling PC Commands from RPG" by Kevin Vandever, found
at http://www.itjungle.com/mpo/mpo091202-story05.html ? (Try
http://tinyurl.com/dcahd )

I downloaded the java program, compiled it on my PC, and I have a .class
file that I have no idea what to do with. The goal is to have an RPG
program
running on the iSeries submit a data queue entry containing the PC's IP
address and a PC command to run on that PC. Something running on the PC
accepts that data queue entry and runs the command.

Anybody know what actually runs on the PC? How to "invoke" (?) this? I
tried:
java CommandServerJDQ.class -cp "C:\Downloads\AS400\IBM Java\lib\jt400.jar"

... and got:
Exception in thread "main" java.lang.NoClassDefFoundError:
CommandServerJDQ/class

Note that the ClassPath (-cp) is the same used to compile the .java via the
javac command.

TIA, Dan
--
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.





********************************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.
********************************************************************************


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-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.