[Javaserver-perl] Re: Java.pm
Brought to you by:
zzo
From: <ma...@zz...> - 2004-04-01 22:21:04
|
Other than ensuring all of SomeVendorClass's .jar files are in your classpath it should all 'just work'. Also what version of the Java stuff are you using? Are you trying to call methods in MyClass or in the vendor's stuff? Email me a snippet of your perl code. Also there is now a mailing list for javaserver at: http://sourceforge.net/mail/?group_id=94932 The javaserver-perl list is the one you want - please email to the list so this stuff can get archived for future users... thanks! M On Thu, Apr 01, 2004 at 03:26:49PM -0500, Marc C Mettes wrote: > > > I am revisiting embedding your Javaserver. I got the reflection methods > to work and I have documented the vendor's java class and methods. > Unfortunately, I'm still getting class not found messages. > > My java code that gets called by the vendor app looks like this: > > import stuff ... > class MyClass extends SomeVendorClass { > Object object = (SomeVendorClass) getInterface(); > object.method1(); > JavaServer js = new JavaServer; > js.start(); > other stuff.... > } > > I think that since JavaServer isn't connected with (doesn't extend) > SomeVendorClass, > I cannot access SomeVendorClass methods from JavaServer objects. All of > your > examples seem to work fine though. > > I tried changing your code so that it imports the same packages and extends > the same > classes, but this generated some nasty java.lang.ClassLoader messages. I > didn't > import the packages in all of the java files however. > > > Any suggestions about where I'm going wrong or about the assumptions I'm > making here? > > > Thanks again, > > Marc > > ---------------------------------------------------------------------------------------- > > This is a PRIVATE message. If you are not the intended recipient, please > delete without copying and kindly advise us by e-mail of the mistake in > delivery. NOTE: Regardless of content, this e-mail shall not operate to > bind CSC to any order or other contract unless pursuant to explicit written > agreement or government initiative expressly permitting the use of e-mail > for such purpose. > ---------------------------------------------------------------------------------------- > > > > > > mark > @zzo.com To: Marc C Mettes/GIS/CSC@CSC > cc: > 11/18/2003 05:49 Subject: Re: Java.pm > PM > > > > > > > maybe there's some weird voodoo going on in there - private classes > or something that reflection can't see... > m > > On Fri, Nov 14, 2003 at 10:01:03AM -0500, Marc C Mettes wrote: > > > > Just to give you some feedback .... > > > > I was trying to get the classes (from the proprietary java code) to print > > the available method (using getmethods or something) and it gave me > > errors ... it just could not report anything. javap gave me nothing > > either. > > > > I noticed that your Dealer class uses this, and this may explain why it > > can't call this code. > > > > > > Thanks again for the help, > > > > Marc > > > > > ---------------------------------------------------------------------------------------- > > > > > This is a PRIVATE message. If you are not the intended recipient, please > > delete without copying and kindly advise us by e-mail of the mistake in > > delivery. NOTE: Regardless of content, this e-mail shall not operate to > > bind CSC to any order or other contract unless pursuant to explicit > written > > agreement or government initiative expressly permitting the use of e-mail > > for such purpose. > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > mark > > > @zzo.com To: Marc C Mettes > <mm...@cs...> > > cc: > > > 10/31/2003 05:08 Subject: Re: Java.pm > > > PM > > > > > > > > > > > > > > > > > Hey Marc, > > Sorry I haven't had a chance to look at this closer - I'm in the > > process of getting this whole project up on SourceForge so things are > > sorta in flux until I hear one way or another if it's gonna get up > > there or not... > > M > > > > On Wed, Oct 22, 2003 at 12:49:53PM -0400, Marc C Mettes wrote: > > > > > > I'm not sure I completely understand your question, but I did try many > > > variations > > > in perl trying to access the method ... no luck. > > > > > > If you are referring to changing the original java code that I showed > > you, > > > I can't > > > do that. I'm limited to how and what the java app author has allowed > me > > to > > > execute. I have little access to the source code, so I'm really > shooting > > > in the > > > dark. I had used jad in the past to examine the java source code, but > I > > > cannot > > > find it on the web now. > > > > > > I'm pretty sure that altering the Dealer class will get me in the right > > > direction, > > > but that is more of a long term project. For now, it seems that I'm at > a > > > dead > > > end, but I want to provide you with as much info as possible, in case > you > > > want/need to alter your code. It seems to work flawlessly for the > > examples > > > even though I have embedded your JavaServer into another java app. > > > > > > > > > Again thank you very much for you assistance, it was very educational. > > As > > > I said, I'm a Java newbie, but now I have a good understanding of what > > your > > > code is trying to do - and it's not trivial. If I have any success, > > either > > > changing > > > your code or rewriting an equivalent, I'll send it to you. > > > > > > > > > Marc > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > This is a PRIVATE message. If you are not the intended recipient, > please > > > delete without copying and kindly advise us by e-mail of the mistake in > > > delivery. NOTE: Regardless of content, this e-mail shall not operate to > > > bind CSC to any order or other contract unless pursuant to explicit > > written > > > agreement or government initiative expressly permitting the use of > e-mail > > > for such purpose. > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > @zzo.com To: Marc C Mettes > > <mm...@cs...> > > > cc: > > > > > 10/22/2003 12:14 Subject: Re: Java.pm > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > did you already try -not- putting the class that gets the Interface > > object > > > in a package - & then within perl call the 'getScriptInterface' > function? > > > M > > > > > > On Tue, Oct 21, 2003 at 02:59:47PM -0400, Marc C Mettes wrote: > > > > > > > > Unfortunately making that object public did not work, nor did > importing > > > the > > > > same > > > > packages either, as you predicted. I tried to change the JavaServer > > > class > > > > to > > > > extend the scripting classes, but that did not go well. Lots of > > DefClass > > > > not found > > > > or other similar messages. > > > > > > > > Should I try passing the IL object down into the JavaServer start() > > > method? > > > > Then > > > > perhaps JavaServer can operate on it. Or perhaps I need to rewrite > the > > > > Dealer > > > > class so that it can deal with the getScriptInterface() method? > > > > > > > > I'm still not sure why Java.pm perl code can execute java.* classes, > > yet > > > > doesn't > > > > think that com.ptc.* classes exist. It is running within the main() > of > > a > > > > com.ptc.* app. > > > > Confusing... > > > > > > > > > > > > Marc > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > This is a PRIVATE message. If you are not the intended recipient, > > please > > > > delete without copying and kindly advise us by e-mail of the mistake > in > > > > delivery. NOTE: Regardless of content, this e-mail shall not operate > to > > > > bind CSC to any order or other contract unless pursuant to explicit > > > written > > > > agreement or government initiative expressly permitting the use of > > e-mail > > > > for such purpose. > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > > > @zzo.com To: Marc C > > > Mettes/GIS/CSC@CSC > > > > cc: > > > > > > > 10/21/2003 12:54 Subject: Re: Java.pm > > > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > try making it public if you haven't already & lemmie know. > > > > M > > > > > > > > On Tue, Oct 21, 2003 at 07:37:40AM -0400, Marc C Mettes wrote: > > > > > > > > > > Mark, > > > > > > > > > > Here is the code in which I have inserted the JavaServer. I'm > trying > > > to > > > > > call the > > > > > methods of the IL object (or at least of some > > > ILIntralinkScriptInterface > > > > > object). > > > > > I don't see a constructor, but apparently the getScriptInterface() > > > > function > > > > > is > > > > > acting like a constructor. > > > > > > > > > > Should I make the declaration of the IL object below public? Would > > > that > > > > > allow > > > > > me to call it from within a JavaServer thread? > > > > > > > > > > > > > > > import com.ptc.intralink.client.script.*; > > > > > import com.ptc.intralink.script.*; > > > > > > > > > > public class Jserv extends ILIntralinkScript { > > > > > ILIntralinkScriptInterface IL > > > > > = (ILIntralinkScriptInterface)getScriptInterface(); > > > > > > > > > > private void run0 () throws Exception { > > > > > > > > > > // IL.openWindow( "Login", "user1", null ); > > > > > // IL.setLoginParameter( "INTRALINK_PASSWD", "passwd1" ); > > > > > // IL.ok( ); > > > > > > > > > > JavaServer js = new JavaServer(); > > > > > System.out.println("Before: Starting JavaServer"); > > > > > js.start(); // Start server on new thread > > > > > js.serv.runner.join(); // Join threads so process waits > > > > > > > > > > System.out.println("After: Starting JavaServer"); > > > > > > > > > > } > > > > > > > > > > public void run () throws Exception { > > > > > run0 (); > > > > > } > > > > > > > > > > } > > > > > > > > > > > > > > > Marc > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > This is a PRIVATE message. If you are not the intended recipient, > > > please > > > > > delete without copying and kindly advise us by e-mail of the > mistake > > in > > > > > delivery. NOTE: Regardless of content, this e-mail shall not > operate > > to > > > > > bind CSC to any order or other contract unless pursuant to explicit > > > > written > > > > > agreement or government initiative expressly permitting the use of > > > e-mail > > > > > for such purpose. > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > > > > > @zzo.com To: Marc C > > > > Mettes/GIS/CSC@CSC > > > > > cc: > > > > > > > > > 10/20/2003 04:56 Subject: Re: Java.pm > > > > > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > no you should not need to import them in the java code - as long > > > > > as you give a 'full path' to them when creating them & they're > > > > > available via the classpath they will be found. > > > > > Does that class have a constructor that takes no args - or that > > > > > just takes one String as the arg? > > > > > M > > > > > > > > > > On Mon, Oct 20, 2003 at 05:00:45PM -0400, Marc C Mettes wrote: > > > > > > > > > > > > I have that part taken care of already. The application is > started > > > > with > > > > > a > > > > > > command line > > > > > > like this: > > > > > > > > > > > > java -Xmx256m -ss8m -Xbootclasspath/a:c:\wkdir\NewJavaServer.jar > > -jar > > > > c: > > > > > > \wkdir\ilink\java\lib\Intralink.jar > > > > > > > > > > > > > > > > > > The classes are contained in Intralink.jar. I'm calling > JavaServer > > > > from > > > > > > within the app, > > > > > > but the perl code doesn't seem to know about them. Do I have to > > > import > > > > > > into the > > > > > > JavaServer code or something like that? I guess that JavaServer > > > needs > > > > to > > > > > > be aware > > > > > > of these classes in the source code so that it can call > > > > > getScriptInterface > > > > > > () and > > > > > > get the object to work with. > > > > > > > > > > > > > > > > > > Any thoughts? > > > > > > > > > > > > > > > > > > Marc > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > This is a PRIVATE message. If you are not the intended recipient, > > > > please > > > > > > delete without copying and kindly advise us by e-mail of the > > mistake > > > in > > > > > > delivery. NOTE: Regardless of content, this e-mail shall not > > operate > > > to > > > > > > bind CSC to any order or other contract unless pursuant to > explicit > > > > > written > > > > > > agreement or government initiative expressly permitting the use > of > > > > e-mail > > > > > > for such purpose. > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > > > > > > > @zzo.com To: Marc C > > > > > Mettes/GIS/CSC@CSC > > > > > > cc: > > > > > > > > > > > 10/20/2003 04:35 Subject: Re: > Java.pm > > > > > > > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > you need to make sure these classes (or the .jar they live in) > are > > > > > > enumerated > > > > > > in your classpath... > > > > > > so you start JavaServer like > > > > > > % java -classpath > /path/to/stuff:/path/to/JavaServer/JavaServer.jar > > > > > > JavaServer > > > > > > > > > > > > M > > > > > > > > > > > > On Mon, Oct 20, 2003 at 04:10:27PM -0400, Marc C Mettes wrote: > > > > > > > > > > > > > > The test.pl script works about 99% when the Test.class is added > > > back > > > > > in. > > > > > > > Even the swing examples work pretty much as advertised. > > > > > > > > > > > > > > I'm stumped though with calling the methods for my app. I've > > tried > > > > all > > > > > > of > > > > > > > the following, but I keep getting error about class not found: > > > > > > > > > > > > > > use lib '.'; > > > > > > > use Java; > > > > > > > my $java = new Java(host=>wa695347, port=>2000); > > > > > > > > > > > > > > # my $il = $java->create_object > > > > > > > > > > > > > > > > > > > > > > > > > > > > ("com.ptc.intralink.script.ILAbstractScriptPlayer.getScriptInterface",""); > > > > > > > # my $il = $java->create_object > > > > > > > ("com.ptc.intralink.script.ILScript.getScriptInterface",""); > > > > > > > # my $il = $java->create_object > > > > > > > > > > > > > > > > > > > > > > > > > > > > ("com.ptc.intralink.client.script.ILIntralinkScript.getScriptInterface",""); > > > > > > > > > > > > > > > > > > > > > > > > > > > > # my $il = $java->create_object > > > > > > > > > > > > > > > > > > > > > > > > > > > > ("com.ptc.intralink.client.script.ILIntralinkScriptMethods.getScriptInterface",""); > > > > > > > > > > > > > > > > > > > > > > > > > > > > # my $il = $java->create_object > > > > > > > > > > > > > > > > > > > > > > > > > > > > ("com.ptc.intralink.client.user.UserActionTrigger.getScriptInterface",""); > > > > > > > # my $il = $java->create_object > > > > > > > > > > ("com.ptc.intralink.script.ILScriptInterface.getScriptInterface",""); > > > > > > > # $il->call('openWindow', "Locate", "", ""); > > > > > > > > > > > > > > # $java->call("IL.openWindow", "Locate", "", ""); > > > > > > > > > > > > > > # my $il = $java->create_object > > > > > > > ("com.ptc.intralink.script.ILScriptInterface",""); > > > > > > > # my $il = $java->create_object > > > > > ("com.ptc.intralink.script.ILScript",""); > > > > > > > my $il = $java->create_object("ILScriptInterface"); > > > > > > > > > > > > > > > > > > > > > Each of the above generate something like this: > > > > > > > > > > > > > > ERROR: java.lang.Exception: Class ILScriptInterface don't > exist! > > at > > > > > > > ilink_test.pl line 18 > > > > > > > > > > > > > > > > > > > > > > > > > > > > It's a proprietary java app, so I have no source code. > > > > > > > > > > > > > > > > > > > > > Marc > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is a PRIVATE message. If you are not the intended > recipient, > > > > > please > > > > > > > delete without copying and kindly advise us by e-mail of the > > > mistake > > > > in > > > > > > > delivery. NOTE: Regardless of content, this e-mail shall not > > > operate > > > > to > > > > > > > bind CSC to any order or other contract unless pursuant to > > explicit > > > > > > written > > > > > > > agreement or government initiative expressly permitting the use > > of > > > > > e-mail > > > > > > > for such purpose. > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > > > > > > > > > @zzo.com To: Marc C > > > Mettes > > > > > > <mm...@cs...> > > > > > > > cc: > > > > > > > > > > > > > 10/20/2003 01:41 Subject: Re: > > Java.pm > > > > > > > > > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Oct 20, 2003 at 01:31:56PM -0400, Marc C Mettes wrote: > > > > > > > > > > > > > > > > > > > > > > > > I am using it with a 1.3.1-b24 JVM on windows, but the same > app > > > > runs > > > > > > > > with a 1.2.2 JVM on solaris as well. I was trying to compile > > > using > > > > > the > > > > > > > > native javac on solaris 8 (1.1.8). I was hoping to use the > > test > > > > > > scripts > > > > > > > > to make sure everything works. > > > > > > > > > > > > > > > > Here's a thought, how about using the old Test.class that you > > > have > > > > > > > > already compiled? I didn't think about that. > > > > > > > > > > > > > > > > > If I want to call the Java.pm equivalent of this: > > > > > > > > > > > > > > > > > > IL.openWindow( "Login", "user1", null ); > > > > > > > > > IL.setLoginParameter( "INTRALINK_PASSWD", "passwd1" ); > > > > > > > > > IL.ok( ); > > > > > > > > > > > > > > it'll look like: > > > > > > > $il->openWindow("Login", "user1", undef); > > > > > > > $il->setLoginParameter("INTRALINK_PASSWD", "passwd1" ); > > > > > > > $il->ok; > > > > > > > > > > > > > > Yah the NULL pointer on portscan is just JavaServer trying to > > read > > > > info > > > > > > > from the open connection but the portscan just immediately > closes > > > the > > > > > > > connection which makes that thread within JavaServer barf - no > > big. > > > > > > > > > > > > > > Still can't think of why the Test.java won't compile - yah just > > use > > > > > > > Test.class > > > > > > > that came w/it BUT I still think there's a problem w/the test > > > script. > > > > > > > M > > > > > > > > > > > > > > > > > > > > > > > > > What would the perl syntax look like? The IL object is > > defined > > > > in > > > > > > the > > > > > > > > code > > > > > > > > > snippet > > > > > > > > > that I had sent you last week. > > > > > > > > > > > > > > > > > > > > > > > > > > > On a side note, when I ran a portscan to see if JavaServer > > was > > > > > > > listening > > > > > > > > on > > > > > > > > > 2000, > > > > > > > > > the following error message appeared. To help me better > > > > > understand, > > > > > > > your > > > > > > > > > code > > > > > > > > > is trying to execute whatever is coming at it as Java code, > > > > right? > > > > > > > Since > > > > > > > > > I'm not > > > > > > > > > sending any data in the portscan, it tries to execute null > > code > > > > or > > > > > > > > > something. > > > > > > > > > > > > > > > > > > java.lang.NullPointerException > > > > > > > > > at SocketHandler.run(SocketHandler.java:104) > > > > > > > > > at TCPServer.run(TCPServer.java:141) > > > > > > > > > at java.lang.Thread.run(Thread.java:484) > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks again for the help, > > > > > > > > > > > > > > > > > > Marc > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is a PRIVATE message. If you are not the intended > > > recipient, > > > > > > > please > > > > > > > > > delete without copying and kindly advise us by e-mail of > the > > > > > mistake > > > > > > in > > > > > > > > > delivery. NOTE: Regardless of content, this e-mail shall > not > > > > > operate > > > > > > to > > > > > > > > > bind CSC to any order or other contract unless pursuant to > > > > explicit > > > > > > > > written > > > > > > > > > agreement or government initiative expressly permitting the > > use > > > > of > > > > > > > e-mail > > > > > > > > > for such purpose. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > > > > > > > > > > > > > @zzo.com To: > Marc > > C > > > > > Mettes > > > > > > > > <mm...@cs...> > > > > > > > > > cc: > > > > > > > > > > > > > > > > > 10/16/2003 06:55 Subject: Re: > > > > Java.pm > > > > > > > > > > > > > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > okay here's what you need to do. > > > > > > > > > In JavaServer.java make 'private static SocketHandler serv' > > > > public. > > > > > > > > > Then after you 'js.start();' do a 'js.serv.runner.join();' > & > > > > you'll > > > > > > > wait. > > > > > > > > > M > > > > > > > > > > > > > > > > > > On Thu, Oct 16, 2003 at 05:08:07PM -0400, Marc C Mettes > > wrote: > > > > > > > > > > > > > > > > > > > > Mark, > > > > > > > > > > > > > > > > > > > > Thanks for the responses. I got the java code to compile > > > (and > > > > a > > > > > > > dummy > > > > > > > > > one > > > > > > > > > > prints > > > > > > > > > > "Hello World", so I know it can work), however the code > > below > > > > > > doesn't > > > > > > > > > wait, > > > > > > > > > > perhaps > > > > > > > > > > because it starts a new thread. > > > > > > > > > > > > > > > > > > > > I need my app to wait for the JavaServer events, and only > > > > resume > > > > > > when > > > > > > > > the > > > > > > > > > > JavaServer > > > > > > > > > > shuts down. Do you know if there is any options from the > > > start > > > > () > > > > > > > > method > > > > > > > > > to > > > > > > > > > > do this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Here is my code by the way, it is called from the main > java > > > > > > program. > > > > > > > > It > > > > > > > > > > just prints the > > > > > > > > > > two messages, nothing else seems to happen: > > > > > > > > > > > > > > > > > > > > import com.ptc.intralink.client.script.*; > > > > > > > > > > import com.ptc.intralink.script.*; > > > > > > > > > > > > > > > > > > > > public class Jserv extends ILIntralinkScript { > > > > > > > > > > ILIntralinkScriptInterface IL > > > > > > > > > > = (ILIntralinkScriptInterface)getScriptInterface(); > > > > > > > > > > > > > > > > > > > > private void run0 () throws Exception { > > > > > > > > > > // Begin: Added code > > > > > > > > > > JavaServer js = new JavaServer(); > > > > > > > > > > System.out.println("Before: Starting JavaServer"); > > > > > > > > > > js.start(); > > > > > > > > > > System.out.println("After: Starting JavaServer"); > > > > > > > > > > // End: Added code > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > public void run () throws Exception { > > > > > > > > > > run0 (); > > > > > > > > > > } > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for your help, > > > > > > > > > > > > > > > > > > > > Marc > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > This is a PRIVATE message. If you are not the intended > > > > recipient, > > > > > > > > please > > > > > > > > > > delete without copying and kindly advise us by e-mail of > > the > > > > > > mistake > > > > > > > in > > > > > > > > > > delivery. NOTE: Regardless of content, this e-mail shall > > not > > > > > > operate > > > > > > > to > > > > > > > > > > bind CSC to any order or other contract unless pursuant > to > > > > > explicit > > > > > > > > > written > > > > > > > > > > agreement or government initiative expressly permitting > the > > > use > > > > > of > > > > > > > > e-mail > > > > > > > > > > for such purpose. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > mark > > > > > > > > > > > > > > > > > > > @zzo.com To: > > Marc > > > C > > > > > > > > > Mettes/GIS/CSC@CSC > > > > > > > > > > cc: > > > > > > > > > > > > > > > > > > > 10/16/2003 12:11 Subject: > Re: > > > > > Java.pm > > > > > > > > > > > > > > > > > > > PM > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Thu, Oct 16, 2003 at 11:45:56AM -0400, Marc C Mettes > > > wrote: > > > > > > > > > > > > > > > > > > > > > > A few more (newbie java) questions: > > > > > > > > > > > > > > > > > > > > > > 1. Can I import() the JavaServer stuff into my java > code > > > and > > > > > then > > > > > > > > > > > call the start() method? It seems that main() > > doesn't > > > > > call > > > > > > > > start > > > > > > > > > (), > > > > > > > > > > > but has very similar code. The jar file would > need > > to > > > > be > > > > > in > > > > > > > the > > > > > > > > > > > CLASSPATH somewhere. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > yah put JavaServer.jar in yer classpath & call start() > > sounds > > > > > about > > > > > > > > right > > > > > > > > > - > > > > > > > > > > haven't tried it myself so I can't say for sure ... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2. I probably would be able to use you JavaServer.jar > as > > is > > > > > > without > > > > > > > > > > > modifications, right? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > yes. > > > > > > > > > > > > > > > > > > > > > 3. Will this work with a 1.3.1 Sun JVM? > > > > > > > > > > > > > > > > > > > > > yes. > > > > > > > > > > > > > > > > > > > > you will need to get an object back to the perl side to > > > > actually > > > > > do > > > > > > > > > > anything - > > > > > > > > > > you might need to write an accessor function that returns > > the > > > > > > > top-level > > > > > > > > > > object > > > > > > > > > > - or whatever it is you need to control - & then on the > > perl > > > > side > > > > > > get > > > > > > > > > that > > > > > > > > > > object so you can manipulate your app. > > > > > > > > > > > > > > > > > > > > M > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |