English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have installed J2SDK1.5 in my pc & i have set path & class path.
When i m compiling & running my java program in bin directory of J2SDK then it is working fine.But when i m running that program from some other directory i m getting java.lang.UnsupportedVersionError while running the program.Plz tel me why i m getting this & how can i remove this error

2006-09-28 04:57:37 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

Do you have multiple JDKs installed on your machine. Sounds like you are compiling with 1.5 and then attempting to run it using an older version of java 1.4.x maybe.

Is there an old jdk in the path? I would make sure that there isnt another active version of a JDK on your machine, i.e. using remove programs, and see if that fixes it.

That error is definitely caused by compiling with a newer version than you are trying to execute with.

2006-09-28 06:02:29 · answer #1 · answered by Josh Falter 3 · 0 0

remove the keyword which is depricated

2006-09-28 05:00:09 · answer #2 · answered by iyiogrenci 6 · 0 0

fedest.com, questions and answers