Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to clear some thing regarding JDK aan JRE which are available from Oracle and please
correct me if I am wrong.
We can run our java programs with JRE and It does not need JDK.
But for the development of Program we need JDK, Which come with JRE.
Does JRE is needed for the development of programs? If no then why JDK includes JRE?
Is JDK is available with out JRE for development?
Thanks
JDK is just a bundle and of course you need the runtime environment JRE to run your own software you just developed.
Well, it would be a bit silly shipping a java compiler without being able to run the resulting programs...
It also makes sure you use the same version of java to run your app as you did to compile it (the class file version changed between 1.6 and 1.7, meaning old versions can't read 1.7 class files).
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I am trying to launch JMeter through the BAT file on a windows machine but I am getting the following error:
Not able to find Java executable or version. Please check your Java installation.
errorlevel=2
Press any key to continue . . .
I have set the java path earlier and this was working perfectly fine earlier. can anyone suggest me how to fix this issue?
The message is telling you there is no Java in the path, which you can check by typing in a command line:
java -version
So you need to install JDK 8 or 11 , you can choose Oracle JDK or Open JDK.
Also check you use last JMeter version which is 5.0
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have installed Netbeans 8 with JDK version 1.8. I recently downloaded iReports 5.6.0 for the creating reports. After installation the program doesn't open. There is an error saying
Cannot find Java.exe
Neither (null)\jre\bin\java.exe nor (null)bin\java.exe exists.
How can I solve this?? I have created my project using Netbeans8 and if I downgrade my netbeans to version 7 or something won't my GUI interfaces get messed up?
You'll have to modify the ireport.conf file to specify the JDK you want iReport to use.
Going through the install Windows 7 x64 will specify the default path to the x86 program files. I.E. "Program Files (x86)" Change this to "Program Files" then make the changes in the config file.
You'll find the ireportpro.conf file under [ireport_install_directory]\etc\ireportpro.conf. If you installed iReport with the installer, there's an ireport folder in the folder where you installed JasperReports Server.
There are two lines in that file that I would change:
Uncomment out the jdk home setting, and point it explicity to where you've installed th 64-bit JDK 1.7. Change it from:
jdkhome="/path/to/jdk"
To something like what you see below:
jdkhome="C:\Program Files\Java\jdk1.7.0"
I would also change the "default_options" line from:
default_options="-J-Xms24m -J-Xmx512m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=256m"
to something that gives the JVM running iReport more memory and a lower MaxPermSize value. An
default_options="-J-Xms1024m -J-Xmx1024m -J-Dorg.netbeans.ProxyClassLoader.level=1000 -J-XX:MaxPermSize=128m"
Enjoy!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
im trying to install eclipse on my mac (32bit). There is a pop saying that i need to use the latest jdk and from java.com the jdk i need is not available to 32bit running osx. The jdk they have for mac is 64bit version only. Any suggestion on how to fix this error?
I am afraid that JDK 1.7 is only available for 64bit OS X versions. If you are asked for JDK 1.7 you are probably trying to install Eclipse 4.4 (Luna). What you can do is install Eclipse 4.3 (Kepler). This works with JDK 1.6. Apple has its own version of JDK, and its probaby installed by default. If not i guess you can use Software Update to get it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Java software is not working in ms xp OS service pack 2. What are the problem that would change my OS to allow working of java ?
From your question there is plenty of possible answers.
First: You have to download and install JDK (or at least JRE) in order to run jar files.
Download and entire installation process is described here.
EDIT 1:
Regarding to your questions in comments I am edited this answer.
Okay sir Bosko Mijin, thanks for your kind help.. how to check java is
working?? and should i change my OS to win 7? please give suggestions.
You should to check is JDK installed on your machine. Fastest way is that you run following commands (noted below) in command promt to check version and compiler.
Checking Java version: java -version
Checking Java compiler: javac -version
If there is installed JVM (attention: not Microsoft JVM) then you have to check environment variables and ensure that JAVA_HOME variable is set and it is in you PATH also.
You can do check this with following command: echo %JAVA_HOME%
If you have installed Microsoft JVM, I suggest to change OS (easier way, but clean) because Microsoft JVM supports Java up to v1.1 (it is very very old!). Harder way is that you get old versions of JVM and try to install them to your XP, but there is questionable are that packages 'young enough'.
FYI: Win7 have no such problems with JVM.
If you have Microsoft JVM, it would be great that you read this link. It will help you to decide what next.
Regarding to OS, I am not good person for this type questions because I like Unix/Linux systems (I am using them for long time ago) and I am afraid that my answer regarding this part will be very 'primary opinion based'.
Anyway, I wish you to solve this quickly. Best luck.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
Should I always use the latest JRE version of Java 7 for a ubuntu production server ? Or should I be careful while upgrading between these minor versions too ?
Does the same rule apply to while making a choice between minor versions of Tomcat7 server?
I'm asking this in context of making a choice only amongst the minor versions of Java 7. Also please mind I'm asking this for a PRODUCTION server so I need extra carefulness.
This is a security issue; the minors are almost always security updates. Use the latest of whichever JRE (Oracle, OpenJDK) you choose.
I would suggest you to use the latest one, but at the same time, i would suggest to move your updates first on a stage server , test them thoroughly be fore moving to production. This is because, many time the project code uses library/jars who are compatible only with certain version of JRE, and upgrading JRE version might break them. So, either you need to update those library /jar as well or you live with current JRE version.
If those jars are not being maintained, you may be out of luck.