Solved

Need JDK with Windows XP

Posted on 2004-09-23
11
186 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 125 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jboss wildfly 10.1 10 619
login form jsp example 2 72
jsp login check 12 67
add projects t working set in maven 2 71
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

751 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