The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using Subversion, NetBeans IDE, and Sun Java System Web Server With Java ME iBot UNIX and Linux RSS News 0 02-01-2008 01:00 PM
S-058: HP-UX Running Java JRE and JDK iBot Security Advisories (RSS) 0 12-24-2007 05:40 AM
java.lang.OutofMemoryError in Sun Studio 12 wintersakura SUN Solaris 2 12-19-2007 04:21 PM
Receiving error on Unix server-- java.lang.UnsatisfiedLinkError: registerNatives loveToBlade UNIX for Dummies Questions & Answers 4 08-23-2006 03:00 AM
Running java class with a cron UBGandalf Shell Programming and Scripting 3 10-26-2005 07:31 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2004
Registered User
 

Join Date: Mar 2004
Posts: 39
java.lang.System when running jar

Hello,
I recieve the following error when trying to run the following command in a ksh. The operating system is AIX5.1.

/usr/bin/jar -xvf {filename}.zip
Can't find class java.lang.System

But when I run it on the command line it unzips the file fine.

Does anybody know why this happens, and how to fix it?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-22-2004
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
Quote:
But when I run it on the command line it unzips the file fine.
What exactly do you mean? What 'jar' commands are you able to run on the system?

If you have installed truss (packaged with bos.sysmgt.serv_aid) you can trace through the system calls and possibly see where the error lies.

Cheers,

Keith
Reply With Quote
  #3 (permalink)  
Old 06-22-2004
Registered User
 

Join Date: Mar 2004
Posts: 39
Thanks for the reply.
I figured out why, the reason is because I had the jar command hard coded in the ksh with /usr/bin/jar. When I use the jar command without the path it works fine.

thanks again,
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0