Topic: Java problem
Niceladyrealy's photo
Sun 07/01/12 01:22 PM
I instald jdk 1.3 java. I tried to run a program and itsaid it needs java to run.

Totage's photo
Sun 07/01/12 01:25 PM
The SDK is a development kit. You need the runtime environment to run java programs.

Mirage4279's photo
Sun 07/01/12 02:23 PM
Edited by Mirage4279 on Sun 07/01/12 02:41 PM
Totage is correct. You need the java runtime environment (often reffered to as the JRE when downloading. You can download the latest version right here

http://java.com/en/download/index.jsp

Also, not to be a armchair quarter back or anything but the latest software development kt (SDK or JDK in Java that I am aware of is Java 7) although there are such things as SE and EE ( enterprise edition ect..). I develop Java and it was recommended to me by my Java programming professor to download the JDK 7 (Java development kit 7). You will probably not notice a difference but here the latest jdk's from Oracle.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

You will need both the jdk and jre in order to run Java properly.

As a matter of fact you can download both the sdk and the jre (they are in the columns labeled jdk and jre side by side in the middle of the page. )Both are the latest versions 7 and I would recommend starting off with those.

That may very well not be the problem you are encountering though. It also depends on how your running the program. Are you running it from he command line??? Or an editor such as Eclipse or Netbeans??? I recommend one of those two as far as editors go... most people will tell you Eclipse and it does have it's advantages but I recommend Netbeans personally. Usually the jdk and jre must be installed for these two editors to be installed onto your computer.

Your question is slightly ambiguous otherwise I could tell you exactly what your doing wrong and how to fix it. Although installing the above mention programs will most likely do exactly that.

And by the way if you wish to switch to Netbeans .. it too is available from the above mentioned url with oracle.com as the domain name with the jre and jdk version 7 (the newest versions of both). All on one page , just click on the Netbeans button at the top of the page after installing the jdk (the JDK must be installed in order to install Netbeans...:)


Niceladyrealy's photo
Sun 07/01/12 04:49 PM
Thank you very much for every once help. There is a jre folder after the instalation. I just clicked on the java executable file to run it and the ms dos screen flashd for 1 second. Yet the other program that demands java to run istill not working. Am i supose to configure something? The program just demand java to run. What must ido?

Mirage4279's photo
Sun 07/01/12 05:56 PM
Edited by Mirage4279 on Sun 07/01/12 05:59 PM
The JDK folder does have a directory named JRE. Not sure that it will make a difference as to whether or not regular applications will execute in this environment or if the SDK version of the JRE is strictly for development purposes.

Off the top of my head I do not know.

You can try the top url to make for certain. Whenever I installed Java on my computer I usually downloaded them separately. You might try that.

It's not a .jar file is it???
They do not usually say that you need to download Java and if it did it would definitely mean it. But sometimes runnable .jar files will not execute unless their main() method is invoked properly. Can't just dbl click em.

Totage's photo
Sun 07/01/12 06:13 PM
When you get the errors, press the prt sc/ sys rq (Print screen) button on your keyboard, then go to paint and click edit>Paste, save the image as a .jpg.

Go to PhotoBucket, or FileUpYours, or other image sharing service and upload the pic. with the error message. You should be given BBCode tags to share the pic in the forum.

Sharing a print screen image would be very helpful, so that we could see the exact error you are getting and help you better.