Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Calling Perl Script From Java(Any Eclipse Specific Configuration Changes to Call Perl Script From Java)
Calling Perl Script From Java [message #1733794] Wed, 01 June 2016 00:13 Go to next message
Russell West is currently offline Russell WestFriend
Messages: 5
Registered: January 2016
Junior Member
I have a simple Perl script that just prints out the fact that it has been invoked/executed. This Perl script file (Test.pl) exists in a previously existing Java application package (Utils) that also contains Java class files. I am attempting to execute the Perl Script from a Java class in a different package (Display) within the same Java project. I have tried using the Java Process class Runtime.getRuntime().exec() method and Java ProcessBuilder class to execute this Perl script to no success. Was wondering if there are any specific Eclipse configuration steps required to make this work? I have added the full pathname of the Perl script file to the manifest file classpath line of the Display package. When I export/generate a Jar file using the class files in the Display and Utils package and the Display Package manifest file no build errors are generated,
Re: Calling Perl Script From Java [message #1733800 is a reply to message #1733794] Wed, 01 June 2016 04:40 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3799
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 05/31/2016 06:13 PM, Russell West wrote:
> I have a simple Perl script that just prints out the fact that it has
> been invoked/executed. This Perl script file (Test.pl) exists in a
> previously existing Java application package (Utils) that also contains
> Java class files. I am attempting to execute the Perl Script from a
> Java class in a different package (Display) within the same Java
> project. I have tried using the Java Process class
> Runtime.getRuntime().exec() method and Java ProcessBuilder class to
> execute this Perl script to no success. Was wondering if there are any
> specific Eclipse configuration steps required to make this work? I have
> added the full pathname of the Perl script file to the manifest file
> classpath line of the Display package. When I export/generate a Jar
> file using the class files in the Display and Utils package and the
> Display Package manifest file no build errors are generated,

This isn't a question for this forum as it's simply one for Java.
Previous Topic:selective project creation from existing tree
Next Topic:Caused by: java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
Goto Forum:
  


Current Time: Thu Jun 20 07:09:35 GMT 2019

Powered by FUDForum. Page generated in 0.02812 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top