Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Java Bridge Import
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
humanumbre...@gmail.com  
View profile  
 More options Jun 23 2008, 9:17 am
Newsgroups: comp.lang.idl-pvwave
From: humanumbre...@gmail.com
Date: Mon, 23 Jun 2008 06:17:36 -0700 (PDT)
Local: Mon, Jun 23 2008 9:17 am
Subject: Java Bridge Import
Hey ~~

So, I'm trying to re-use much existing Java code in this java->IDL
rewrite process.  However, if appears that I can only access Java
classes if they're jar'd up.  I need to be able to access class files
without having to Jar them.  (This is a huge application)

Here's what I mean:
For example, I have a class "HelloWorld.java" and "HellowWorld.class"
in D:\IDLResearch\Bridge\

This code: javaClass = obj_new('IDLJavaObject$HELLOWORLD',
'HelloWorld.java') returns

"% Class HelloWorld.java not found
% Execution halted at: IMPORTER            3 D:\IDLResearch\Bridge
\importer.pro
%                      $MAIN$ "

My idljavabrc file contains: D:\IDL\Bridge\ and D:\IDLResearch\Bridge
-- I've tried it with each.

Any thoughts ??
Thanks in advance!
--Justin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
humanumbre...@gmail.com  
View profile  
 More options Jun 23 2008, 10:07 am
Newsgroups: comp.lang.idl-pvwave
From: humanumbre...@gmail.com
Date: Mon, 23 Jun 2008 07:07:41 -0700 (PDT)
Local: Mon, Jun 23 2008 10:07 am
Subject: Re: Java Bridge Import
Got it!

OK -- on the idljavabrc file, when you include another path - you
can't put a space after the ;
So:
WILL WORK:   $CLASSPATH;D:\IDLResearch\Bridge
WON'T WORK:  $CLASSPATH; D:\IDLResearch\Bridge

Hope this helps someone :P

Cheers
--Justin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nigel Wade  
View profile  
 More options Jun 23 2008, 10:13 am
Newsgroups: comp.lang.idl-pvwave
From: Nigel Wade <n...@ion.le.ac.uk>
Date: Mon, 23 Jun 2008 15:13:49 +0100
Local: Mon, Jun 23 2008 10:13 am
Subject: Re: Java Bridge Import

humanumbre...@gmail.com wrote:
> Hey ~~

> So, I'm trying to re-use much existing Java code in this java->IDL
> rewrite process.  However, if appears that I can only access Java
> classes if they're jar'd up.  I need to be able to access class files
> without having to Jar them.  (This is a huge application)

No, you don't need to jar them. Have you read the IDL manual about how to access
Java objects? Some of the examples there access individual class files.

The problem you have there is that you have not named your class file correctly.
The classloader does not want your java source file. Further, the classloader
locates classes by package name, and '.' is the separator for packages within
the package hierarchy. What the classloader will be looking for in your example
is a file called 'HelloWorld\java.class'.

If your java class in not part of a package then you should include the
directory in which HelloWorld.class resides in the CLASSPATH and specify the
class 'HelloWorld' in the obj_new.

If your class is part of package then you need to include the base directory of
package hierarchy in the CLASSPATH and specify the fully qualified class name
in obj_new.

--
Nigel Wade


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
humanumbre...@gmail.com  
View profile  
 More options Jun 23 2008, 10:41 am
Newsgroups: comp.lang.idl-pvwave
From: humanumbre...@gmail.com
Date: Mon, 23 Jun 2008 07:41:27 -0700 (PDT)
Local: Mon, Jun 23 2008 10:41 am
Subject: Re: Java Bridge Import
On Jun 23, 10:13 am, Nigel Wade <n...@ion.le.ac.uk> wrote:

Yes, I did have a typo -- but the ultimate problem was the
specification of the folder w/ a space.

asdf = obj_new('IDLJavaObject$HELLOWORLD', $
  'HelloWorld')

with the proper set up in idljavabrc file works.

Thanks!
--Justin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google