Changed Javac Compiler API

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Changed Javac Compiler API

billfen
Dave,

Thanks for checking - I'm glad to hear that users of JDK 6-27 can
successfully compile.  That makes removing the internal compiler API less
urgent.  (But still necessary - it could break at any time.)

I'm not sure what the plugin is doing wrong - will be fun to find out.  It
just passes parameters to NetRexx.

Thanks again.



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Changed Javac Compiler API

rvjansen
Bill,

on my Windows 7 VM, I am running with Java 7 - I did not see any strangeness, but will check tomorrow with all the NetRexxA examples I can find.

best regards,

René.

On 9 sep. 2011, at 00:24, [hidden email] wrote:

> Dave,
>
> Thanks for checking - I'm glad to hear that users of JDK 6-27 can
> successfully compile.  That makes removing the internal compiler API less
> urgent.  (But still necessary - it could break at any time.)
>
> I'm not sure what the plugin is doing wrong - will be fun to find out.  It
> just passes parameters to NetRexx.
>
> Thanks again.
>
>
>
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://link.mail2web.com/mail2web
>
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Changed Javac Compiler API

billfen
In reply to this post by billfen
Very strange - on my system it seems to be related to using the jre
contained within the jdk as opposed to using the normal jre, but I just
discovered that seconds ago.

Thanks for checking Java 7 - hopefully that means the internal API will
work for a while.  I suspect at some point Oracle will try to purge every
instance of "sun" that it can find :)

On 9/8/2011 6:35 PM, René Jansen wrote:
> Bill,
>
> on my Windows 7 VM, I am running with Java 7 - I did not see any
strangeness, but will check tomorrow with all the NetRexxA examples I can
find.

>
> best regards,
>
> René.
>
> On 9 sep. 2011, at 00:24, [hidden email] wrote:
>
>> > Dave,
>> >
>> > Thanks for checking - I'm glad to hear that users of JDK 6-27 can
>> > successfully compile.  That makes removing the internal compiler API
less
>> > urgent.  (But still necessary - it could break at any time.)
>> >
>> > I'm not sure what the plugin is doing wrong - will be fun to find out.
It
>> > just passes parameters to NetRexx.
>> >
>> > Thanks again.

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://link.mail2web.com/mail2web



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Changed Javac Compiler API

billfen
In reply to this post by billfen
Since I come from New England, "Light dawns on Marblehead...".  I was wrong
about the API changing - sorry about the confusion.

I forgot that I had included a copy of tools.jar in my jre\lib\ext
directory a long time ago, and I didn't realize it was being used.  I got
rid of it and changed the plugin code to properly find and use the one in
the JDK.    

I still think adopting the public API rather than using the internal API is
a good idea (eventually).  The ability to use different Java compilers
would be nice as well.

Bill

 

--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Changed Javac Compiler API

ThSITC
In reply to this post by billfen
It definittely depends that you need to have

tools.jar
in ...\java\JDK1.7xx\jre\lib\

*and*

NetRexC.jar

in ...\java\JDK1.7xx\jre\lib\ext\

(at least, when you want to avoid ANY CLASSPATH changes, which are NOT
honoured by JEDIT, for instance)

Thomas.
===============================================


Am 09.09.2011 00:51, schrieb [hidden email]:

> Very strange - on my system it seems to be related to using the jre
> contained within the jdk as opposed to using the normal jre, but I just
> discovered that seconds ago.
>
> Thanks for checking Java 7 - hopefully that means the internal API will
> work for a while.  I suspect at some point Oracle will try to purge every
> instance of "sun" that it can find :)
>
> On 9/8/2011 6:35 PM, René Jansen wrote:
>> Bill,
>>
>> on my Windows 7 VM, I am running with Java 7 - I did not see any
> strangeness, but will check tomorrow with all the NetRexxA examples I can
> find.
>> best regards,
>>
>> René.
>>
>> On 9 sep. 2011, at 00:24, [hidden email] wrote:
>>
>>>> Dave,
>>>>
>>>> Thanks for checking - I'm glad to hear that users of JDK 6-27 can
>>>> successfully compile.  That makes removing the internal compiler API
> less
>>>> urgent.  (But still necessary - it could break at any time.)
>>>>
>>>> I'm not sure what the plugin is doing wrong - will be fun to find out.
> It
>>>> just passes parameters to NetRexx.
>>>>
>>>> Thanks again.
> --------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://link.mail2web.com/mail2web
>
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>


--
Thomas Schneider (Founder of www.thsitc.com) Member of the Rexx Languge
Asscociation (www.rexxla.org) Member of the NetRexx Developer's Team
(www.netrexx.org)

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com
Reply | Threaded
Open this post in threaded view
|

Re: Changed Javac Compiler API

Kermit Kiser
In reply to this post by billfen
Hi Bill -

You may have just solved a big problem for NetRexx!

I have been wondering how to pursue support for the Java Compiler API,
because I know we need it for JSR223 and other IDE uses so that we can
do complete compile and execution of NetRexx code in memory without file
IO. But the ARB decided that NetRexx 3.01 would support Java 1.5 (that
may be reasonable - I have no idea how widespread it's use is) which
does not have the Java Compiler API. That limited us to passing NetRexx
code to the translator in memory strings but still needing to pass the
output Java code in files to the Java compiler. It also limited us to
Java compilers that provide the unofficial com.sun.tools.javac.Main
compiler interface (Oracle/Open JDK/Jikes/?). That interface is not
likely to go away as all IDE tools like Ant and Eclipse used it, not
just NetRexx, since it was the only reasonable performance option prior
to the Java 1.6 Compiler API (aka JSR199).

But I think that if we can detect the version of JDK or more
specifically, the presence of the Compiler API, we can still support
Java 1.5 while offering advanced compile options to Java 1.6 users.

Do you have any thoughts on how to do that?

-- Kermit


On 9/9/2011 12:10 AM, [hidden email] wrote:

> Since I come from New England, "Light dawns on Marblehead...".  I was wrong
> about the API changing - sorry about the confusion.
>
> I forgot that I had included a copy of tools.jar in my jre\lib\ext
> directory a long time ago, and I didn't realize it was being used.  I got
> rid of it and changed the plugin code to properly find and use the one in
> the JDK.
>
> I still think adopting the public API rather than using the internal API is
> a good idea (eventually).  The ability to use different Java compilers
> would be nice as well.
>
> Bill
>
>
>
> --------------------------------------------------------------------
> mail2web.com – What can On Demand Business Solutions do for you?
> http://link.mail2web.com/Business/SharePoint
>
>
>
> _______________________________________________
> Ibm-netrexx mailing list
> [hidden email]
> Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
>
>
>
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/