How to: Solve the problem installing Java for CSP

There are 16 replies in this Thread which was already clicked 8,813 times. The last Post () by Darkvil.

  • I tried several different OS's to try and install CSP but kept getting a Java error..


    Finally someone gave me guidance to the following tutorial on a PC website..


    This installs Java on the linux pc and CSP will work grand after it!


    Enjoy!


    The Sun Java JDK is available in the Debian Lenny non-free repository, therefore you must modify /etc/apt/sources.list…



    Code
    vi /etc/apt/sources.list


    and add non-free to the Debian Lenny repositories:



    Code
    deb http://mirrors.kernel.org/debian/ lenny main non-freedeb-src http://mirrors.kernel.org/debian/ lenny main non-free
    
    
    
    
    
    
    
    deb http://security.debian.org/ lenny/updates main non-freedeb-src http://security.debian.org/ lenny/updates main non-free

    Run



    Code
    apt-get update


    Install the Java JDK as follows:



    Code
    apt-get install sun-java6-jdk
  • HI MATE JUST TO LET YOU KNOW I TRIED IT BUT DID NOT WORK FOR ME


    XXXXXXXXXXXXXXXXXX:~# apt-get install sun-java6-jdk
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package sun-java6-jdk has no installation candidate


    CAN YOU HELP ME PLEASE TO INSTALL JAVA I HAVE VPS SERVER UBUNTU 10.04 AND THANKS

  • I added


    Code
    deb http://ftp.pl.debian.org/debian/ squeeze non-free


    to /etc/apt/sources.list because my version of Debian is squeeze (The newer one) :smile:

  • it doesn't works for me too
    apt-get install sun-java6-jdk
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source


    E: Package 'sun-java6-jdk' has no installation candidate

  • Quote

    E: Package 'sun-java6-jdk' has no installation candidate


    I was getting that error too, you just have to update your repository list (/etc/apt/sources.list) as stated above and add an up-to-date url for Java. I use ubuntu so I'm not sure what url you need to add for debian, but I found valid url's to add after a few mins searching on google.


    This one worked for me on Ubuntu!
    deb http://security.ubuntu.com/ubuntu hardy-security main multiverse


    I know this is not what you want but it might point you in the right direction.



    Good luck..




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Here is the Best working method to install java. Tried it on 10.04 and 11.04.Just copy and paste step by step. Select YES when asked. Dont forget to click on Thanks.




    apt-get update


    sudo apt-get install python-software-properties


    sudo add-apt-repository ppa:ferramroberto/java


    apt-get update


    sudo apt-get install sun-java6-jdk


    apt-get update


  • sudo add-apt-repository ppa:ferramroberto/jav
    Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 88, in <module>
    ppa_info = get_ppa_info_from_lp(user, ppa_name)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 83, in get_ppa_info_from_lp
    return json.loads(lp_page)
    File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
    File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
    ValueError: No JSON object could be decoded



    sudo apt-get install sun-java6-jdk
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source


    E: Package 'sun-java6-jdk' has no installation candidate


  • NOT WORKS
    apt-get install sun-java6-jdk
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source


    E: Package 'sun-java6-jdk' has no installation candidate


  • I've used ubuntu and used exact the same as above with no success

  • Try this way

    Code
    sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    sudo apt-get update
    sudo apt-get install sun-java6*
  • I've installed sun java but after start:


    ./cardproxy.sh start
    Starting CardServProxy: [ FAILED ]
    Exception in thread "main" java.lang.NoClassDefFoundError: com/bowman/util/FileChangeListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at com.bowman.cardserv.CardServProxy.<init>(CardServProxy.java:65)
    at com.bowman.cardserv.CardServProxy.main(CardServProxy.java:284)
    Caused by: java.lang.ClassNotFoundException: com.bowman.util.FileChangeListener
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 14 more

  • You have provided no information on your setup so I can only point you in the right direction, java.lang.NoClassDefFoundError: means that your classpath is not set correctly so maybe try to find your answer with google now that you know what the error relates to

  • well done!
    Compile problem,
    Installed a fresh ubuntu and redownload I think thats because I've installed alternative java and some path mismatched in JDK..
    Thanks again!


    This solved my installation problem:
    sudo add-apt-repository ppa:ferramroberto/java


    sudo apt-get update


    sudo apt-get install sun-java6-jdk



    also this method will choose exact java if alternative packages installed before(use sun-java-6)
    sudo update-alternatives --config java

  • Guys I was trying for a good few days trying to get java installed so as i could get CSP running. I followed many tuts on a few different forums but kept getting many different notifications as to why it wouldnt go on. I eventually got it on by using Webmin to do the install. From the main screen select the System drop down arrow in the left hand pane. Then select software packages.
    Highlight the "Package from APT " menu and click on the search APT tab. A new window will open in the browser saying "Find packages matching" Type in Sun Java in the search bar and click the Find packages matching tab. It will find 5 or 6 packages. Select the sun-java6-jdk. You will be reurned to the main window and sun-java6-jdk will now be sisplayed in the Package from APT window. Click on install and 2 mins later you will be ready to install your CSP.

  • Install Sun Java under Debian Squeeze


    Debian Squeeze for comes with OpenJDK Java preinstalled and ready to run. If you, for whatever reason, need to install Sun Java, the Sources list has to be modified:


    Edit /etc/apt/sources.list, add “non-free”:

    Code
    deb http://ftp2.de.debian.org/debian squeeze main non-free


    Update

    Quote

    apt-get update


    Check for available Sun Java Packages:

    Quote

    apt-cache search sun-java6


    The result may look something like this:



    Now install what you need, minimum is sun-java6


    Quote

    apt-get install sun-java6-jdk

Other Not Listed Softcam Support Forum

Configs, discussion, downloads and guides for Other Not Listed Softcams - CSP, DreamOS, GBox, NEWCamd, MultiCS, OSCam Smod, OSCam Ymod, SUpcam & Wicardd.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!