2668

fail to update jdk1.7.0_45 in raspberry pi

Question:

I'm developing the TV Scoreboard app with the use of window laptop and raspberry pi. I'm using the putty to have socket connection.

Before that it request to state the X11 server variable, so I have installed the Xming server in my window laptop and fixed to localhost:0.0.0.0

But JFLauncher keep pop up the message to install the newest Java Runtime. So I think the latest and suitable one should be jre 1.7.0_45.

I have download the ejre-7u45-fcs-b15-linux-arm-vfp-hflt-client_headless-26_sep_2013

mkdir java cd java tar zxvf *.gz

after unpack, I remove the rar file.

./bin/java -version

it show the latest version but if I just

java -version

it show the old version detail.

what should I do to update it to the latest version? Any mistake for my steps?

Answer1:

<blockquote>

but if i just java -version it show the old version detail.

</blockquote>

When you run this command from your command line, the PATH environment variable is what the shell will evaluate to determine how to disambiguate your command. If you don't ensure that the new java binary location is in your PATH, and has a higher precedence than the old one, then the shell has no way of knowing to execute your new java.

Try the following:

$which java //tells you which java command the shell will execute $echo $PATH //shows you what directories are in your path $export PATH=/my/new/java/bin/directory:$PATH //set your new java into the PATH env $java -version

See <a href="http://docs.oracle.com/javase/tutorial/essential/environment/paths.html" rel="nofollow">this</a> tutorial on setting PATH.

Recommend

  • How to launch gwt-project on external server, e.g. tomcat?
  • Which version of Grails support JDK 8?
  • Handling database constraint errors nicely
  • Sorting a Directory before Looping Through - PowerShell
  • How can I avoid loading buildpack components from cache on Bluemix?
  • why flask sqlalchemy model query does not get newest records?
  • Gulp globbing excluding files then unexcluding not working as described
  • Haskell: List Created Evaluating List Elements
  • Get entry assembly from ASP.NET application [duplicate]
  • Gradle test fails with NullPointerException
  • Is there a chance to get -splash: work for SWT applications that require -XstartOnFirstThread?
  • Update varbinary(MAX) field in SQLServer 2012 Lost Last 4 bits
  • Most efficient way to replace lowest list values in dataframe in R
  • runtime error when linking ffmpeg libraries in qt creator
  • Portable JRE on Linux - possible?
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Ruby on Rails App deployed to heroku showing “We're sorry, but something went wrong”
  • Detecting null parameter in preprocessor macro
  • How to get links to open in the native browser in iOS Meteor apps?
  • OSX - always hide certain files
  • Android Studio Can't Find tools.jar
  • Compiling dlib on OS X
  • C# program and C++ DLL compiled for 32-bit system crash on 64-bit system
  • How to generate and display a QR Code in ionic 2
  • saving file generated by TCPDF
  • gspread or such: help me get cell coordinates (not value)
  • Content-Length header not returned from Pylons response
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • Python urlparse: small issue
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • NHibernate Validation Localization with S#arp Architecture
  • How can I send an e-mail from a vbs script
  • javaw.exe and eclipse startup problems
  • Accessing IRQ description array within a module and displaying action names
  • Can I make an Android app that runs a web view in Chrome 39?
  • Can I have the cursor start on a particular column by default in jqgrid's edit mode?
  • WPF Applying a trigger on binding failure
  • Getting Messege Twice Using IMvxMessenger
  • Append folder name and increment by 1 using batch script