This would also work:

BEGIN { 
 $ENV{CLASSPATH} .= ".:.\\yourpath\\yourjars.jar:";
 }

#Load Java code
use Inline Java => <<'END_OF_JAVA_CODE', CLASSPATH=> $ENV{CLASSPATH}, AUTOSTUDY 
=> 1;

import java.stuff.jars;

public class Test
{
public static long youClass(your params) throws Exception
{
      System.setProperty("yourDashDParams","WhatTheyEqual");
}       


---- Original message ----
>Date: Fri, 10 Oct 2008 11:10:46 +0200
>From: Stefan Seifert <[EMAIL PROTECTED]>  
>Subject: Re: Wrapping Inline::Java elegantly?  
>To: inline@perl.org
>
>On Friday 10 October 2008 05:12:08 Scott Serr wrote:
>> I'm sorry if this is not the right place to ask, but here is my question...
>>
>> I want to abstract some complexities away from users, CLASSPATH and some
>> other things.  So I would like to wrap the Inline Java package in my own
>> package, so to call the wrapper would look like this:
>>
>>     use BOB ['JavaClass1', 'JavaClass2'];
>> or even
>>     use BOB STUDY => ['JavaClass1', 'JavaClass2'];
>
>There's no need to pass an array reference here. Just a plain old list is all 
>you need:
>use BOB qw(JavaClass1 JavaClass2);
>
>perldoc perlmod
>and
>perldoc Exporter
>should give you all the info you need.
>
>Regards,
>Stefan
>________________
>signature.asc (1k bytes)
------------------------------------
Alvin Chao
Lead Web Analyst 
James Madison University - IT Web
MSC 5734
Harrisonburg, VA 22807
(540)568-6206
[EMAIL PROTECTED]
Webpage: http://www.the-chaos.com/alvin

Reply via email to