Csound Csound-dev Csound-tekno Search About

[Cs-dev] A java question

Date2014-01-21 15:28
Fromjohn ffitch
Subject[Cs-dev] A java question
After the update to the machine I get a compilation failure

cd /home/jpff/Sourceforge/csound/New/csound6/interfaces && /usr/bin/javac *.java -source 1.6 -target 1.6 -d .
javac: invalid source release: 1.6
Usage: javac  
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
....

I assume this is because my javac in 1.5
harvey:~/Sourceforge/csound/New/csound6> /usr/bin/javac -version
javac 1.5.0_22

Is it necessary to have 1.6?  As far as I am aware I never use Java
anyway so have no idea what the differences may be.

Anyway at present it is stopping the compilation first time and then
it goes away; I am confused

==John ffitch

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-21 15:44
FromSteven Yi
SubjectRe: [Cs-dev] A java question
Hi John,

You'll need to get Java 1.6.  Java 1.5 has be EOL'd (end-of-life'd)
and it is no longer being supported for things like security patches,
etc.  Most repos should have openjdk 1.6 of some sort which should do
just fine for compiling the Java interface.

steven

On Tue, Jan 21, 2014 at 3:28 PM, john ffitch  wrote:
> After the update to the machine I get a compilation failure
>
> cd /home/jpff/Sourceforge/csound/New/csound6/interfaces && /usr/bin/javac *.java -source 1.6 -target 1.6 -d .
> javac: invalid source release: 1.6
> Usage: javac  
> where possible options include:
>   -g                         Generate all debugging info
>   -g:none                    Generate no debugging info
>   -g:{lines,vars,source}     Generate only some debugging info
>   -nowarn                    Generate no warnings
>   -verbose                   Output messages about what the compiler is doing
> ....
>
> I assume this is because my javac in 1.5
> harvey:~/Sourceforge/csound/New/csound6> /usr/bin/javac -version
> javac 1.5.0_22
>
> Is it necessary to have 1.6?  As far as I am aware I never use Java
> anyway so have no idea what the differences may be.
>
> Anyway at present it is stopping the compilation first time and then
> it goes away; I am confused
>
> ==John ffitch
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-21 15:56
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] A java question
AttachmentsNone  

Date2014-01-21 15:58
FromMichael Gogins
SubjectRe: [Cs-dev] A java question
AttachmentsNone  None  
1.7 should be OK.

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Jan 21, 2014 at 10:56 AM, <jpff@cs.bath.ac.uk> wrote:
Oh dear.  1.6 is not packaged for the OS.  There is 1.7 though

Quoting Steven Yi <stevenyi@gmail.com>:

> Hi John,
>
> You'll need to get Java 1.6.  Java 1.5 has be EOL'd (end-of-life'd)
> and it is no longer being supported for things like security patches,
> etc.  Most repos should have openjdk 1.6 of some sort which should do
> just fine for compiling the Java interface.
>
> steven
>




------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-01-21 16:06
FromSteven Yi
SubjectRe: [Cs-dev] A java question
Yes sorry, I should have said 1.6 is a minimum requirement. 1.7 would
be better to use really.

On Tue, Jan 21, 2014 at 3:56 PM,   wrote:
> Oh dear.  1.6 is not packaged for the OS.  There is 1.7 though
>
> Quoting Steven Yi :
>
>> Hi John,
>>
>> You'll need to get Java 1.6.  Java 1.5 has be EOL'd (end-of-life'd)
>> and it is no longer being supported for things like security patches,
>> etc.  Most repos should have openjdk 1.6 of some sort which should do
>> just fine for compiling the Java interface.
>>
>> steven
>>
>
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-21 16:45
Fromjpff
SubjectRe: [Cs-dev] A java question
in frontends/CMakeLists.txt I read

         ADD_CUSTOM_COMMAND(TARGET _jcsound6
             POST_BUILD
             COMMAND cmake -E make_directory ./csnd6
             COMMAND ${JAVA_COMPILE} *.java -source 1.6 -target 1.6 -d .

so presumably 1.7 will not work either



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-01-21 17:50
FromSteven Yi
SubjectRe: [Cs-dev] A java question
1.7 javac will work as it can compile with -source 1.6 and -target 1.6.

On Tue, Jan 21, 2014 at 4:45 PM, jpff  wrote:
> in frontends/CMakeLists.txt I read
>
>          ADD_CUSTOM_COMMAND(TARGET _jcsound6
>              POST_BUILD
>              COMMAND cmake -E make_directory ./csnd6
>              COMMAND ${JAVA_COMPILE} *.java -source 1.6 -target 1.6 -d .
>
> so presumably 1.7 will not work either
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net