How to Install JDK 1.7 using a RPM package?

1,362

You question is a little bit confusing: you want to know how to patch this Eclipse behaviour or you want to update Java?

The title says 1 thing, the question says another.

If you just want to start eclipse using a specific version of a particular JVM you just have to open the file eclipse.ini in the same folder where the eclipse executable is and add this 2 lines:

-vm
/home/user/jdk/bin/java

This option is pretty self explanatory, you just use the -vm option and specify the full path of your jvm of choice.

If you want to install java from a package downloaded from the internet you need another guide, please be more clear.

Share:
1,362

Related videos on Youtube

vergil corleone
Author by

vergil corleone

Updated on September 18, 2022

Comments

  • vergil corleone
    vergil corleone over 1 year

    I am making an app for android. When the user clicks on the device's hardware menu button, I want to open a custom popup menu which has options pertaining to my activity. According to android documentation, only context menu and options menu can be made, and there is no way to access the hardware menu button's functions. How to do this?

    • Eliah Kagan
      Eliah Kagan almost 12 years
      In addition to clarifying what it is that you are asking, please also include more information about what Eclipse says is missing, including the complete and exact error messages you are getting in Eclipse. The errors you did provide are not reporting missing jar files. Please also provide the exact commands you run to produce those make errors (unless they are occurring in Eclipse). Please tell us how you installed Eclipse, and the output of which java; java -version in the Terminal. You should edit your question to provide all this information.
    • nilsonneto
      nilsonneto almost 12 years
      @Siddharth - please look at one of the answers here and reinstall JDK with the suggestions there. Thanks. askubuntu.com/questions/55848/…
    • Mark A
      Mark A almost 12 years
      This helped to a great extent. Unfortunately I have fallen into one more pit, I am seeing this error now, and nothing I do is fixing it. Will report back once I fix it. Thanks again. "Resource Description Path Location Type carPoolLibrary The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project Unknown Java Problem"
    • Mark A
      Mark A almost 12 years
      Surprisingly, 1.7 is throwing weird errors, and now when I switch back to 1.6 everything is back to normal.
  • Mark A
    Mark A almost 12 years
    thanks, I now understand where I am confusing people.. I'll edit one more time
  • flower
    flower almost 12 years
    @Siddharth go to the official JDK website from Oracle, download the .bin version of the jdk of your choice, open a terminal and execute that .bin file just like that ./jdk.bin, the jdk will be unpacked in a folder named with your jdk version, use the java executable in this newly created folder like i wrote before and try this way.
  • Mark A
    Mark A almost 12 years
    I think you mean "/usr/lib/jvm/jdk1.7.0/bin/java" right ?
  • flower
    flower almost 12 years
    @Siddharth about what? These days you do not need to "install" the JDK, it's already compiled and ready for use when you download it as an archive, just unpack, tell the eclipse.ini to use that JVM and you are good to go.
  • vergil corleone
    vergil corleone about 11 years
    Ok, and how to add options to the menu?
  • zbr
    zbr about 11 years
    Please check the edited (actually, almost completely new :)) answer.