Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install the jMonkey Engine system-wide so that all users can use it.

Where do I put these files?

$ unzip -q jME2_0_1-StableDistribution.zip
$ tree -Fn jME2_0_1-StableDistribution/jME2_0_1-StableDistribution/
jME2_0_1-StableDistribution/jME2_0_1-StableDistribution/
|-- jme-audio.jar
|-- jme-awt.jar
|-- jme-collada.jar
|-- jme-editors.jar
|-- jme-effects.jar
|-- jme-font.jar
|-- jme-gamestates.jar
|-- jme.jar
|-- jme-model.jar
|-- jme-ogrexml.jar
|-- jme-scene.jar
|-- jme-swt.jar
|-- jme-terrain.jar
`-- lib/
    |-- jme-colladabinding.jar
    |-- jme-colladabinding-src.jar
    |-- jogl/
    |   |-- CHANGELOG.txt
    |   |-- COPYRIGHT.txt
    |   |-- gluegen-rt.jar
    |   |-- jogl.jar
    |   |-- LICENSE-JOGL-1.1.1.txt
    |   `-- native/
    |       |-- linux_amd64/
    |       |   |-- libgluegen-rt.so
    |       |   |-- libjogl_awt.so
    |       |   |-- libjogl_cg.so
    |       |   `-- libjogl.so
    |       |-- linux_i586/
    |       |   |-- libgluegen-rt.so
    |       |   |-- libjogl_awt.so
    |       |   |-- libjogl_cg.so
    |       |   `-- libjogl.so
    |       |-- macosx/
    |       |   |-- libgluegen-rt.jnilib
    |       |   |-- libjogl_awt.jnilib
    |       |   |-- libjogl_cg.jnilib
    |       |   `-- libjogl.jnilib
    |       |-- solaris_i586/
    |       |   |-- libgluegen-rt.so
    |       |   |-- libjogl_awt.so
    |       |   |-- libjogl_cg.so
    |       |   `-- libjogl.so
    |       |-- windows_amd64/
    |       |   |-- gluegen-rt.dll
    |       |   |-- jogl_awt.dll
    |       |   |-- jogl_cg.dll
    |       |   `-- jogl.dll
    |       `-- windows_i586/
    |           |-- gluegen-rt.dll
    |           |-- jogl_awt.dll
    |           |-- jogl_cg.dll
    |           `-- jogl.dll
    |-- jorbis/
    |   |-- copying.txt
    |   `-- jorbis-0.0.17.jar
    |-- junit/
    |   `-- junit-4.1.jar
    |-- lwjgl/
    |   |-- jinput.jar
    |   |-- LICENSE.txt
    |   |-- lwjgl.jar
    |   |-- lwjgl_util_applet.jar
    |   |-- lwjgl_util.jar
    |   `-- native/
    |       |-- linux/
    |       |   |-- libjinput-linux64.so
    |       |   |-- libjinput-linux.so
    |       |   |-- liblwjgl64.so
    |       |   |-- liblwjgl.so
    |       |   |-- libopenal64.so
    |       |   `-- libopenal.so
    |       |-- macosx/
    |       |   |-- libjinput-osx.jnilib
    |       |   |-- liblwjgl.jnilib
    |       |   `-- openal.dylib
    |       |-- solaris/
    |       |   |-- liblwjgl.so
    |       |   `-- libopenal.so
    |       `-- windows/
    |           |-- jinput-dx8.dll
    |           |-- jinput-raw.dll
    |           |-- lwjgl64.dll
    |           |-- lwjgl.dll
    |           |-- OpenAL32.dll
    |           `-- OpenAL64.dll
    |-- mvn-lib-install.sh
    `-- swt/
        |-- about_files/
        |   |-- IJG_README.txt
        |   `-- mpl-v11.txt
        |-- about.html
        |-- linux/
        |   `-- swt.jar
        |-- macosx-carbon/
        |   `-- swt.jar
        |-- macosx-cocoa/
        |   `-- swt_fake.jar
        `-- windows/
            `-- swt.jar

23 directories, 77 files
share|improve this question

2 Answers 2

up vote 1 down vote accepted

You can put them in the extension directory of your Java SDK. Since it will be loaded by the default classloader.

Basically you do the following steps:

  • Copy all jars to a temporary folder, then

    sudo cp *jar /usr/lib/jvm/default-java/jre/lib/ext

  • Copy all shared objects (*.so) of your computer architecture to a temporary folder, then:

    sudo cp *so /usr/lib/jvm/default-java/jre/lib/i386

    or (if you are on amd64):

    sudo cp *so /usr/lib/jvm/default-java/jre/lib/amd64

share|improve this answer

Generaly speaking most manualy installed software would go in the /opt folder like xampp and Aptana studio for example there is a more expansive explanation here.

What is the opt folder for

share|improve this answer
    
How will Java applications that need these libraries be able to find them in /opt? –  ændrük Nov 26 '10 at 20:15
    
Funnily enough it looks like the Jmonkey engine is going to be in the software center soon –  Allan Nov 26 '10 at 20:42
1  
Funnily enough it looks like the Jmonkey engine is going to be in the software center soon wwww.ubuntuforums.org/showthread.php?p=10038906 . Just seen the engine featured on ubuntugamer looks cool. looking around the monkey forums it sounds like most people are using netbeans and manualy updating the library.path . The only reason I suggested the opt folder is the system doesn't change/update/overwrite anything that is put there it is entirely up to the admin what is there when making things more stable if more work. –  Allan Nov 26 '10 at 21:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.