Nilambari Brahma

Greenhorn
+ Follow
since Apr 14, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nilambari Brahma

thank you folks. It works. While testing it all i had set classpath to bin directory of jdk
10 years ago
Hi
I could change now the runtime environment. But now it gives NoClassDefinationFoundError.
Please help.
10 years ago
yes you are right I have installed Oracle recenlty. But how can I now change my runtime environment to 1.6?
I removed . from path
10 years ago
I have installed jdk1.6.0_17 successfully by setting path variable as %PATH%;.;C:\Program Files\Java\jdk1.6.0_17\bin
I have tested couple of java programs also. Today when I trying simple helloworld program , I am compiling it successfully but at the time of execution it's giving me exeption,



My program is,
class tester
{
public static void main(String [] ss)
{
System.out.println("Hello");
}
}


D:\JavaExamples>javac tester.java

D:\JavaExamples>java tester
Exception in thread "main" java.lang.UnsupportedClassVersionError: tester (Unsup
ported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

D:\JavaExamples>set classpath=

D:\JavaExamples>java tester
Exception in thread "main" java.lang.UnsupportedClassVersionError: tester (Unsup
ported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

D:\JavaExamples>javac -version
javac 1.6.0_17

D:\JavaExamples>java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

-------------------------------------------------------------------------------------------
I reinstalled jdk also. But is it because of some virus?
Kindly help me to sort this problem.
10 years ago
Thank you very much ...It worked
And it was silly mistake
10 years ago
JSP
Hi,
I have a strange problem, I am accepting some values from simple html and using getParameter() in the form loaded JSP page. Here I can read parameter, but here I am setting this parameter value as an attribute value and getting this in other JSP. but at the end it's not showing any NullPointerException but value which i get in my result page is always NULL.
for more clarity sticking code.


//GetName.html


//SaveName.jsp



//NextPage.jsp


Kindly help as early as possible
10 years ago
JSP