cancel
Showing results for 
Search instead for 
Did you mean: 

Java Error

Former Member
0 Kudos

Hi all,

I have installed nwds 7.1 version for that i given jdk1.5.0_19 as java support...

But while developing the applications i am getting error in code as

annotations are only available from source level 5.0 onwards...

here i am using the 5.o version only...

can any body help me to solve this issue..

thakns,

viswa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What is the java version installed in your webAS (Web application server)?

I hope that is less than jdk 1.5.

Regards,

Jaya.

Former Member
0 Kudos

HI,

No it's JDK 1.5.0_19 Version i installed..

thanks,

viswa

Former Member
0 Kudos

You installed in your local machine. That is why you are not getting any compilation error.

But when you deploy your application, it will be compiled on the server. So server also should have a jdk1.5 version. Please check that.

Regards,

Jaya.

Former Member
0 Kudos

hi ,

thank u might be that may be the reason...

i'll check with BASIS people and i'll let u know if there is any issues...

thanks,

Viswa

Former Member
0 Kudos

Hi,

You can also know the server version by executing the below:


System.out.println(System.getProperty("java.version"));

Need not be a System.out.println... You can print the result on webdynpro screen also.

Regards,

Jaya.

Former Member
0 Kudos

Hi,

I am getting the error at design time only when i rebuild the project not after deploying it...

Is it connect with the server when we rebuild the project?

thanks,

viswa

Former Member
0 Kudos

No.. Its not connected to your server. Build is related to your NWDS.

Check properly whether your NWDS is pointing to jdk 1.5 or not?

Do one thing... Write a normal java class and execute it to know your local jdk version.


public class JavaVersion {

	public static void main(String[] args) {
		System.out.println(System.getProperty("java.version"));
		
	}
}

Regards,

Jaya.

Former Member
0 Kudos

HI ,

after installing jdk 1.5 i am getting the error like this

SDM port not defined or not found...

where we need to define the port

thanks,

viswa

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check version of Java :NWDS is referring to

Windows->Preferences-> Java->Compiler-> Compliance and Classpath.

regards,

ganga