/ Forside / Teknologi / Udvikling / Java / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java
#NavnPoint
molokyle 3688
Klaudi 855
strarup 740
Forvirret 660
gøgeungen 500
Teil 373
Stouenberg 360
vnc 360
pmbruun 341
10  mccracken 320
HOW TO: add a .jar file to the java runtim~
Fra : Thomas Pedersen


Dato : 07-04-01 16:11

Hi all,

I'am trying to add a .jar file to the JRE path, but don't know how to do it.
Can someone please help me??

I want to add the MP3.jar (add MP3 capabilities to Java Sound with SPI found
at www.javaworld.com) file to the JRE path so that I can start testing mp3
from java!

Thanx,
\Thomas



 
 
Mads Kristensen (12-04-2001)
Kommentar
Fra : Mads Kristensen


Dato : 12-04-01 10:04

You just have to add the .jar file to you classpath.
Assuming your .jar files is placed in /java you would write
this command: java -cp /java/MP3.jar:. "your-classfile-here"
On Dos/Windows i think it would be something like: java -cp c:\java\MP3.jar;.
"your-classfile-here"

Just type "java" in a commandline and read the message that appears.

Mads Kristensen

Thomas Pedersen wrote:

> Hi all,
>
> I'am trying to add a .jar file to the JRE path, but don't know how to do it.
> Can someone please help me??
>
> I want to add the MP3.jar (add MP3 capabilities to Java Sound with SPI found
> at www.javaworld.com) file to the JRE path so that I can start testing mp3
> from java!
>
> Thanx,
> \Thomas


Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408929
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste