Csound Csound-dev Csound-tekno Search About

[Csnd] A Java question

Date2012-09-08 19:08
FromCacophony7
Subject[Csnd] A Java question
I'm reading Sams teach yourself Java in 24 hours and I'm on page 201.
I just want to know what a jar file is, what they're used for and how to use
them.



--
View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-09-08 19:17
FromVictor Lazzarini
SubjectRe: [Csnd] A Java question
Jar is an archive of byte-compiled java code. It's a useful format to distribute libraries etc. 

On 8 Sep 2012, at 19:08, Cacophony7 wrote:

> I'm reading Sams teach yourself Java in 24 hours and I'm on page 201.
> I just want to know what a jar file is, what they're used for and how to use
> them.
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2012-09-08 19:31
FromCacophony7
Subject[Csnd] Re: A Java question
do jar files contain other files inside of them? like java and class files?



--
View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570p5715572.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-09-08 19:32
FromJustin Smith
SubjectRe: [Csnd] Re: A Java question
yeah, they are zip files, you can open them up and look inside

On Sat, Sep 8, 2012 at 11:31 AM, Cacophony7  wrote:
> do jar files contain other files inside of them? like java and class files?
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570p5715572.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2012-09-08 19:45
FromCacophony7
Subject[Csnd] Re: A Java question
How do I look inside of them? what do I need? I wanna look inside of the
csnd.jar file.



--
View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570p5715574.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-09-08 19:47
FromJustin Smith
SubjectRe: [Csnd] Re: A Java question
on a linux or macos system you can use unzip from the command line

I don't know if anything is that easy on windows

On Sat, Sep 8, 2012 at 11:45 AM, Cacophony7  wrote:
> How do I look inside of them? what do I need? I wanna look inside of the
> csnd.jar file.
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570p5715574.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2012-09-08 20:04
FromRichard Henninger
SubjectRE: [Csnd] A Java question
If you are meaning to use java to access csound, the jar file which you'll
want to include in your classpath is "csnd.jar".  With that in your project,
you can access many of the functions that csound exposes (via its
application programming interface or API) that make it possible to run
csound from your chosen language - in your case java.

While you can look inside the jar file by unzipping it, what you'll see in
csnd.jar is mostly JNI (java native interface) code which bridges from java
to the native "c" functions that comprise the real csound code.  JNI is
pretty arcane looking to a beginning java programmer, so maybe it's best to
leave its internals be until you are more confident.

There are some examples in the "examples/java" directory of your csound
installation.  Also, you can follow these links for some other examples:

http://en.flossmanuals.net/csound/ch063_the-csound-api/
http://csounds.com/node/364
http://www.csounds.com/journal/2006summer/SliderDemo.html

Steven Yi's csound front end "blue" is written in java and is open source at
sourceforge; that's a big league example of integrating csound from java.


Richard Henninger
2712 Pembsly Drive
Vienna, VA 22181

richard@rghmusic.com
703 255-7201

-----Original Message-----
From: Cacophony7 [mailto:michaelsparks37@gmail.com] 
Sent: Saturday, September 08, 2012 2:09 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] A Java question

I'm reading Sams teach yourself Java in 24 hours and I'm on page 201.
I just want to know what a jar file is, what they're used for and how to use
them.



--
View this message in context:
http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here To unsubscribe, send
email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2012-09-10 19:02
FromCacophony7
Subject[Csnd] RE: A Java question
Your right, I wanna know how Java can enhance my csound.
Teach yourself Java in 24 hours is my first Java book and I'm a pretty
dedicated reader now.

What is an API? what is it used for? do you have to download and install it?
Java is talking to C using JNI code? native?
how can I learn JNI code? whats a good Java book for a beginner like me?
I keep reading the beginner books but I'm getting for confident with
programming in general.


Richard Henninger wrote
> 
> If you are meaning to use java to access csound, the jar file which you'll
> want to include in your classpath is "csnd.jar".  With that in your
> project,
> you can access many of the functions that csound exposes (via its
> application programming interface or API) that make it possible to run
> csound from your chosen language - in your case java.
> 
> While you can look inside the jar file by unzipping it, what you'll see in
> csnd.jar is mostly JNI (java native interface) code which bridges from
> java
> to the native "c" functions that comprise the real csound code.  JNI is
> pretty arcane looking to a beginning java programmer, so maybe it's best
> to
> leave its internals be until you are more confident.
> 
> There are some examples in the "examples/java" directory of your csound
> installation.  Also, you can follow these links for some other examples:
> 
> http://en.flossmanuals.net/csound/ch063_the-csound-api/
> http://csounds.com/node/364
> http://www.csounds.com/journal/2006summer/SliderDemo.html
> 
> Steven Yi's csound front end "blue" is written in java and is open source
> at
> sourceforge; that's a big league example of integrating csound from java.
> 
> 
> Richard Henninger
> 2712 Pembsly Drive
> Vienna, VA 22181
> 
> richard@
> 703 255-7201
> 
> -----Original Message-----
> From: Cacophony7 [mailto:michaelsparks37@] 
> Sent: Saturday, September 08, 2012 2:09 PM
> To: csound@.ac
> Subject: [Csnd] A Java question
> 
> I'm reading Sams teach yourself Java in 24 hours and I'm on page 201.
> I just want to know what a jar file is, what they're used for and how to
> use
> them.
> 
> 
> 
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here To unsubscribe, send
> email sympa@.ac with body "unsubscribe csound"
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@.ac with body "unsubscribe csound"
> 




--
View this message in context: http://csound.1045644.n5.nabble.com/A-Java-question-tp5715570p5715613.html
Sent from the Csound - General mailing list archive at Nabble.com.