call the constructor of java class from script

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 1
Reputation: thebladerunner is an unknown quantity at this point 
Solved Threads: 0
thebladerunner thebladerunner is offline Offline
Newbie Poster

call the constructor of java class from script

 
0
  #1
Oct 29th, 2007
Hi,

Is it possible to call the constructur of a java class from a shell script?
I know you can call static methods, but can you also call the constructor?

Wim.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: call the constructor of java class from script

 
0
  #2
Oct 29th, 2007
What do you mean call a java constructor from a shell script? The only Java method you can call from a shell script is either main or a static block (and if it is a static block in a class with no main it will exit with an error). What, exactly, do you want to do?
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1741 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Shell Scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC