+ Reply to Thread
Results 1 to 2 of 2

Thread: qsh vs Command line

  1. #1

    Default qsh vs Command line

    Sasikumar wrote: > > I am calling a java program from RPGLE. If call the RPG from QSH using > "/qsys.lib/mylib.lib/quote.pgm" it works great. If I call the same program from command line "call Quote" it gives class not found error. > The CLASSPATH was set correctly. WRKENVVAR and echo $CLASSPATH gives the same value. so, i don't doubt the classpath. Your Help appriciated. Try signing off your job, and starting a new job. If that fixes the problem, then most likely you already had a JVM active in your job before you set the CLASSPATH environment variable. Once the JVM is active in a job, you can't change the classpath, (and you can't change any of the Java classes). Each QSH command gets a new job, so when calling QSH, you get a new job and new JVM for each call, so any changes in your CLASSPATH would be used.

  2. #2

    Default qsh vs Command line

    I am calling a java program from RPGLE. If call the RPG from QSH using "/qsys.lib/mylib.lib/quote.pgm" it works great. If I call the same program from command line "call Quote" it gives class not found error. The CLASSPATH was set correctly. WRKENVVAR and echo $CLASSPATH gives the same value. so, i don't doubt the classpath. Your Help appriciated.

+ Reply to Thread

Similar Threads

  1. Two character Command line
    By Guest.Visitor in forum General
    Replies: 3
    Last Post: 11-02-2007, 05:44 AM
  2. Moving Command Line
    By David Abramowitz in forum RPG
    Replies: 5
    Last Post: 08-09-2006, 03:17 AM
  3. Websphere 5.0 - Command to end server from command line?
    By Guest.Visitor in forum Dev Tools
    Replies: 1
    Last Post: 10-10-2005, 10:18 AM
  4. Get a Command Line
    By Guest.Visitor in forum Analysis
    Replies: 2
    Last Post: 08-23-1999, 06:53 AM
  5. SND/RTV commands from pgm command line
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts