The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
call constructor of java class in script thebladerunner Shell Programming and Scripting 1 10-21-2008 04:23 PM
How to call Java by using shell script aaabbb123123 Shell Programming and Scripting 2 08-21-2008 03:02 AM
PHP or Java Class Code Generator 1.1.0 (Default branch) iBot Software Releases - RSS News 0 02-08-2008 12:50 PM
How to call Java classes/methods from ksh girish.sh Shell Programming and Scripting 17 06-23-2006 07:04 AM
Running java class with a cron UBGandalf Shell Programming and Scripting 3 10-26-2005 11:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-11-2008
jyotib jyotib is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 10
How to call Java class from ksh

Hi,

I am writing a korn script where I am calling ResizeImage.java from this script but its giving me an error when I execute this script.

The JVM option is invalid: -server
Could not create the Java virtual machine.

Following is the line I am using to call java class
$JAVA_HOME/bin/java -server -classpath $CLASSPATH -Xconcurrentio -Xmx1024m -XX:+UseParallelGC -XX:+UseAdaptiveSizePolicy HelloWorld> $worklogfile

I have setup paths as follows:
JAVA_HOME="/wpsd02/websphere/appserver/java"
PATH="$JAVA_HOME"/ibm_bin:"$JAVA_HOME"/bin/:"$JAVA_HOME"/jre/bin:$PATH
export CLASSPATH="wpsd02/Jyoti/imageutil_1_2_try.jar:$CLASSPATH"

Can anyone explain me why it is giving this error, what is wrong with this?

Thanks,
Jyoti.

Last edited by jyotib; 01-11-2008 at 04:41 PM..
  #2 (permalink)  
Old 01-11-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,240
The jvm you are using does not support the use of the -server option.
  #3 (permalink)  
Old 01-14-2008
jyotib jyotib is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 10
Then what do I do to get rid of this error.

Thanks,
Jyoti.
  #4 (permalink)  
Old 01-14-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,240
Getting rid of the -server strikes me as the obvious thing to do.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0