Google Groups Home
Help | Sign in
Java classpath for Cal calling?
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
  5 messages - Collapse all
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
Steve Harris  
View profile
 More options Sep 11 2007, 5:31 pm
From: Steve Harris <steveO...@gmail.com>
Date: Tue, 11 Sep 2007 21:31:10 -0000
Local: Tues, Sep 11 2007 5:31 pm
Subject: Java classpath for Cal calling?
If I were wanting to access Cal code from Java, what is the minimum I
would need to add to my Java classpath?  Would a car-jar file
generated for just a given workspace and it's dependencies be enough
to call the included Cal functions, using either the high-level Gem
style api or the lower level "source-model" api?  I didn't see any
mention in "Java Meets Quark" about what is required on the classpath
(though I may have missed it).  I noticed the samples are just using
the expanded Quark bin directory directly - would I need to jar this
up for delivery with my app?

Steve


    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.
Joseph Wong  
View profile
 More options Sep 11 2007, 7:36 pm
From: "Joseph Wong" <Joseph.W...@businessobjects.com>
Date: Tue, 11 Sep 2007 16:36:17 -0700
Local: Tues, Sep 11 2007 7:36 pm
Subject: RE: Java classpath for Cal calling?
Hi Steve,

Thanks for the question. To run CAL code from Java, you will need the
following Quark Platform JARs on your classpath:

- Quark/bin/java/release/calUtilities.jar
- Quark/bin/java/release/calPlatform.jar
- Quark/bin/java/release/calLibraries.jar
- Quark/bin/java/release/quarkGems.jar
  (this is needed if you use the high-level Gem API)
- all JARs in Quark/lib/Resources/External/java/
  (icu4j.jar, log4j.jar, antlr.jar, asm-all-3.0.jar,
   commons-collections-3.1.jar, xercesImpl.jar,
   xmlParserAPIs.jar, junit.jar)

In addition, you will need the Car-jar files and their external Java
dependencies.

If you are deploying the Gem Cutter tool as well, you will also need:
- Quark/bin/java/release/quarkGems.jar
  (if not already included from the list above)
- Quark/lib/Resources/GemCutterHelpFiles.jar
- Quark/lib/Resources/External/Sun/JavaHelp/2.0_02/jh.jar

If you are deploying an application written in CAL, and do not require
metaprogramming facilities (e.g. running pieces of CAL expressions from
within Java, adding new modules at runtime, querying for functions
matching a particular type), you may want to consider using "standalone
JARs" as an alternative deployment mechanism. It allows you to package
up a CAL function of the type ([String] -> ()) into a JAR that includes
only the classes necessary for running the function. This approach is
described in more detail in the "Using Quark with Standalone JARs"
document.

If deploying with standalone JARs, the required set of core Quark
Platform JARs is smaller:

- Quark/bin/java/release/calUtilities.jar
- Quark/bin/java/release/calPlatform.jar
- Quark/bin/java/release/calLibraries.jar
- Quark/lib/Resources/External/java/icu4j.jar
- Quark/lib/Resources/External/java/log4j.jar
- the generated standalone JAR, and its external Java dependencies

To assist in building up this classpath, the Open Quark distribution
includes a quarklaunch script that makes it easy to run an application
packaged as a standalone JAR (documentation for the script is included
in the "Using Quark with Standalone JARs" document).

Hope this helps! :)

Joseph


    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.
Joseph  
View profile
 More options Sep 11 2007, 7:58 pm
From: Joseph <jhtw...@gmail.com>
Date: Tue, 11 Sep 2007 23:58:57 -0000
Local: Tues, Sep 11 2007 7:58 pm
Subject: Re: Java classpath for Cal calling?
The "Using Quark with Standalone JARs" document can be found here:
http://resources.businessobjects.com/labs/cal/using_standalone_jars.pdf

It is also included in the Open Quark platform binary and source
distributions.

Joseph

On Sep 11, 4:36 pm, "Joseph Wong" <Joseph.W...@businessobjects.com>
wrote:


    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.
Steve Harris  
View profile
 More options Sep 12 2007, 9:40 am
From: Steve Harris <steveO...@gmail.com>
Date: Wed, 12 Sep 2007 13:40:46 -0000
Local: Wed, Sep 12 2007 9:40 am
Subject: Re: Java classpath for Cal calling?
Joseph,
thanks, that's what I needed.
PS: maybe it could be added to "Java Meets Quark"?

    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.
Joseph Wong  
View profile
 More options Sep 12 2007, 5:13 pm
From: "Joseph Wong" <Joseph.W...@businessobjects.com>
Date: Wed, 12 Sep 2007 14:13:56 -0700
Local: Wed, Sep 12 2007 5:13 pm
Subject: RE: Java classpath for Cal calling?
Hi Steve,

Thanks for the suggestion. I've just updated "Java Meets Quark" with the
content from my previous reply, in a new section on deployment. The
updated document will be included in the next release.

Joseph


    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
©2008 Google