954,219 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

call the constructor of java class from script

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.

thebladerunner
Newbie Poster
1 post since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

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?

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You