RE: Compile BeanShell using JJDK 1.2

"Yemi D. Bedu" <yemi-DnQzskBZRmpWk0Htik3J/[email protected]> Tue, 4 Jan 2005 10:23:57 -0500
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
Hello,
 Your other option in this case could be to use an earlier version of
Beanshell. True some fixes may have not been compiled in, but it also
May be more flexible to you as a precompiled or even to recompile the
from
The source. I have tried the 1.4 on Toshiba e750 PDA running personal
java
1.1.x I can get a few this working so, that may be suitable for use as a
quick Boolean eval tool.
 
-----Original Message-----
From: Steven Y.C. CHAN [mailto:[email protected]] 
Sent: Monday, January 03, 2005 8:53 PM
To: Yemi D. Bedu
Cc: beanshell-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [Beanshell-dev] Compile BeanShell using JJDK 1.2

Dear Yemi D. Bedu,

Thank you very much for your prompt reply to my problem.  However, for 
the constraint of my DB server (Sybase ASE 12.5.x with Java option 
support), I need to re-compile the source using JDK 1.2.x.  Otherwise, 
it can't even 'recognised' some of  the 'installed' classes in the 
package (I've tried under JDK 1.3 or later, but not work), and this 
arises my problem.  Some classes, such as bsh.xThis.java, cannot be 
compiled in pre-1.3 version.  This seems to make me find another way to 
'make' the bsh to be able to be compiled under 1.2.

What I want to do is to create a java class that can be able to make use

of the eval() function in the bsh package to evaluate the boolean result

of a string expression,  e.g.  "a".equals("b") || (1!=2 && ! false) && 
!"x".equals("y")

Please advises
Millions Thanks !!
Steven
=======================

Yemi D. Bedu wrote:

>Hello,
> You can even use the precompiled version. The website mentions that
>certain features are not available to be "accessed" with a particular
>jvm. Like reflection is supported since 1.1.x , swing needs at least I
>think 1.2.x, and so you should know what is available in the api for
>your version to only limit what you script to. If I only script out to
>AWT with custom algorithms I would be fine jumping from 1.3.x down to
>1.1.x and so I think you should be ok. Also remember this because the
>NIO (new I/O) is not available to these early jvm (< 1.4.x).
>
>-----Original Message-----
>From: beanshell-developers-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>[mailto:beanshell-developers-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
>Steven Y.C. CHAN
>Sent: Monday, January 03, 2005 4:15 AM
>To: beanshell-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: [Beanshell-dev] Compile BeanShell using JJDK 1.2
>
>Dear all,
>
>I'd like to use the BeanShell as a Java Interpreter under a Java VM
>embeded in a DB server (Sybase ASE v12.5.x).  As it only support JDK
>1.2, and 'fully compile the bsh distribution requires JDK1.3+'
>(mentioned in the developer's corner of the BeanShell homepage).  Is it
>possible to modify the package so that it can be compiled under JDK 1.2
>(at least with basic bsh functionality)?  
>
>Thanks a lot !
>Steven
>
>
>
>-------------------------------------------------------
>The SF.Net email is sponsored by: Beat the post-holiday blues
>Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
>It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
>_______________________________________________
>Beanshell-developers mailing list
>Beanshell-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/beanshell-developers
>
>
>
>
>
>  
>

-- 

                             ^       ^
                               0   0
                                 O
                              (  o  )
|======================ooOoo===========ooOoo=======================|
| .oooO         Steven Y.C. CHAN, M.Sc., B.Sc.(Hons)        Oooo.  |
| (   )    Information Systems Officer II, GAO-ISS, HKBU    (   )  |
|--\ (------------------------------------------------------ ) /---|
|   \_)Emails: [email protected], steven-Cuu+FY9ud1FgyekFCUV1kwC/[email protected](_/    |
|        Office: RRS902, GAO/ISS, Sir Run Run Bldg,                |
|                Ho Sin Hang Campus, HKBU, Kowloon Tong            |
|                (Tel:3411-5364 Fax:3411-5272)                     |
|      HomePage: http://www.hkbu.edu.hk/~sycchan/index.html        |
|------------------------------------------------------------------|
|   Digitally signed email using e-Cert issued by Hong Kong Post   |
|   To verify my e-Cert, pls download the HongKong Post Root Cert  |
|   from   http://www.hongkongpost.gov.hk/5digital/dc1_fr.html     |
|  Note: An attachment SMIME27.p7S will be displayed in your mail  |
|        if your mail client doesn't support PKCS7 Digital ID.     |
|==================================================================|






-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt