Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need JDK with Windows XP

Posted on 2004-09-23
11
Medium Priority
?
192 Views
Last Modified: 2013-11-23
I'm trying to run a Java program (Poseidon) under Windows XP (SP1 -- not SP1a as far as I can tell). I have msjava.dll in my system directory and many java classes elsewhere on my drive -- but I don't have java.exe or the equivalent.

What do I need to do to be able to run the program?

I don't want to remove the java-related files and start again with Sun's implementation of Java. I just want to tweak the MS Java implementation.

 
0
Comment
Question by:ErrolEvan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +3
11 Comments
 
LVL 92

Expert Comment

by:objects
ID: 12139312
what are the requirements for Poseidon?
0
 

Author Comment

by:ErrolEvan
ID: 12139378
Apparently I need a JDK. Is this available for Win XP without removing the MS Java implementation and replacing it with Sun's?
0
 
LVL 92

Expert Comment

by:objects
ID: 12139393
If you need a JDK then use Sun's.
The Sun VM does not replace the MS one, it is just like installing a seperate application.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:CI-Ia0s
ID: 12139466
Here's a link. As objects said, installing the Sun JDK will not overwrite the existing JDK. A new folder will be created in a place of your choosing and it will contain the JDK. You should be able to run class files from the command line (from the class directory: "java ClassName"). If you're running a JAR file, you'll need to update the system variable PATH to include the path to the "bin" directory of the JDK.

Link to download: http://java.sun.com/j2se/1.5.0/download.jsp
0
 
LVL 12

Expert Comment

by:Giant2
ID: 12140363
Use a stable version (1.5 now is an RC version).
Go here:
http://java.sun.com/j2se/1.4.2/download.html
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 12140558
Yes 1.4.2_05 is the latest stable version.
I just got a mail from SUN that they fixed several bugs in both 1.5RC and 1.4.2_05
;JOOP!
0
 
LVL 4

Expert Comment

by:DaveyEss
ID: 12140839
Microsoft currently provide a JVM (i.e. Java runtime) on some versions of Windows , but not a compiler (provided with the JDK).  If you want to compile apps, then you need to download a JDK  from Sun.

0
 

Author Comment

by:ErrolEvan
ID: 12147763
OK, useful comments from several of you. We're nearly there.

Do I understand you correctly?

1) I have a JVM already installed -- from MS -- jview.exe in my system folder. This enables me to run __compiled__ java applications.

How then would I run the app? Would it be an executable EXE file for the Windows environment? If not, what?

2) However, MS does not supply a JDK with WinXp. If I want to compile the Java files I need to download the SDK from Sun.


Thanks for your help.

0
 
LVL 3

Accepted Solution

by:
CI-Ia0s earned 500 total points
ID: 12147972
1. Yup. I think the Sun version is more up to date, though.
2. Yup again.

P.S. The Java equivalent file of an EXE is a JAR (.jar) file. It can be made double-clickable but this requires you to add the JVM/JDK's "bin" directory to the system variable PATH (as stated above). Class files (.class) can be run from the Command Prompt by typing "java ClassName" after cding to the correct directory. If you have a java source file, you compile it with "javac ClassName.java" (again, once you're in the correct directory).

What kind of file is the app you want to run?
0
 
LVL 3

Expert Comment

by:CI-Ia0s
ID: 12147993
If you mean the Poseidon from Gentleware then you NEED the JDK 1.4 or higher as listed in the FAQs. I'd get it ASAP. ;)
0
 

Author Comment

by:ErrolEvan
ID: 12151403
Thanks to everyone who helped enlighten me.

I intended to award some points to object as well, but I hit the "accept" button before I did that and then found that the item was closed. object, please accept 75 "moral" ponts.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question