Find the answer to your Linux question:
Results 1 to 2 of 2
Hello experts, I moved the jdk1..bin file to the /usr/bin/jvm and installed it as a root.I also configured jre with my firefox plugin.I tested that and java aaplets are running ...
  1. #1
    Just Joined! mlhazan's Avatar
    Join Date
    Jul 2007
    Posts
    53

    JDK 6 update 21 config problem

    Hello experts,
    I moved the jdk1..bin file to the /usr/bin/jvm and installed it as a root.I also configured jre with my firefox plugin.I tested that and java aaplets are running fine.but whenever I try to compile a .java file ,it shows the following:
    Code:
    root@optix:/home/mlhazan/Desktop# javac a.java 
    The program 'javac' can be found in the following packages:
     * openjdk-6-jdk
     * ecj
     * gcj-4.4-jdk
     * gcj-4.3
    Try: apt-get install <selected package>
    when I Type java -version it shows:
    Code:
    root@optix:/home/mlhazan/Desktop# java -version
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-4ubuntu3)
    OpenJDK Server VM (build 16.0-b13, mixed mode)
    it means java is on my system and working but there may some config problem.When ever I try to install limeware it shows:

    Error: Dependency is not satisfiable: sun-java6-jre|icedtea-java7-jre|sun-java6-jdk|icedtea-java7-jdk

    Can any one please help me.

  2. #2
    Linux Enthusiast Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    718
    you have installed the icedtea jre, but are missing the jdk. to understand why you need the jdk, i can just say:

    JRE = java runtime environment
    JDK = java developers kit

    JRE => run java programs
    JDK => create (i.e. compile) java programs

    the JDK needs the JRE, but not vice-versa. anyway, I would recommend to install the openjdk-6-jdk package and uninstall the other java framework packages. from what I read of it, it has a pretty good hotspot VM to run the code which (as I know) performs best amongst all the available virtual machines.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...