Packaging Problems
[email protected] ("Stephen Burns") Fri, 17 Sep 2004 12:07:26 +0100
| Newsgroups | perl.jpl |
|---|---|
| Message-ID | <[email protected]> |
------_=_NextPart_001_01C49CA6.84295DFE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everyone, Has anyone had any success implementing a JPL solution within a package = structure? I have JPL installed and can use it successfully. However when I = introduce a package structure, i.e. move my classes from the default = package to one which can be referenced by other packaged Java classes, = the JPL class fails to compile as it uses the PerlInterpreter class = which remains in the default package. Unfortunately Java has no method of importing classes from the default = package and therefore the solution will require one of the following: * Package the PerlInterpreter class to allow it to be imported; * Create the full application in the default package to make the = PerlInterpreter class visible. The second option is neither elegant nor viable due to the size of the = application. If anyone has any ideas, or has managed to introduce a package structure = to their JPL code I would greatly appreciate the help. Regards Stephen Stephen Burns Senior Systems Designer Real Time Engineering Ltd. The information contained in this e-mail may contain confidential or = privileged material and is intended only for the person or entity to = which it is addressed. If you are not the intended recipient, the use, = disclosure, copying or distribution of this information is prohibited = and may be unlawful. If you have received it in error, please notify us = immediately by telephone (+44 (0)141 427 4142). Please also destroy and = delete the message from your computer. The opinions contained within = this e-mail are not necessarily the opinions of Real Time Engineering = Limited. ------_=_NextPart_001_01C49CA6.84295DFE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 6.0.6249.1"> <TITLE>Packaging Problems</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><FONT SIZE=3D2 FACE=3D"Arial">Hello everyone,</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">Has anyone had any success implementing = a JPL solution within a package structure?</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">I have JPL installed and can use it = successfully. However when I introduce a package structure, i.e. = move my classes from the default package to one which can be referenced = by other packaged Java classes, the JPL class fails to compile as it = uses the PerlInterpreter class which remains in the default = package.</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Arial">Unfortunately Java has no method of = importing classes from the default package and therefore the solution = will require one of the following:</FONT></P> <UL> <LI><FONT SIZE=3D2 FACE=3D"Arial">Package the PerlInterpreter class to = allow it to be imported;</FONT></LI> <LI><FONT SIZE=3D2 FACE=3D"Arial">Create the full application in the = default package to make the PerlInterpreter class visible.</FONT></LI> <BR> </UL> <P><FONT SIZE=3D2 FACE=3D"Arial">The second option is neither elegant = nor viable due to the size of the application.</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">If anyone has any ideas, or has managed = to introduce a package structure to their JPL code I would greatly = appreciate the help.</FONT></P> <P><FONT SIZE=3D2 FACE=3D"Arial">Regards</FONT> </P> <P><FONT SIZE=3D2 FACE=3D"Arial">Stephen</FONT> </P> <P><SPAN LANG=3D"en-gb"><B><FONT SIZE=3D1 FACE=3D"Verdana">Stephen = Burns</FONT></B><BR> <FONT SIZE=3D1 FACE=3D"Verdana">Senior Systems Designer<BR> Real Time Engineering Ltd.</FONT></SPAN> </P> <BR> <P><SPAN LANG=3D"en-gb"><FONT COLOR=3D"#808080" SIZE=3D1 = FACE=3D"Arial">The information contained in this e-mail may contain = confidential or privileged material and is intended only for the person = or entity to which it is addressed. If you are not the intended = recipient, the use, disclosure, copying or distribution of this = information is prohibited and may be unlawful. If you have = received it in error, please notify us immediately by telephone (+44 = (0)141 427 4142). Please also destroy and delete the message from = your computer. The opinions contained within this e-mail are not = necessarily the opinions of Real Time Engineering = Limited.</FONT></SPAN></P> </BODY> </HTML> ------_=_NextPart_001_01C49CA6.84295DFE--