Solved

help

Posted on 2002-05-29
8
192 Views
Last Modified: 2010-03-31
i am using jdk1.2.2
last time,i use another pc....which same version of java...and the path name i set:
PATH=C:\jdk1.2.2\bin
SET CLASSPATH=.;C:\jdk1.2.2\jre\lib\rt.jar
and it can work ,can run ...compile..
but now in my new pc.when i type 'java -version...
it come out a window error message about the ilegal operation!

what should i do????why last time in my old pc can work but now in new pc cant????
0
Comment
Question by:jfren
[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
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 92

Expert Comment

by:objects
ID: 7043552
Where is the JDK installed?
I'm geussing it's not installed in c:\jdk1.2.2.
You need to set the path to:
PATH=<JDK>\bin

where <JDK> is the directory where the JDK is installed.
0
 

Author Comment

by:jfren
ID: 7043740
i install in  c:\jdk1.2.2.
....
0
 
LVL 92

Expert Comment

by:objects
ID: 7043754
What is the error message when you run:
c:\jdk1.2.2\bin\java
0
Industry Leaders: 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 16

Expert Comment

by:heyhey_
ID: 7043775
> it come out a window error message about the ilegal operation!

post the error message
0
 

Author Comment

by:jfren
ID: 7044108
that is the window error message box...
the title in the blue bar is "java",then the message is :this program is perform a ilegal operation,if the problem persist....."
this message come out when i type "java -version'..
0
 
LVL 16

Accepted Solution

by:
heyhey_ earned 100 total points
ID: 7044118
so what's after "if the problem persist....." :)

it sounds like you have damaged windows installation. the simplest possible solution is to reinstall windows.
0
 
LVL 35

Expert Comment

by:girionis
ID: 8813262
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to heyhey_

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

726 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