Re: BUG - cedet-java-core-jar-name

Eric Ludlam <[email protected]> Sat, 19 Mar 2016 16:53:03 -0400
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 03/14/2016 09:28 PM, Chream wrote:
> The core jar on OS X elcapitain
>
> ProductName:Mac OS X
> ProductVersion:10.11.3
> BuildVersion:15D21
>
> is now in the same path as for other operating systems.
> Not sure when this happened and I am not sure how to check for OS X
> version in emacs.
> My modified code now works for for cedet to locate the rt.jar.
>
> *Current cedet code::*
>
> (defvar cedet-java-core-jar-name (if (eq system-type 'darwin)
>      "Contents/Classes/classes.jar"
>    (concat (file-name-as-directory
>     (concat (file-name-as-directory "jre") "lib"))
>    "rt.jar"))
>    "Name of Java core jar file.
> File name is rt.jar on Linux & Windows, and classes.jar on Mac OS X")
>
> *Modified code::*
>
> (defvar cedet-java-core-jar-name (concat (file-name-as-directory
>                                            (concat
> (file-name-as-directory "jre") "lib"))
>                                           "rt.jar")
>    "Name of Java core jar file.
> File name is rt.jar on Linux & Windows, and classes.jar on Mac OS X")

I need some help from Java users to evaluate this.  There is a bunch of 
code for detecting the root, and identifying the core jar file.  It 
looks like we could try to support both variants on Mac if it is worth 
while.

Thanks
Eric

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140