Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

installation errors and hassles  RSS feed

 
Monika Nagal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Ranch ,
started reading HEAD FIRST JAVA AND 1st page says installation of J2SE BUT ON THE ORACLE SITE FOUND java SE 8 INSTALLED THAT NOW AFTER INSTALLATION I SEE ITS jre1.8.0_25 is installed is it OK ??
CAN I STILL DO ALL THAT I can do if had installed jdk ??
so confusing
please help
 
Liutauras Vilda
Marshal
Posts: 4783
330
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

JDK - is for developers, it includes JRE too. You get compiler and some other command line tools.
JRE - is for your application users, who want to run programs only.

As being a developer, always ensure you have most recent JDK installed and don't worry about JRE on its own.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16043
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, "J2SE" is an obsolete name - this is what Java SE was called up until version 5 (which is a long time ago). "Java SE" (Java Standard Edition) is what it's called now, and the current version is version 8.

To be able to compile your own programs, you need the JDK (Java Development Kit), not the JRE (Java Runtime Environment). So, if you haven't done so already, download and install the JDK.
 
Knute Snortum
Sheriff
Posts: 4189
122
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I usually do to find the correct download page is Google jdk 8 download.  This will usually bring up the Oracle page that you need (Oracle owns Java now).  The web page says, "Java SE Development Kit 8 Downloads" which is what JDK stands for. 

Version 1.8.0_25 is pretty old now.  The current version as I write this is 1.8.0_131.  Java versions are a little confusing as the "1" and the "0" never seem to change.  So some people just say "Java 8, version 131".
 
Monika Nagal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply ,
Knute I went to this link only yesterday and downloaded "Java SE Development Kit 8u131" while the installation starts where I m asked if I m allowing the software to make changes it says "Java SE Development Kit 8u 131 update " when the process finishes I check for the path to bin and I see PROGAM DATA--JAVA--JRE1.8--NO BIN IS FOUND

Where m I going wrong ??

 
Norm Radder
Rancher
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check for the path to bin and I see PROGAM DATA--JAVA--JRE1.8--NO BIN IS FOUND 

What program do you use that gives that message?
On a Windows system. the JDK installation does NOT set the path environment variable to point to the JDK's bin folder.  That is a step you have to do manually.
 
Monika Nagal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for all your replies ,
after a day I am through installation
problem I was facing was not enough space in C Drive so ones I emptied it the installation went on smoothly I have set up the path and wrote my first program of "HELLO WORLD " PRINTING which compiled just fine but wen I try to run it I am getting error message \

Capture.JPG
[Thumbnail for Capture.JPG]
 
Monika Nagal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my jre path is not the one mentioned in the error y is it looking in the folder which doesn't exist ?

Capture2.JPG
[Thumbnail for Capture2.JPG]
 
Knute Snortum
Sheriff
Posts: 4189
122
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this were me, I'd remove all Java installations and reinstall the JDK, but PLEASE NOTE that removing programs can have adverse effects on other programs, so only do this if you're confident no other programs use Java.
 
Monika Nagal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Knute ,
did just that uninstalled all the java nd installed the new version again .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!